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 or Windows 98. For Windows 95, dwMinorVersion is zero. For Windows 98, dwMinorVersion is greater than zero. |
VER_PLATFORM_WIN32_NT | Win32 on Windows NT. |
Windows 95: Contains a null-terminated string that provides arbitrary additional information about the operating system.
Windows NT: Requires version 3.5 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winbase.h.
Unicode: Defined as Unicode and ANSI structures.
System Information Overview, System Information Structures, GetVersionEx, OSVERSIONINFOEX