Compartilhar via


OSVERSIONINFO (Windows CE 5.0)

Send Feedback

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.

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

Members

  • dwOSVersionInfoSize
    The size, in bytes, of this data structure. Set this member to sizeof(OSVERSIONINFO) before calling the GetVersionEx function.
  • dwMajorVersion
    This identifies the major version number of the OS. For example, for Windows CE 2.10, the major version number is 2.
  • dwMinorVersion
    This identifies the minor version number of the OS. For example, for Windows CE 2.10, the minor version number is 1.
  • dwBuildNumber
    This identifies the build number of the OS or is set to 0.
  • dwPlatformId
    This identifies the OS. The following table shows the possible values for this member.
    Value Description
    VER_PLATFORM_WIN32s Specifies the Windows 3.1 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_WIN32_NT Specifies the Windows NT OS.
    VER_PLATFORM_WIN32_CE Specifies the Windows CE OS.
  • szCSDVersion
    Null-terminated string that provides arbitrary additional information about the OS.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Winbase.h.

See Also

GetVersionEx

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.