Wudfext.dll 中的调试器扩展摘要

Warning

UMDF 2 是 UMDF 的最新版本,取代了 UMDF 1。 所有新的 UMDF 驱动程序都应使用 UMDF 2 编写。 没有将新功能添加到 UMDF 1,并且对较新版本的 Windows 10 上的 UMDF 1 的支持有限。 通用 Windows 驱动程序必须使用 UMDF 2。

存档的 UMDF 1 示例可在 Windows 11 版本 22H2 - 2022年5月驱动程序示例更新中找到。

有关详细信息,请参阅 UMDF入门。

The Windows Driver Kit (WDK) includes a debugger extension library, named WudfExt.dll, which is located in the %DDKROOT%\bin subdirectory. This topic describes the debugger extension commands in WudfExt.dll, which you can use to debug User-Mode Driver Framework (UMDF) version 1.x drivers.

To debug UMDF drivers starting in UMDF version 2.0, you must instead use the Wdfkd.dll debugger extension library. 有关详细信息,请参阅 Windows 驱动程序框架扩展(Wdfkd.dll)。

For a complete description of each command in WudfExt.dll, see User-Mode Driver Framework Extensions (Wudfext.dll). For more information about all available debugger extension libraries, see the documentation that is supplied with the Windows Debugging package.

To load the WudfExt.dll debugger extension library, enter the following command at the debugger's command prompt:

!load WudfExt.dll

下表汇总了 WudfExt.dll 扩展库提供的扩展命令。

Extension Description

!help

显示 WudfExt.dll 支持的所有调试器扩展

!umdevstacks

显示主机进程中的所有设备堆栈

!umdevstack

显示有关主机进程中设备堆栈的信息

!umirps

显示主机进程中挂起的 I/O 请求数据包的列表

!umirp

显示有关用户模式 I/O 请求数据包的信息

!wudfdriverinfo

显示有关 UMDF 驱动程序的信息

!wudfdevicequeues

显示设备的所有 I/O 队列

!wudfqueue

显示有关 I/O 队列的信息

!wudfrequest

显示有关 I/O 请求的信息

!wudfobject

显示有关 WDF 对象及其父级和子关系的信息

!wudfdevice

显示设备的即插即用(PnP)和电源管理状态系统

!wudfdumpobjects

显示未完成的 WDF 对象列表;用于在驱动程序卸载时确定任何泄漏的对象

!wudfiotarget

显示有关 I/O 目标的信息,包括其状态和已发送请求列表

!wudffile

显示有关框架文件的信息

!umfile

Shows information about a UMDF intra-stack file

!wudffilehandletarget

显示有关基于文件的 I/O 目标的信息

!wudfusbtarget

显示有关 USB I/O 目标的信息

!wudfusbinterface

显示有关 USB 接口对象的信息

!wudfusbpipe

显示有关 USB 管道对象的信息

!wudfrefhist

显示框架对象的引用计数历史记录