The OSVERSIONINFO data structure contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and descriptive text about the operating system. This structure is used with the GetVersionEx function.
typedef struct _OSVERSIONINFO{
DWORD dwOSVersionInfoSize;
DWORD dwMajorVersion;
DWORD dwMinorVersion;
DWORD dwBuildNumber;
DWORD dwPlatformId;
TCHAR szCSDVersion[ 128 ];
} OSVERSIONINFO;
Windows 95: Identifies the build number of the operating system in the
low-order word. The high-order word contains the major and minor version
numbers.
|
Value |
Platform |
|
VER_PLATFORM_WIN32s |
Win32s on Windows 3.1. |
|
VER_PLATFORM_WIN32_WINDOWS |
Win32 on Windows 95. |
|
VER_PLATFORM_WIN32_NT |
Win32 on Windows NT. |
Windows 95: Contains a null-terminated string that provides arbitrary additional information about the operating system.