其他 WDK 下载Other WDK downloads

本主题介绍 Windows 驱动程序工具包 (WDK) 和企业版 WDK (EWDK) 的早期版本以及用于提供支持的其他下载内容。This topic contains information about earlier versions of the Windows Driver Kit (WDK), Enterprise WDK (EWDK), and additional downloads for support purposes. 若要开发驱动程序,请使用在下载 Windows 驱动程序工具包 (WDK) 上提供下载的最新公共版 Windows 驱动程序工具包 (WDK) 和工具。To develop drivers, use the latest public versions of the Windows Driver Kit (WDK) and tools, available for download on Download the Windows Driver Kit (WDK).

Windows 驱动程序工具包 (WDK) 可用于开发、测试和部署 Windows 驱动程序。The Windows Driver Kit (WDK) is used to develop, test, and deploy Windows drivers. 若要开发驱动程序,请使用在下载 Windows 驱动程序工具包 (WDK) 上提供下载的最新公共版 Windows 驱动程序工具包 (WDK) 和工具。To develop drivers, use the latest public versions of the Windows Driver Kit (WDK) and tools, available for download on Download the Windows Driver Kit (WDK).

本主题介绍 WDK 和企业版 WDK (EWDK) 的早期版本以及用于提供支持的其他下载内容。This topic contains information about earlier versions of the WDK, the Enterprise WDK (EWDK), and additional downloads for support purposes. 若要使用这些早期的版本,必须安装适用于目标平台的 Visual Studio 版本。To use these earlier versions, you must first install the version of Visual Studio that is appropriate for your targeted platform.

第 1 步:安装 Visual StudioStep 1: Install Visual Studio

支持开发特定 Visual Studio 版本的驱动程序。Development of drivers is supported for specific versions of Visual Studio. 若要开发特定 Windows 版本的驱动程序,必须使用在下表中标识(并提供下载链接)的某个 Visual Studio 版本。To develop a driver for a specific version of Windows, you must use one of the versions of Visual Studio that are identified (and linked for download) in the following table.

Windows 目标版本Targeted versions of Windows Visual Studio 版本Edition(s) of Visual Studio
Windows 10 版本 1809Windows 10, version 1809
Windows 10 版本 1803Windows 10, version 1803
Windows 10 版本 1709Windows 10, version 1709
Visual Studio Community 2017Visual Studio Community 2017
Visual Studio Professional 2017Visual Studio Professional 2017
Visual Studio Enterprise 2017Visual Studio Enterprise 2017
Windows 10 版本 1703Windows 10, version 1703
Windows 10 版本 1607Windows 10, version 1607
Visual Studio Express 2015 桌面版Visual Studio Express 2015 for Desktop
Visual Studio Community 2015Visual Studio Community 2015
Visual Studio Professional 2015Visual Studio Professional 2015
Visual Studio Enterprise 2015Visual Studio Enterprise 2015
Windows 8.1 更新Windows 8.1 Update
Windows 8.1Windows 8.1
Visual Studio 2013Visual Studio 2013
Windows 8Windows 8 Visual Studio Professional 2012Visual Studio Professional 2012
Visual Studio Ultimate 2012Visual Studio Ultimate 2012

配置适用于 Windows 10 版本 1709、1803 和 1809 的 Visual StudioConfigure Visual Studio for Windows 10, versions 1709, 1803, and 1809

安装 Visual Studio 时,选择“使用 C++ 的桌面开发” 工作负载。When you install Visual Studio, select the Desktop development with C++ workload. Windows 10 软件开发工具包 (SDK) 会自动包括在内,并显示在右侧的“摘要” 窗格中。The Windows 10 Software Development Kit (SDK) is automatically included and is displayed in the right-hand Summary pane.

若要开发 ARM/ARM64 的驱动程序,请选择“单个组件” ,然后在“编译器、生成工具和运行时” 下选择“适用于 ARM/ARM64 的 Visual C++ 编译器和库” 。To develop drivers for ARM/ARM64, choose Individual components and under Compilers, build tools, and runtimes select Visual C++ compilers and libraries for ARM/ARM64.

将 Windows SDK 安装到目标 Windows 10 版本 1607 和 1703Install the Windows SDK to target Windows 10, versions 1607 and 1703

如果开发的目标系统运行 Windows 10 版本 1607 或 Windows 10 版本 1703,则应安装 Visual Studio 2015,然后再下载并安装适用于目标 Windows 10 版本的 Windows SDK 版本,如下表所示。If your development targets systems that run Windows 10, version 1607 or Windows 10, version 1703, you should install Visual Studio 2015, and then also download and install the version of the Windows SDK for the targeted version of Windows 10, as identified in the following table.

Windows 目标版本Targeted versions of Windows Windows SDK 版本Version of Windows SDK
Windows 10 版本 1703Windows 10, version 1703 适用于 Windows 10.0.15063.468 的 Windows SDKWindows SDK for Windows 10.0.15063.468
Windows 10 版本 1607Windows 10, version 1607 适用于 Windows 10.0.14393.795 的 Windows SDKWindows SDK for Windows 10.0.14393.795
Windows 8.1Windows 8.1 适用于 Windows 8.1 的 Windows SDKWindows SDK for Windows 8.1
Windows 8Windows 8 适用于 Windows 8 的 Windows SDKWindows SDK for Windows 8

