Determing Operating system version during compile time (like _WIN32_WINNT)
Posted on 2003-03-22
I have some code which can get compiled in all Operation systems like 95/98/ME/2K/XP but not with NT 4.0. I have defined preprocessor definition and put the code for operation systems other than NT. In NT machine, it works fine but in 98 machine the code does not get executed at all
Here is the psedo-code:
#if (_WIN32_WINNT != 0x0400)
// OS must be other than NT 4.0
The above code does not get executed in Windows 98
Any solution ?