Operating System Versions
This DWORD data type should hold the operating system type in the high-order word and the version number of the operating system in the low-order word. Possible values for the operating system are listed in the following table.
|32-Bit Windows (Win32)||0x0002|
|16-Bit Windows (Win16)||0x0000|
For Microsoft Windows operating systems, the operating system version is the low-order word returned by the GetVersion function. For Microsoft Windows, the following example code correctly sets the version of the originating operating system.
#ifdef WIN32 dwOSVer = (DWORD)MAKELONG( LOWORD(GetVersion()), 2 ) ; #else dwOSVer = (DWORD)MAKELONG( LOWORD(GetVersion()), 0 ) ; #endif