Windows SDK 未包含在 Visual Studio 2015 中,因此必须单独安装 SDK。The Windows SDK was not included in Visual Studio 2015, so you must install the SDK separately. 更高版本的 Visual Studio 包含 Windows SDK。Later versions of Visual Studio include the Windows SDK.

步骤 2:安装 WDKStep 2: Install the WDK

WDK 与 Visual Studio 和 Windows 调试工具 (WinDbg) 集成在一起。The WDK is integrated with Visual Studio and Debugging Tools for Windows (WinDbg). 此集成环境提供了开发、生成、打包、部署、测试和调试驱动程序所需的工具。This integrated environment gives you the tools you need to develop, build, package, deploy, test, and debug drivers.

备注

从 Windows 10 版本 1709 开始,安装 WDK 时会默认安装 Visual Studio 的 WDK 扩展。Starting with Windows 10, version 1709, installing the WDK will by default install the WDK extensions for Visual Studio. 这些扩展是将 WDK 与 Visual Studio 集成所必需的。These extensions are required for integration of the WDK with Visual Studio.

Windows 版本Versions of Windows WDK 和相关下载WDK and related downloads
Windows 10 版本 1809Windows 10, version 1809 适用于 Windows 10 版本 1809 的 WDKWDK for Windows 10, version 1809
Windows 10 版本 1803Windows 10, version 1803 适用于 Windows 10 版本 1803 的 WDKWDK for Windows 10, version 1803
Windows 10 版本 1709Windows 10, version 1709 适用于 Windows 10 版本 1709 的 WDKWDK for Windows 10, version 1709
Windows 10 版本 1703Windows 10, version 1703 适用于 Windows 10 版本 1703 的 WDKWDK for Windows 10, version 1703
Windows 10 版本 1607Windows 10, version 1607 适用于 Windows 10 版本 1607 的 WDKWDK for Windows 10, version 1607
Windows 8.1 更新Windows 8.1 Update WDK 8.1 更新(仅英语)WDK 8.1 Update (English only)
WDK 8.1 更新测试包(仅英语)WDK 8.1 Update Test Pack (English only)
WDK 8.1 示例WDK 8.1 Samples
Windows 8Windows 8 WDK 8(仅英语)WDK 8 (English only)
WDK 8 可再发行组件(仅英语)WDK 8 redistributable components (English only)
WDK 8 示例WDK 8 Samples
Windows XPWindows XP
Windows Server 2003Windows Server 2003
WDK 7.1.0WDK 7.1.0

重要

如果在已安装适用于 Windows 10 版本 1607 的 WDK 的系统上安装了适用于 Windows 10 版本 1703 的 WDK,则可能会删除 WDK 早期版本的某些文件。If you have installed the WDK for Windows 10, version 1703 on a system that had the WDK for Windows 10, version 1607 installed, some files from the earlier version of the WDK might have been removed. 若要还原这些文件,请执行以下操作:To restore these files:

  1. 在“开始”菜单上,在搜索框中输入“应用和功能” ,然后从结果中选择“应用和功能” 。On the Start menu, enter Apps & features in the search box, and select Apps & features from the results.
  2. 在“应用和功能” 列表中查找“Windows 驱动程序工具包 - Windows 10.0.15063.0” ,然后选择该程序。Find Windows Driver Kit - Windows 10.0.15063.0 in the list of Apps & Features, and then select the program.
  3. 依次选择“修改” >“修复” ,然后按照屏幕上的说明进行操作。Select Modify, select Repair, and then follow the directions on the screen.
  4. 此时这些文件将被还原。The files will be restored.

可选:安装 EWDKOptional: Install the EWDK

企业版 WDK (EWDK) 是一种独立的自包含命令行环境,用于生成驱动程序和基本的 Win32 测试应用程序。The Enterprise WDK (EWDK) is a standalone, self-contained, command-line environment for building drivers and basic Win32 test applications. 其中包括 Visual Studio 生成工具、SDK 和 WDK。It includes the Visual Studio Build Tools, the SDK, and the WDK. 此环境不包含在 Visual Studio 中可用的所有功能,例如集成开发环境 (IDE)。This environment doesn't include all the features available in Visual Studio, such as the integrated development environment (IDE).

使用 EWDK 需要 .NET Framework 4.6.1。Using the EWDK requires .NET Framework 4.6.1. 若要详细了解哪些系统运行此版本的框架,请参阅 .NET Framework 系统要求For more information about which systems run this version of the framework, see .NET Framework system requirements. 如需用于下载 .NET Framework 的链接,请参阅安装面向开发人员的 .NET FrameworkFor links to download the .NET Framework, see Install the .NET Framework for developers.

