Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

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.

Operating systemValue
32-Bit Windows (Win32)0x0002
Macintosh0x0001
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

 

 

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.