// wdm.h
typedef struct _OSVERSIONINFOW {
ULONG dwOSVersionInfoSize;
ULONG dwMajorVersion;
ULONG dwMinorVersion;
ULONG dwBuildNumber;
ULONG dwPlatformId;
WCHAR szCSDVersion[128];
} OSVERSIONINFOW, *POSVERSIONINFOW, *LPOSVERSIONINFOW, RTL_OSVERSIONINFOW, *PRTL_OSVERSIONINFOW;
View the official Windows Driver Kit DDI referenceNo description available.
The RTL_OSVERSIONINFOW 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. The RTL_OSVERSIONINFOW structure is used with RtlGetVersion.
dwOSVersionInfoSizeThe size in bytes of an RTL_OSVERSIONINFOW structure. This member must be set before the structure is used with RtlGetVersion.
dwMajorVersionThe major version number of the operating system. For example, for Windows 2000, the major version number is five. For more information, see RTL_OSVERSIONINFOEXW.
dwMinorVersionThe minor version number of the operating system. For example, for Windows 2000 the minor version number is zero. For more information, see RTL_OSVERSIONINFOEXW.
dwBuildNumberThe build number of the operating system.
dwPlatformIdThe operating system platform. For Microsoft Win32 on NT-based operating systems, RtlGetVersion returns the value VER_PLATFORM_WIN32_NT.
szCSDVersionThe service-pack version string. This member contains a null-terminated string, such as "Service Pack 3", which indicates the latest service pack installed on the system. If no service pack is installed, RtlGetVersion might not initialize this string. Initialize szCSDVersion to zero (empty string) before the call to RtlGetVersion.
For a list of the major and minor version numbers for the various versions of Windows, see RTL_OSVERSIONINFOEXW.