GetWindowsVersion

GetWindowsVersion returns information about the windows version.

rvVersion = GetWindowsVersion()

Return Value

rvVersion is a real vector with three elements: [bWindowsNT, nVersion, nBuildNo].The following table summarizes the operating system version numbers.

Operating system Version number
Windows 8 / Windows 10 6.2
Windows 7 6.1
Windows Server 2008 (“Longhorn”) 6.0
Windows Vista 6.0
Windows Server 2003 R2 5.2
Windows Server 2003 5.2
Windows XP 5.1
Windows 2000 5.0
Windows NT 4.0 4.0

Example

The following function call was executed on the following system: Windows NT, Version 5.0 (Windows 2000), Build 2195.

* GetWindowsVersion()
    1.0000     5.0000  2195.0000

id-1763049