I've spent a lot of time trying to figure this out. I need a way of telling whether a program is a console program without running it.

It has to be possible because windows determines that when you look at the properties for a file. If it uses the console, there's some extra tabs.

I can't just test to see if the program runs in DOS, because Win32 Console programs also do it.

I hope I explained that right. Let me know if you don't understand.