[This is preliminary documentation and subject to change.]
The OSVERSIONINFOEX structure contains operating system version information. The information includes major and minor version numbers, a build number, a platform identifier, and information about the latest Service Pack installed on the system. This structure is used with the GetVersionEx function. OSVERSIONINFOEX is an extended version of the OSVERSIONINFO structure.
typedef struct _OSVERSIONINFOEXA {
DWORD dwOSVersionInfoSize;
DWORD dwMajorVersion;
DWORD dwMinorVersion;
DWORD dwBuildNumber;
DWORD dwPlatformId;
TCHAR szCSDVersion[ 128 ];
WORD wServicePackMajor;
WORD wServicePackMinor;
WORD wReserved[2];
} OSVERSIONINFOEXA, *POSVERSIONINFOEXA, *LPOSVERSIONINFOEXA;
Value | Platform |
---|---|
VER_PLATFORM_WIN32s | Win32s on Windows 3.1. |
VER_PLATFORM_WIN32_WINDOWS | Win32 on Windows 95 or Windows 98. |
VER_PLATFORM_WIN32_NT | Win32 on Windows NT. |
Windows NT: Requires version 5.0 or later.
Windows: Unsupported.
Windows CE: Unsupported.
Header: Declared in winbase.h.
Unicode: Defined as Unicode and ANSI structures.
System Information Overview, System Information Structures, GetVersionEx, OSVERSIONINFO