I\'m creating main with a macro and need to be able to check the selected SubSystem at compile time, /SUBSYSTEM:WINDOWS or /SUBSYSTEM:CONSOLE, in order to generate the appro
_CONSOLE should do the trick for you.
Also you can select the subsystem using #pragma comment( linker, "/subsystem:windows" ) or #pragma comment( linker, "/subsystem:console" ) if you really want to go this route.