Windows 驱动程序工具包工具的索引

本主题提供有关 Windows 驱动程序工具包(WDK)中包含的工具的基本信息。 本主题还包括对驱动程序开发有用的其他工具的参考。 这些其他工具可作为作系统的一部分提供,也可以作为单独的下载提供。 有关每个工具的详细信息,请参阅本主题中介绍该工具的文档。

有关如何获取最新 WDK 的信息,请参阅下载 Windows 驱动程序工具包 (WDK)。

WDK 工具的索引

下表中的信息描述了对 Windows 驱动程序开发人员有用的工具。 The list of tools includes tools that ship with the WDK (as indicated by the WDK tool field) and also includes some tools that are available separately or that are installed with Windows. Tools that can generally be used with all drivers are listed under All Drivers. 特定于技术的工具分组在一起,例如,特定于 Windows 便携式设备(WPD)驱动程序传感器的工具。

Note

Visual Studio 环境变量(%WindowsSdkDir%)表示安装此版本的 WDK 的 Windows 工具包目录的路径,例如 C:\Program Files (x86)\Windows Kits\8.1。

音频/视频驱动程序

Tool Name Tool Location 说明和帮助文件位置
Display Color Calibration tool (Dccw.exe)
WDK tool: No
%Windir%\System32\Dccw.exe
一种校准工具,允许用户调整其显示颜色,使其更接近 Windows 和万维网国际标准的红色-绿色-蓝色(sRGB)颜色空间。
WDK 中的 GraphEdt (Graphedt.exe)
工具:是
%WindowsSdkDir%\tools\x86\graphedt.exe
%WindowsSdkDir%\tools\x64\graphedt.exe
生成筛选器图以测试流式处理音频/视频捕获驱动程序。
文档:
GraphEdit 概述
KSStudio (KsStudio.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x86\KsStudio.exe
%WindowsSdkDir%\tools\x64\KsStudio.exe

Note This tool must be run by someone who has administrator privileges.
此工具可以构造筛选器图的图形表示形式,该图显示筛选器与筛选器的内部节点之间的固定到引脚连接。
%WindowsSdkDir%\tools\x86\KsStudio.chm
%WindowsSdkDir%\tools\x64\KsStudio.chm
请参阅 AVStream 测试和调试 ,了解详细信息。
USB Device Viewer (Usbview.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x86\Usbview.exe
%WindowsSdkDir%\tools\x64\Usbview.exe
枚举 USB 主机控制器、USB 中心和附加的 USB 设备,并可以通过注册表和 USB 请求查询有关设备的信息。
可从代码库获取 USB 设备查看器的源代码,请参阅 USBVIEW 示例应用程序

Bluetooth Drivers

Tool name Tool location 说明和帮助文件位置
Bluetooth Inquiry Record Verifier (Sdpverify.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x86\Sdpverifiy.exe
%WindowsSdkDir%\tools\x64\Sdpverifiy.exe
将蓝牙设备的查询记录显示为 Windows 解释它。
WDK 文档: 蓝牙查询记录验证程序

Windows 映像获取 (WIA) 驱动程序

Tool name Tool location 说明和帮助文件位置
WIADbgCfg (Wiadbgcfg.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x86\wiadbgcfg.exe
%WindowsSdkDir%\tools\x64\wiadbgcfg.exe
Enables logging for WIA drivers (Windows Server 2008 and later versions of Windows).
Note For earlier versions of Windows, use WIALogCfg.
%WindowsSdkDir%\tools\x86\wiadbgcfg.htm
%WindowsSdkDir%\tools\x64\wiadbgcfg.htm
WIAInfo2 (Wiainfo2.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x86\wiainfo2.exe
%WindowsSdkDir%\tools\x64\wiainfo2.exe
显示 WIA 项树,以便可以查看和编辑 WIA 设备驱动程序属性。
%WindowsSdkDir%\tools\x86\wiainfo2.htm
%WindowsSdkDir%\tools\x64\wiainfo2.htm
WIAPreview (Wiapreview.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\wiapreview.exe
%WindowsSdkDir%\tools\x86\wiapreview.exe
演示如何使用 WIA 预览组件和驱动程序的分段筛选器。
%WindowsSdkDir%\tools\x64\wiapreview.htm
%WindowsSdkDir%\tools\x86\wiapreview.htm
WIATest (Wiatest.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\wiatest.exe
%WindowsSdkDir%\tools\x86\wiatest.exe
显示驱动程序创建的项树、驱动程序公开的 Windows 映像获取(WIA)属性以及每个属性的当前值。 可以在开发和单元测试期间使用此工具调试驱动程序。
%WindowsSdkDir%\tools\x64\wiatest.htm
%WindowsSdkDir%\tools\x64\wiatest.htm
Windows Imaging Trace File Viewer (Wiatrcvw.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\Wiatrcvw.exe
%WindowsSdkDir%\tools\x86\Wiatrcvw.exe
显示 WIA 跟踪日志(%WINDIR%\Debug\WIA\wiatrace.log),并允许更改每个模块的 WIA 跟踪参数。
%WindowsSdkDir%\tools\x64\Wiatrcvw.mht
%WindowsSdkDir%\tools\x64\Wiatrcvw.mht

Windows 便携式设备 (WPD) 驱动程序

Tool name Tool location 说明和帮助文件位置
WpdDeviceInspector (WpdDeviceInspector.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\WpdDeviceInspector.exe
%WindowsSdkDir%\tools\x86\WpdDeviceInspector.exe
查询 WPD 驱动程序并生成描述设备及其功能的综合 HTML 报告。 例如,可以使用它检索受支持的设备命令和对象列表。 并且,此工具将生成每个对象支持的所有属性的列表。
WDK 文档:
Windows 可移植设备
WPD 驱动程序开发工具
WpdInfo (WpdInfo.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\WpdInfo.exe
%WindowsSdkDir%\tools\x86\WpdInfo.exe
执行常见的 WPD作,例如:打开和关闭设备、在设备上创建或删除对象以及发出设备命令。
WDK 文档:
Windows 可移植设备
WPD 驱动程序开发工具
Microsoft Network Monitor (NetMon.exe)
WDK tool: No
Download the Microsoft Network Monitor
NetMon.exe
显示来自 WPD 组件的跟踪信息。 此工具取代了在早期版本的 WDK 中提供的 WpdMon.exe。
WDK 文档:
Windows 可移植设备
WPD 驱动程序开发工具,请参阅 使用网络监视器工具

Printer Drivers

Tool name Tool location 说明和帮助文件位置
GPDCheck (Gpdcheck.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\gpdcheck.exe
%WindowsSdkDir%\tools\x86\gpdcheck.exe
Validates the syntactical correctness of a Generic Printer Description File (GPD).
For information about command options, type
gpdcheck /?
INFGate (Infgate.exe)
WDK tool: Yes
WindowsSdkDir%\tools\x64\infgate.exe
%WindowsSdkDir%\tools\x86\infgate.exe.exe
Validates the conformance of a printer INF file.
For information about command options, type
infgate /?
isXPS (isXPS.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\isxps\isxps.exe
%WindowsSdkDir%\tools\x86\isxps\isxps.exe
Validates the conformance of an XPS file to the XPS and OPC specifications.
For information about command options, type
isxps /? in a Command prompt window.
For more information, see isXPS Conformance Tool
Looksgood (Looksgood.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\looksgood.exe
%WindowsSdkDir%\tools\x86\looksgood.exe
Validates the correctness of an XPS rendering engine.
For information about command options, type
looksgood /?
MakeNTF (Makentf.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\makentf.exe
%WindowsSdkDir%\tools\x86\makentf.exe
将 Adobe Font Metrics (AFM) 文件和东亚字体 AFM 文件转换为 Windows 字体文件 (.ntf)。
WDK 文档:
将 AFM 文件转换为 NTF 文件,将东亚 AFM 文件
转换为 NTF 文件
PPDCheck (Ppdcheck.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\ppdcheck.exe
%WindowsSdkDir%\tools\x86\ppdcheck.exe
Validates the syntactical correctness of a PostScript Printer Description File (PPD).
For information about command options, type
ppdcheck /?
PTConform (PTConform.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\PTConform.exe
%WindowsSdkDir%\tools\x86\PTConform.exe
Validates a Print Ticket or Print Capabilities document for conformance to the Print Schema.
For information about command options, type
ptconform /?
XpsAnalyzer (XpsAnalyzer.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\XpsAnalyzer.exe
%WindowsSdkDir%\tools\x86\XpsAnalyzer.exe
Analyzes XML Paper Specification (XPS) files for compatibility with the XPS 1.0 specification.
WDK Documentation:
XpsAnalyzer

Sensors

Tool name Tool location 说明和帮助文件位置
Sensor Diagnostic Tool (sensordiagnostictool.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64
%WindowsSdkDir%\tools\x86
测试驱动程序、固件和硬件,了解传感器和位置功能。 该工具调用传感器和位置 API 来测试数据检索、事件处理、报告间隔、更改敏感度、属性检索。
WDK 文档:
使用传感器诊断工具测试传感器功能

All Drivers

Tool name Tool location 说明和帮助文件位置
BinPlace (Binplace.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x86\binplace.exe Manages large coding projects by moving files, extracting symbols from executable files, and removing private symbols from symbol files.
WDK Documentation:
BinPlace
Code Analysis for Drivers
WDK tool: Yes
代码分析工具包含在 Visual Studio 中。 安装 WDK 时会添加特定于驱动程序的组件。 一种静态验证工具,用于检测 C 和C++编码错误。 此版本专门用于检测内核模式驱动程序中的错误。
WDK 文档:
驱动程序的代码分析
CertMgr (CertMgr.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\CertMgr.exe
%WindowsSdkDir%\bin\x86\CertMgr.exe
Manages certificates, certificate trust lists (CTLs), and certificate revocation lists (CRLs) that are used to sign drivers and driver packages.
WDK Documentation:
CertMgr
ChkINF
WDK tool: Deprecated
上一路径:
%WindowsSdkDir%\tools\x86\Chkinf
ChkInf 已弃用。 Instead, use InfVerif.
WDK Documentation:
InfVerif
Computer Hardware Identification Tool (ComputerHardwareIds.exe)
WDK tool: Yes
Windows 驱动程序工具包 (WDK) 8:

%WindowsSdkDir%\tools\x64\ComputerHardwareIds.exe%WindowsSdkDir%\tools\x86\ComputerHardwareIds.exe
WDKPath\tools\Other\ia64\ComputerHardwareIds.exeWindows 驱动程序工具包(WDK)8.1:
%WindowsSdkDir%\bin\x64\ComputerHardwareIds.exe
%WindowsSdkDir%\bin\x86\ComputerHardwareIds.exe
%WindowsSdkDir%\bin\arm\ComputerHardwareIds.exe
Derives the computer hardware IDs from SMBIOS information.
WDK Documentation:
ComputerHardwareIds
DC2WMIParser (DC2WMIParser.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\DC2WMIParser.exe
%WindowsSdkDir%\tools\x86\DC2WMIParser.exe
DC2WMIParser is a tool that collects the WMI IRP records created by Driver Verifier and converts this log to a text file.
Documentation:
IRP Logging
DevCon (Devcon.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\devcon.exe
%WindowsSdkDir%\tools\x86\devcon.exe
设备管理器的命令行版本。 DevCon enables, disables, installs, configures, and removes devices on the local computer and displays detailed information about devices on local computers.
WDK Documentation:
DevCon
Drivers (Drivers.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\drivers.exe
%WindowsSdkDir%\tools\x86\drivers.exe
显示计算机上安装的所有驱动程序的列表。
WDK 文档:
Driver Verifier (Verifier.exe)
WDK tool: No
%Windir%\system32\verifier.exe 监视内核模式驱动程序和图形驱动程序,以检测可能损坏系统的非法函数调用或作。 It can subject the drivers to a variety of stresses and tests to find improper behavior.
WDK Documentation:
Driver Verifier
Driver Verification Log (DVL)
WDK tool: Yes
需要Microsoft Visual Studio 和 WDK。 From the Driver menu, select Create Driver Verification Log.... 静态工具徽标测试需要所有适用的驱动程序提交驱动程序验证日志(DVL)。 DVL 包含分析工具的结果摘要,例如 CodeQL、代码分析和静态驱动程序验证程序。 请参阅 CodeQL 和静态工具徽标测试和创建驱动程序验证日志
Inf2Cat (Inf2cat.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\inf2cat.exe
%WindowsSdkDir%\bin\x86\inf2cat.exe
Determines whether a driver package's INF file can be digitally-signed for a specified list of Windows versions, and, if so, generates the unsigned catalog files that apply to the specified Windows versions.
WDK Documentation:
Inf2Cat
InfVerif (InfVerif.exe)
WDK tool: Yes
c:\Program Files(x86)\Windows Kits\10\tools\arm\infverif.exe
c:\Program Files(x86)\Windows Kits\10\tools\arm64\infverif.exe
c:\Program Files(x86)\Windows Kits\10\tools\x86\infverif.exe
c:\Program Files(x86)\Windows Kits\10\tools\x64\infverif.exe
测试驱动程序 INF 文件。 In addition to reporting INF syntax problems, the tool reports if the INF file is universal.
WDK Documentation:
InfVerif
MakeCat (MakeCat.exe)
WDK tool: Yes
WDKPath\bin\amd64\MakeCat.exe
WDKPath\bin\ia64\MakeCat.exe
WDKPath\bin\x86\MakeCat.exe
Creates a catalog file for a driver package.
WDK Documentation:
MakeCat
MakeCert (MakeCert.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\MakeCert.exe
%WindowsSdkDir%\bin\x86\MakeCert.exe
Creates an X.509 certificate that is signed by a system test root key or by another specified key.
WDK Documentation:
MakeCert
MSBuild (MSBuild.exe)/br>WDK tool: No 随 Visual Studio 一起安装 Builds the samples, drivers, and associated software components that are supplied in the Microsoft WDK.
MSBuild
PnpCpu (PnPCpu.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\PnPCpu.exe
%WindowsSdkDir%\tools\x86\PnPCpu.exe
Simulates a hot add of processors to a running instance of Windows Server 2008.
WDK Documentation:
PNPCPU
PnPUtil (PnPUtil.exe)
WDK tool: No
%Windir%\system32\pnputil.exe A command-line tool that installs or deletes driver packages from the Windows driver store.
WDK Documentation:
PnPUtil
PoolMon (Poolmon.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\poolmon.exe
%WindowsSdkDir%\tools\x86\poolmon.exe
显示作系统从系统分页和非分页内核池以及用于终端服务会话的内存池中收集有关内存分配的数据。 The data is grouped by pool allocation tag.
WDK Documentation:
PoolMon
PowerCfg (PowerCfg.exe)
WDK tool: No
%Windir%\system32\powercfg.exe 用于评估系统能效的命令行工具。
开发人员中心文档:
使用 PowerCfg 评估系统能效
有关命令选项的信息,请键入
PowerCfg /?
Pvk2Pfx (Pvk2Pfx.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\Pvk2Pfx.exe
%WindowsSdkDir%\bin\x86\Pvk2Pfx.exe
Copies public key and private key information contained in .spc, .cer, and .pvk files to a personal information exchange (.pfx) file.
WDK Documentation:
Pvk2Pfx
PwrTest (Pwrtest.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\pwrtest.exe
%WindowsSdkDir%\tools\x86\pwrtest.exe
A power management tool that exercises and records power management information from the computer.
WDK Documentation:
PwrTest
SignTool (SignTool.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\SignTool.exe
%WindowsSdkDir%\bin\x86\SignTool.exe
Digitally-signs files, verifies signatures in files, and time-stamps files.
WDK Documentation:
SignTool
Stampinf (Stampinf.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\stampinf.exe
%WindowsSdkDir%\bin\x86\stampinf.exe
Updates common INF file directives, including the DriverVer directive.
WDK Documentation:
Stampinf
Static Driver Verifier
WDK tool: Yes
%WindowsSdkDir%\tools\SDV

Note Launch Static Driver Verifier from the Driver menu in Visual Studio.
用于系统分析 Windows 驱动程序源代码的驱动程序的静态验证工具,并确定驱动程序是否与 Windows作系统内核正确交互。
WDK 文档:
静态驱动程序验证程序
Tracefmt (Tracefmt.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\tracefmt.exe
%WindowsSdkDir%\bin\x86\tracefmt.exe
Formats and displays trace messages from an event trace log file (.etl) or a real-time trace session.
WDK Documentation:
Tracefmt
TraceLog (Tracelog.exe)
WDK tool: Yes
WDK 8:
%WindowsSdkDir%\tools\x64\tracelog.exe
%WindowsSdkDir%\tools\x86\tracelog.exe
WDK 8.1:
%WindowsSdkDir%\bin\x64\tracelog.exe
%WindowsSdkDir%\bin\x86\tracelog.exe
%WindowsSdkDir%\bin\arm\tracelog.exe
从命令行配置和控制跟踪会话。 Measures time spent in deferred procedure calls (DPCs) and interrupt service routines (ISRs).
WDK Documentation:
Tracelog
TracePDB (Tracepdb.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\tracepdb.exe
%WindowsSdkDir%\bin\x86\tracepdb.exe
Creates trace message format (.tmf) files from the full or private PDB symbol file for a WPP trace provider.
WDK Documentation:
Tracepdb
TraceView (Traceview.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\TraceView.exe
%WindowsSdkDir%\tools\x86\TraceView.exe
配置和控制跟踪会话,并显示来自实时跟踪会话和跟踪日志的格式化跟踪消息。 TraceView has a graphic user interface and a command-line interface for batch processing and scripting.
WDK Documentation:
TraceView
TraceWPP (Tracewpp.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\tracewpp.exe
%WindowsSdkDir%\bin\x86\tracewpp.exe
Runs the Windows Software Trace Preprocessor (WPP).
WDK Documentation:
WPP Preprocessor
Survey of Software Tracing Tools
WDF Tester
WDK tool: Yes
%WindowsSdkDir%\tools\x64
%WindowsSdkDir%\tools\x86
一组可用于测试、验证和调试 WDF 驱动程序的工具。 工具集提供可在脚本或编译的应用程序中使用的 WMI 编程接口。
WDK 文档:
WdfTester:WDF 驱动程序测试工具集
WDF Verifier (Wdfverifier.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\wdfverifier.exe
%WindowsSdkDir%\tools\x86\wdfverifier.exe
为 KMDF 和 UMDF 驱动程序提供框架验证程序易于使用的接口。
WDK 文档:
WDF 验证程序控制应用程序
Web Services on devices (WSD) Basic Interoperability Tool (WSDBIT)
WDK tool: Yes
WSDBIT Client:
%WindowsSdkDir%\tools\x64\wsdbit_client.exe
%WindowsSdkDir%\tools\x86\wsdbit_client.exe
WSDBIT Server:
%WindowsSdkDir%\tools\x64\wsdbit_server.exe
%WindowsSdkDir%\tools\x86\wsdbit_server.exe
验证 Web 服务设备配置文件(DPWS)的实现是否适用于 WSDAPI。
WDK 文档:
WSD 互作性工具
Winerror (Winerror.exe)
WDK tool: Yes
%WindowsSdkDir%\tools\x64\winerror.exe
%WindowsSdkDir%\tools\x86\winerror.exe
Returns the error message identifier and mapping information for the specified error (Winerror.h) or success codes (Ntstatus.h).
For information about command options, type
winerror /?
WMIMofCk (Wmimofck.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x86\wmimofck.exe WDK Documentation:
Using wmimofck.exe
For information about command options, type
wmimofck -?
WsdCodeGen (Wsdcodegen.exe)
WDK tool: Yes
%WindowsSdkDir%\bin\x64\wsdcodegen.exe
%WindowsSdkDir%\bin\x86\wsdcodegen.exe
根据 Web 服务协定自动生成代理和存根。 主要是,可以使用此工具创建客户端应用程序。 但是,可以使用它进行测试或创建用户模式驱动程序。
验证二进制 MOF 文件 (.bmf) 中指定的类、属性、方法和事件是否对 WMI 使用有效。 生成 MOF 支持文件。
Windows SDK:
请参阅 “设备上的 Web 服务” 部分
WSDDebug_client and WSDDebug_host
WDK tool: Yes
Debug Client:
%WindowsSdkDir%\bin\x64\WSDDebug_client.exe
%WindowsSdkDir%\bin\x86\WSDDebug_client.exe
Debug Host:
%WindowsSdkDir%\bin\x64\WSDDebug_host.exe
%WindowsSdkDir%\bin\x86\WSDDebug_host.exe 这些工具是软设备和客户端,可用于对设备或应用程序进行故障排除。
“设备上的 Windows SDK:
Web 服务” 部分