Windows操作系统版本
windows系统版本号
操作系统 | 版本号 |
---|---|
Windows 11 | 10.0* |
Windows 10 | 10.0* |
Windows Server 2022 | 10.0* |
Windows Server 2019 | 10.0* |
Windows Server 2016 | 10.0* |
Windows 8.1 | 6.3* |
Windows Server 2012 R2 | 6.3* |
Windows 8 | 6.2 |
Windows Server 2012 | 6.2 |
Windows 7 | 6.1 |
Windows Server 2008 R2 | 6.1 |
Windows Server 2008 | 6.0 |
Windows Vista | 6.0 |
Windows Server 2003 R2 | 5.2 |
Windows Server 2003 | 5.2 |
Windows XP 64 位版本 | 5.2 |
Windows XP | 5.1 |
Windows 2000 | 5.0 |
对于已为
Windows 8.1
或Windows 10
清单的应用程序。 未为Windows 8.1
或Windows 10
清单的应用程序将返回 (6.2)Windows 8 OS
版本值。
详细的版本信息
操作系统名称 | 版本号 |
---|---|
Windows 95 OEM Service Release 1 (95A) | 4.00.950 |
Windows 95 OEM Service Release 2 (95B) | 4.00.1111 |
Windows 95 OEM Service Release 2.1 | 4.03.1212-1214 |
Windows 95 OEM Service Release 2.5 C | 4.03.1214 |
Windows 98 | 4.10.1998 |
Windows 98 Second Edition (SE) | 4.10.2222 A |
Windows Millenium | 4.90.3000 |
Windows NT 3.1 | 3.10.528 |
Windows NT 3.5 | 3.50.807 |
Windows NT 3.51 | 3.51.1057 |
Windows NT 4.00 | 4.00.1381 |
Windows 2000 | 5.00.2195 |
Windows XP | 5.1.2600 |
Windows XP Service Pack 1 | 5.1.2600.1105-1106 |
Windows XP Service Pack 2 | 5.1.2600.2180 |
Windows XP Service Pack 3 | 5.1.2600 |
Windows Server 2003 | 5.2.3790 |
Windows Server 2003 Service Pack 1 | 5.2.3790.1180 |
Windows Server 2003 | 5.2.3790.1218 |
Windows Home Server | 5.2.3790 |
Windows Vista RTM | 6.0.6000.16386 |
Windows Vista | 6.0.6000 |
Windows Vista Service Pack 2 | 6.0.6002 |
Windows Server 2008 | 6.0.6001 |
Windows 7 RTM | 6.1.7601 |
Windows Server 2008 R2 RTM | 6.1.7600.16385 |
Windows Server 2008 R2 SP1 | 6.1.7601 |
Windows Home Server 2011 | 6.1.8400 |
Windows Server 2012 | 6.2.9200 |
Windows 8 | 6.2.9200 |
Windows Server 2012 R2 | 6.3.9200 |
Windows 8.1 | 6.3.9200 |
Windows 8.1 Update 1 | 6.3.9600 |
Windows Server 2012 R2 | 6.3.9600 |
Windows 10 | 10.0.10240 |
Windows 11 | 10.0.22000.739 |
# 调用接口查询版本
以下函数可用于确定当前操作系统版本,或确定它是Windows还是Windows服务器版本。 这些函数提供简单的测试,这些测试使用 VerifyVersionInfo 函数,并推荐的大于或等于被证明为确定操作系统版本的可靠方法的比较。
这些 API 由 versionhelpers.h 定义,Windows 8.1软件开发工具包中包括 (SDK) 。 此文件可用于其他Microsoft Visual Studio版本,以便在Windows 8.1之前为Windows版本实现相同的功能。
查询接口
函数 | 描述 |
---|---|
IsWindowsXPOrGreater | 指示当前 OS 版本是否匹配或大于 Windows XP 版本。`` |
IsWindowsXPSP1OrGreater | 指示当前 OS 版本是否匹配或大于 Service Pack 1 (SP1) 版本Windows XP。`` |
IsWindowsXPSP2OrGreater | 指示当前 OS 版本是否匹配或大于 Service Pack 2 (SP2) 版本的 Windows XP。`` |
IsWindowsXPSP3OrGreater | 指示当前 OS 版本是否匹配或大于 Service Pack 3 (SP3) 版本的 Windows XP。`` |
IsWindowsVistaOrGreater | 指示当前 OS 版本是否匹配或大于 Windows Vista 版本。`` |
IsWindowsVistaSP1OrGreater | 指示当前 OS 版本是否匹配或大于具有 Service Pack 1 (SP1) 版本的 Windows Vista。`` |
IsWindowsVistaSP2OrGreater | 指示当前 OS 版本是否匹配或大于 Service Pack 2 (SP2) 版本的 Windows Vista。`` |
IsWindows7OrGreater | 指示当前 OS 版本是否匹配或大于 Windows 7 版本。`` |
IsWindows7SP1OrGreater | 指示当前 OS 版本是否与 Service Pack 1 (SP1) 版本匹配或大于 Windows 7。`` |
IsWindows8OrGreater | 指示当前 OS 版本是否匹配或大于Windows 8版本。`` |
IsWindows8Point1OrGreater | 指示当前 OS 版本是否匹配或大于Windows 8.1版本。对于Windows 10,[**IsWindows8Point1OrGreater**](https://docs.microsoft.com/zh-CN/windows/desktop/api/VersionHelpers/nf-versionhelpers-iswindows8point1orgreater) 返回 false,除非应用程序包含包含包含指定Windows 8.1和/或Windows 10的 GUID 的兼容性部分。 |
IsWindows10OrGreater | 指示当前 OS 版本是否匹配或大于Windows 10版本。对于 Windows 10,[**IsWindows10OrGreater**](https://docs.microsoft.com/zh-CN/windows/desktop/api/VersionHelpers/nf-versionhelpers-iswindows10orgreater) 返回 false,除非应用程序包含包含包含指定Windows 10的 GUID 的兼容性部分的清单。 |
IsWindowsServer | 指示当前 OS 是否为Windows服务器版本。 需要区分服务器和客户端版本的Windows的应用程序应调用此函数。`` |
IsWindowsVersionOrGreater | > 仅当其他提供的版本帮助程序函数不适合你的方案时,才应使用此函数。``指示当前 OS 版本是否匹配或大于提供的版本信息。 此函数可用于确认未与客户端版本共享版本号的 Windows Server 版本。 |
示例
1 |
|
参考
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 Liferecords!
评论
TwikooValine