# OSVERSIONINFO Type

    Type OSVERSIONINFO
      dwOSVersionInfoSize As Long
      dwMajorVersion As Long
      dwMinorVersion As Long
      dwBuildNumber As Long
      dwPlatformId As Long
      szCSDVersion As String * 128
    End Type

OSVERSIONINFO-type variables hold information about the version of Windows currently running. This type holds various pieces of information identifying the version number, platform, and more about Windows.

dwOSVersionInfoSize
  The size of the variable (use the Len() function).
dwMajorVersion
  The part of the version number before the first period.
dwMinorVersion
  The part of the version number after the first period.
dwBuildNumber
  The build number of the version.
dwPlatformID
  One of the platform ID flags identifying which platform of Windows is running (for example, Windows 95, Windows NT, etc.)
szCSDVersion
  More information about the operating system.

Used by: GetVersionEx
Back to the index.