OSVERSIONINFOW structure (wdm.h)

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.

Syntax

typedef struct _OSVERSIONINFOW {
  ULONG dwOSVersionInfoSize;
  ULONG dwMajorVersion;
  ULONG dwMinorVersion;
  ULONG dwBuildNumber;
  ULONG dwPlatformId;
  WCHAR szCSDVersion[128];
} OSVERSIONINFOW, *POSVERSIONINFOW, *LPOSVERSIONINFOW, RTL_OSVERSIONINFOW, *PRTL_OSVERSIONINFOW;

Members

dwOSVersionInfoSize

The size in bytes of an RTL_OSVERSIONINFOW structure. This member must be set before the structure is used with RtlGetVersion.

dwMajorVersion

The major version number of the operating system. For example, for Windows 2000, the major version number is five. For more information, see RTL_OSVERSIONINFOEXW.

dwMinorVersion

The minor version number of the operating system. For example, for Windows 2000 the minor version number is zero. For more information, see RTL_OSVERSIONINFOEXW.

dwBuildNumber

The build number of the operating system.

dwPlatformId

The operating system platform. For Microsoft Win32 on NT-based operating systems, RtlGetVersion returns the value VER_PLATFORM_WIN32_NT.

szCSDVersion[128]

The 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.

Remarks

For a list of the major and minor version numbers for the various versions of Windows, see RTL_OSVERSIONINFOEXW.

Requirements

Requirement Value
Header wdm.h (include Ntddk.h)

See also

RTL_OSVERSIONINFOEXW

RtlGetVersion

RtlVerifyVersionInfo