.. highlightlang:: us .. index:: GetWindowsVersion .. _getwindowsversion: GetWindowsVersion ================= .. us.tag GetWindowsVersion GERMAN ProgMisc New300 :ref:`GetWindowsVersion` liefert Informationen zu Windows-Versionen. .. function:: rvVersion = GetWindowsVersion() .. us.return **Returnwert** *rvVersion* ist ein Vektor mit den 3 Elementen: [bWindowsNT, Version, nBuildNo]. Die folgende Tabelle zeigt die Betriebssystem-Versionsnummern: .. list-table:: :header-rows: 1 * - Betriebssystem - Versionsnummer * - 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 **Beispiel** Der folgende Aufruf wurde auf folgendem System durchgeführt: Windows NT, Version 5.0 (also Windows 2000), Build 2195. :: * GetWindowsVersion() 1.0000 5.0000 2195.0000 .. seealso:: :ref:`uberblick-programmierung` :sub:`id-1763049`