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 Driver Framework Extensions (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 |
顯示架構對象的參考計數歷程記錄 |