安装 Windows 驱动程序工具包 (WDK) 的预览版本Installing preview versions of the Windows Driver Kit (WDK)

此页包含 Windows 驱动程序工具包 (WDK) 的 Insider Preview(预发行)版本的安装说明。This page contains installation instructions for Insider Preview (pre-release) versions of the Windows Driver Kit (WDK). 最新预发行版本的 WDK 和 EWDK 的下载链接位于 https://www.microsoft.com/software-download/windowsinsiderpreviewWDKThe download links for the latest pre-release version of the WDK and the EWDK are on https://www.microsoft.com/software-download/windowsinsiderpreviewWDK.

有关最新发布版本的 WDK 的信息,请参阅下载 Windows 驱动程序工具包 (WDK)For info about the latest released versions of the WDK, see Download the Windows Driver Kit (WDK). 若要下载早期版本的 WDK,请参阅其他 WDK 下载For downloads of earlier versions of the WDK, see Other WDK downloads.

安装 Windows 驱动程序工具包 (WDK) Insider PreviewInstall Windows Driver Kit (WDK) Insider Preview

1.安装 Visual Studio1. Install Visual Studio

  • WDK 现在支持 Visual Studio 2019。The WDK now supports Visual Studio 2019. 支持所有版本。All editions are supported. WDK 不再支持 Visual Studio 2017。The WDK no longer supports Visual Studio 2017.
  • https://visualstudio.microsoft.com/vs/preview/ 下载。Download from https://visualstudio.microsoft.com/vs/preview/.
  • 选择工作负荷:使用 C++ 开发。Select workload: Development with C++.
  • ARM:若要生成 ARM 驱动程序,必须另外安装组件:单个组件 -> 编译器、生成工具和运行时 -> 适用于 ARM 的 Visual C++ 编译器和库。ARM: To build ARM drivers you must additionally install the component: Individual components -> Compilers, build tools, and runtimes -> Visual C++ compilers and libraries for ARM.
  • ARM64:目前不受支持。ARM64: Currently not supported.

2.禁用强名称验证2. Disable strong name validation

WDK Visual Studio 扩展目前未进行强名称签名。The WDK Visual Studio Extensions are currently not strong name signed. 从提升的命令提示符运行以下命令以禁用强名称验证:Run the following commands from an elevated command prompt to disable strong name validation:

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\StrongName\Verification\*,31bf3856ad364e35 /v TestPublicKey /t REG_SZ /d 00240000048000009400000006020000002400005253413100040000010001003f8c902c8fe7ac83af7401b14c1bd103973b26dfafb2b77eda478a2539b979b56ce47f36336741b4ec52bbc51fecd51ba23810cec47070f3e29a2261a2d1d08e4b2b4b457beaa91460055f78cc89f21cd028377af0cc5e6c04699b6856a1e49d5fad3ef16d3c3d6010f40df0a7d6cc2ee11744b5cfb42e0f19a52b8a29dc31b0 /f

reg add HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\StrongName\Verification\*,31bf3856ad364e35 /v TestPublicKey /t REG_SZ /d 00240000048000009400000006020000002400005253413100040000010001003f8c902c8fe7ac83af7401b14c1bd103973b26dfafb2b77eda478a2539b979b56ce47f36336741b4ec52bbc51fecd51ba23810cec47070f3e29a2261a2d1d08e4b2b4b457beaa91460055f78cc89f21cd028377af0cc5e6c04699b6856a1e49d5fad3ef16d3c3d6010f40df0a7d6cc2ee11744b5cfb42e0f19a52b8a29dc31b0 /f 

3.安装 SDK Insider Preview3. Install SDK Insider Preview

获取 SDK Insider PreviewGet SDK Insider Preview

4.安装 WDK Insider Preview4. Install WDK Insider Preview

获取 WDK Insider PreviewGet WDK Insider Preview

备注

在安装过程中,你将看到 Visual Studio 安装程序安装 WDK 的 Visual Studio 扩展。During installation you will see the Visual Studio installer install the WDK Visual Studio Extensions.

安装企业版 WDK (EWDK) Insider PreviewInstall Enterprise WDK (EWDK) Insider Preview

EWDK 是一种用于生成驱动程序的独立自包含命令行环境。The EWDK is a standalone self-contained command-line environment for building drivers. 它包括用于 Visual Studio 2019 的生成工具、SDK、WDK 以及对 ARM64 驱动程序开发的支持。It includes Build Tools for Visual Studio 2019, the SDK, the WDK and support for ARM64 driver development. 有关详细信息,请参阅安装企业版 WDKSee more at Installing the Enterprise WDK.

获取企业版 Windows 驱动程序工具包 (WDK) Insider PreviewGet the Enterprise Windows Driver Kit (EWDK) Insider Preview

若要开始使用,请装载 ISO 并单击“LaunchBuildEnv”。To get started mount the ISO and click LaunchBuildEnv.

WDK 和 EWDK 的运行时要求Run-time requirements for the WDK and the EWDK

WDK 需要 Visual Studio。The WDK requires Visual Studio. 有关 Visual Studio 系统要求的详细信息,请参阅Visual Studio 2019 系统要求For more info about system requirements for Visual Studio, see Visual Studio 2019 System Requirements.

此外,EWDK 需要 .NET 4.7.2。In addition, the EWDK requires .NET 4.7.2. 有关运行 .NET 的平台的更多信息,请参阅 .NET Framework 系统要求For more info about what .NET runs on, see .NET Framework system requirements.

可以使用 WDK Insider Preview 和 EWDK Insider Preview 开发适用于以下操作系统的驱动程序:You can use the WDK Insider Preview and the EWDK Insider Preview to develop drivers for these operating systems:

客户端 OSClient OS 服务器 OSServer OS
Windows 10Windows 10 Windows Server 2016Windows Server 2016
Windows 8.1Windows 8.1 Windows Server 2012 R2Windows Server 2012 R2
Windows 8Windows 8 Windows Server 2012Windows Server 2012
Windows 7Windows 7 Windows Server 2008 R2 SP1Windows Server 2008 R2 SP1