.. highlightlang:: us .. index:: GetWindowsVersion .. _getwindowsversion: GetWindowsVersion ================= .. us.tag GetWindowsVersion ENGLISH ProgMisc New300 :ref:`GetWindowsVersion` returns information about the windows version. .. function:: rvVersion = GetWindowsVersion() .. us.return **Return Value** *rvVersion* is a real vector with three elements: [bWindowsNT, nVersion, nBuildNo].The following table summarizes the operating system version numbers. .. list-table:: :header-rows: 1 * - 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 .. us.example **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 .. seealso:: :ref:`overview-programming` :sub:`id-1763049`