For the PE file format in Windows NT, this signature occurs immediately before the PE file header structure. Once we have the location of the file signature, the PE file follows four bytes later. The next 224 bytes in the executable file make up the PE optional header. The optional header contains most of the meaningful information about the executable image, such as initial stack size, program entry point location, preferred base address, operating system version, section alignment information, and so forth. And the information we are looking for i.e. application type.
Image runs in the Windows GUI subsystem.
Image runs in the Windows character subsystem. Image runs in the Windows CE subsystem. To test enter complete path to the EXE file. For more information on the PE file format, you can read the SDK documentation. Corp. All Rights Reserved.