培训
模块
MD-102 探索 Windows 版本 - Training
本模块介绍 Windows 版本的功能、选择它们的原因以及安装方法。 学习者将了解各种 Windows 版本及其安装过程。 MD-102
版本 API 帮助程序函数用于确定当前运行的操作系统的版本。 有关详细信息,请参阅 获取系统版本。
下表汇总了最新的操作系统版本号。
操作系统 | 版本号 |
---|---|
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显示的应用程序将返回Windows 8 OS 版本值 (6.2) 。 若要为Windows 8.1或Windows 10显示应用程序,请参阅面向 Windows 的应用程序。
识别当前操作系统通常不是确定是否存在特定操作系统功能的最佳方式。 这是因为操作系统可能已在可再发行 DLL 中添加了新功能。 测试功能本身是否存在,而不是使用 版本 API 帮助程序函数 来确定操作系统平台或版本号。
若要确定测试某个功能的最佳方式,请参阅相关功能的文档。 以下列表讨论了一些用于特征检测的常见技术:
如果必须需要特定的操作系统,请确保将其用作最低支持版本,而不是为一个操作系统设计测试。 这样,检测代码将继续在 Windows 的未来版本上运行。
请注意,32 位应用程序可以通过调用 IsWow64Process 函数来检测它是否在 WOW64 下运行。 它可以通过调用 GetNativeSystemInfo 函数来获取其他处理器信息。
有关详细信息,请参阅Windows 10发布信息和Windows 生命周期事实数据表。
培训
模块
MD-102 探索 Windows 版本 - Training
本模块介绍 Windows 版本的功能、选择它们的原因以及安装方法。 学习者将了解各种 Windows 版本及其安装过程。 MD-102