有关 EWDK 的详细信息,请参阅使用企业版 WDK 10For more information about the EWDK, see Using the Enterprise WDK 10.

Windows 版本Versions of Windows EWDKEWDK
Windows 10 版本 1809Windows 10, version 1809 适用于 Windows 10 版本 1809 的 EWDKEWDK for Windows 10, version 1809
Windows 10 版本 1803Windows 10, version 1803 适用于 Windows 10 版本 1803 的 EWDKEWDK for Windows 10, version 1803
Windows 10 版本 1709Windows 10, version 1709 适用于 Visual Studio 与生成工具 15.6 的 EWDK(推荐)EWDK for Visual Studio with Build Tools 15.6 (Recommended)
适用于 Visual Studio 与生成工具 15.4 的 EWDKEWDK for Visual Studio with Build Tools 15.4
适用于 Visual Studio 与生成工具 15.2 的 EWDKEWDK for Visual Studio with Build Tools 15.2
Windows 10 版本 1703Windows 10, version 1703 适用于 Windows 10 版本 1703 的 EWDKEWDK for Windows 10, version 1703

备注

从 Windows 10 版本 1709 开始,EWDK 基于 ISO。Starting in Windows 10 version 1709, the EWDK is ISO-based. 若要开始使用,请下载并装载 ISO,然后运行 LaunchBuildEnvTo get started, download and mount the ISO, and then run LaunchBuildEnv.

可选:安装适用于 HAL 扩展的已更新测试证书Optional: Install updated test certificates for HAL extensions

若要使用 HAL 扩展,请准备好运行 Windows 10 版本 1709 或更高版本的 Windows 10 的开发系统。To work with HAL Extensions, prepare your development system, running Windows 10, version 1709 or a later version of Windows 10. 另请安装 WDK 或 EWDK,然后安装可以作为 ZIP 文件下载的更新版 Windows OEM HAL 扩展测试证书 2017(仅测试)HAL_Extension_Test_Cert_2017.zipAlso install the WDK or the EWDK, and then install the updated version of the Windows OEM HAL Extension Test Cert 2017 (TEST ONLY), available for download as a ZIP file: HAL_Extension_Test_Cert_2017.zip.

若要详细了解如何使用此更新的证书,请参阅 Windows 支持上的“Windows OEM HAL 扩展测试证书 2017(仅测试)”测试证书更新For more information about using this updated certificate, see Update for "Windows OEM HAL Extension Test Cert 2017 (TEST ONLY)" test certificate on Windows Support.

可选:安装 WinDbg PreviewOptional: Install WinDbg Preview

WinDbg Preview 是 WinDbg 的新版本,在重要位置构建有可扩展的调试器数据模型,具有更现代的视觉效果、更快速的 Windows 和成熟的脚本体验。WinDbg Preview is a new version of WinDbg with more modern visuals, faster windows, a full-fledged scripting experience, built with the extensible debugger data model front and center. WinDbg Preview 支持调试每个版本的 Windows 10。WinDbg Preview supports debugging every version of Windows 10.

如需 WinDbg Preview 的下载链接和详细信息,请参阅下载 WinDbg PreviewFor download links and more information about WinDbg Preview, see Download WinDbg Preview.

用于调试 Windows XP 和 Windows Vista 的独立工具Standalone tools for debugging Windows XP and Windows Vista

如果你要调试 Windows XP、Windows Server 2003、Windows Vista 或 Windows Server 2008(或者使用这些操作系统之一来运行 Windows 调试工具),则需要使用这些调试工具的 Windows 7 版本。If you're debugging Windows XP, Windows Server 2003, Windows Vista, or Windows Server 2008 (or using one of these operating systems to run Debugging Tools for Windows), you need to use the Windows 7 release of the debugging tools. 它包含在适用于 Windows 7 和 .NET Framework 4.0 的 SDK 中。It's included in the SDK for Windows 7 and .NET Framework 4.0.

重要

在安装适用于 Windows 7 的 SDK 时,更高版本的 Visual C++ 2010 可再发行组件可能会引发问题。Newer versions of the Visual C++ 2010 Redistributable can cause issues when you install the SDK for Windows 7. 有关详细信息,请参阅 Microsoft 支持上的 Windows SDK Fails to Install with Return Code 5100(Windows SDK 无法安装,返回代码为 5100)。For more information, see Windows SDK Fails to Install with Return Code 5100 on Microsoft Support.

获取适用于 Windows XP 的独立调试工具的方法是先下载 Windows 7 SDK:适用于 Windows 7 和 .NET Framework 4 的 Microsoft Windows SDKGet the standalone debugging tools for Windows XP by first downloading the Windows 7 SDK: Microsoft Windows SDK for Windows 7 and .NET Framework 4.

若要将 Windows 调试工具作为单独组件进行安装,请启动 SDK 安装程序,在安装向导中选择“Windows 调试工具” ,然后清除其他所有组件。To install the Debugging Tools for Windows as a standalone component, start the SDK installer, and in the installation wizard, select Debugging Tools for Windows, and clear all other components.