!wudfext.wudfdevice
!wudfext.wudfdevice 擴充功能會顯示裝置的 隨插即用 (PnP) 和電源管理狀態系統。
!wudfext.wudfdevice pWDFDevice
參數
pWDFDevice
指定要顯示 PnP 或電源管理狀態之 IWDFDevice 介面的位址。
DLL
Wudfext.dll
其他資訊
如需詳細資訊,請參閱 使用者模式驅動程式架構偵錯。
備註
您可以使用 !wudfext.wudfdevice 擴充功能來判斷 pWDFDevice 參數所指定裝置目前的 PnP 或電源管理狀態。
以下是 !wudfext.wudfdevice 顯示器的範例:
kd> !wudfdevice 0xf2f80
Pnp Driver Callbacks:
IPnpCallback: 0x0
IPnpCallbackHardware: 0x0
IPnpSelfManagedIo: 0x0
Pnp State Machine:
CurrentState: WdfDevStatePnpStarted
Pending UMIrp: 0x00000000
Could not read event queue depth, assuming 8
Event queue:
Processed/in-process events:
PnpEventAddDevice
PnpEventStartDevice
PnpEventPwrPolStarted
Pending events:
State History:
WdfDevStatePnpInit
WdfDevStatePnpInitStarting
WdfDevStatePnpHardwareAvailable
WdfDevStatePnpEnableInterfaces
WdfDevStatePnpStarted
Power State Machine:
CurrentState: WdfDevStatePowerD0
Pending UMIrp: 0x00000000
IoCallbackFailure: false
Could not read event queue depth, assuming 8
Event queue:
Processed/in-process events:
PowerImplicitD0
Pending events:
State History:
WdfDevStatePowerStartingCheckDeviceType
WdfDevStatePowerD0Starting
WdfDevStatePowerD0StartingConnectInterrupt
WdfDevStatePowerD0StartingDmaEnable
WdfDevStatePowerD0StartingStartSelfManagedIo
WdfDevStatePowerDecideD0State
WdfDevStatePowerD0
Power Policy State Machine:
CurrentState : WdfDevStatePwrPolStartingSucceeded
PowerPolicyOwner : false
PendingSystemPower UMIrp : 0x00000000
PowerFailed : false
Could not read event queue depth, assuming 8
Event queue:
Processed/in-process events:
PwrPolStart
PwrPolPowerUp
Pending events:
State History:
WdfDevStatePwrPolStarting
WdfDevStatePwrPolStarted
WdfDevStatePwrPolStartingSucceeded