How, using the proprocessor, can I find out if a program is being compiled as a Windows GUI Program? I have a set of headers that I use, and a couple of them deal with Windows GUI programs specifically. How would I be able to prevent their code from being included, if the program is just a normal Console application? If this is compiler specific, I'm interested in info for all compilers that you know of. Thanks.