title: How determine application subsystem from executable file
body: <p>I'm trying to detect console application from the list of the executables files installed on my computer.</p>
  
  <p>How to implement it?</p>
  
  <p>Every application has a "subsystem" (windows application, console application or library; specified to the linker as option, I think). How to detect it using only the executable file?</p>
  
  <p>Are there alternative methods to detect the application characteristic? Additionally, are there any method for detecting the file is a really executable file?</p>
  
  <p>Any issue for JAR executables?</p>