Click to See Complete Forum and Search --> : Determine if app is 16-bit


Shaun McCullough
April 12th, 1999, 01:38 PM
I need a way to determine if an application I'm about to do a createprocess on is a 16-bit or 32-bit application

Thanks

Chris M.
April 13th, 1999, 08:44 AM
Perhaps you could look at the .exe's header. It would require you study the header of each type, or have some exe header info. There might be an easier way, but I don't know what it is.

Shaun McCullough
April 13th, 1999, 08:54 AM
Actually, we can do a right click on the executable, select QuickView, and see in the header information that the application is 16-bit. But we need a way to do this in a Visual C++ application. If I new how QuickView get's it's info, that would be helpful.

Thanks

Gomez Addams
April 13th, 1999, 12:10 PM
Have a look at an MSDN sample called YAHU which stands for Yet Another
Header Utility. It has code that analyzes the header of executables.
It should be available on-line and on the CDROMs.