Igor
Thu Jun 02 06:56:01 CDT 2005
<tendengarci@yahoo.com> wrote in message
news:1117711356.717282.298980@g49g2000cwa.googlegroups.com
> How can I find out if an application is a console app or a windows
> app. I realize that if there the header starts with 0xd4 0x5a it
> cannot be run in "DOS" mode but that not mean a windows 2000 console
> app. I have win2k console apps and they also start with 0x4d 0x5a.
The PE (Portable Executable) file format is described here:
http://msdn.microsoft.com/library/en-us/dndebug/html/msdn_peeringpe.asp
You need to look at IMAGE_OPTIONAL_HEADER::Subsystem field.
--
With best wishes,
Igor Tandetnik
With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925