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
Exactly one of the following flags identifying which platform of Windows is running (for example, Windows 95, Windows NT, etc.):
VER_PLATFORM_WIN32s = 0
Windows 3.x is running, using the Win32s pseudo-32-bit enhancements.
VER_PLATFORM_WIN32_WINDOWS = 1
Windows 95 or 98 is running.
VER_PLATFORM_WIN32_NT = 2
Windows NT is running.
szCSDVersion
More information about the operating system.

Used by: GetVersionEx
Back to the index.


Back to Paul Kuliniewicz's Home Page
E-mail: Borg953@aol.com
This page is at http://members.aol.com/Borg953/api/types/osversioninfo.html