Partager via


OSVERSIONINFO

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

This structure contains OS version information. The information includes major and minor version numbers, a build number, a platform identifier, and descriptive text about the OS. This structure is used with the GetVersionEx function.

Syntax

typedef struct _OSVERSIONINFO{
  DWORD dwOSVersionInfoSize;
  DWORD dwMajorVersion;
  DWORD dwMinorVersion;
  DWORD dwBuildNumber;
  DWORD dwPlatformId;
  TCHAR szCSDVersion[128];
} OSVERSIONINFO;

Members

  • dwOSVersionInfoSize
    Size, in bytes, of this data structure. Set this member to sizeof(OSVERSIONINFO) before calling the GetVersionEx function.
  • dwMajorVersion
    Major version number of the OS. For example, for Windows CE 2.10, the major version number is 2.
  • dwMinorVersion
    Minor version number of the OS. For example, for Windows CE 2.10, the minor version number is 1.
  • dwBuildNumber
    Build number of the OS or is set to 0.
  • dwPlatformId
    OS. The following table shows the possible values for this member.

    Value Description

    VER_PLATFORM_WIN32_CE

    Specifies the Windows Embedded CE OS.

    VER_PLATFORM_WIN32_NT

    Specifies the Windows NT OS.

    VER_PLATFORM_WIN32_WINDOWS

    Specifies the Windows 95 or Windows 98 OS.

    For Windows 95, dwMinorVersion is zero.

    For Windows 98, dwMinorVersion is greater than zero.

    VER_PLATFORM_WIN32s

    Specifies the Windows 3.1 OS.

  • szCSDVersion
    Null-terminated string that provides arbitrary additional information about the OS.

Requirements

Header winbase.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

System Management Structures
GetVersionEx