共用方式為


!wdfkd.wdfdevice

!wdfkd.wdfdevice 延伸模組會顯示與 WDFDEVICE 類型物件句柄相關聯的資訊。

!wdfkd.wdfdevice Handle [Flags]

參數

處理
WDFDEVICE 型別物件的句柄。

標誌
選擇性。 要顯示的資訊種類。 旗標 可以是下列位的任何組合:

位 0 (0x1)
此顯示會包含裝置的詳細資訊,例如相關聯的 WDFCHILDLIST 型別句柄、同步處理範圍和執行層級。

位 1 (0x2)
顯示將會包含詳細的電源狀態資訊。

位 2 (0x4)
顯示將會包含詳細的電源原則狀態資訊。

位 3 (0x8)
顯示將會包含詳細的 隨插即用 (PnP) 狀態資訊。

位 4 (0x10)
顯示將會包含裝置物件的回呼函式。

DLL

Wdfkd.dll

架構

KMDF 1、UMDF 2

其他資訊

如需詳細資訊,請參閱 內核模式驅動程序架構偵錯。

備註

下列範例會在 代表實體裝置物件 (PDO) 的 WDFDEVICE 句柄上使用 !wdfkd.wdfdevice 延伸模組,而不指定任何旗標。

kd> !wdfdevice 0x7cad31c8 

# Dumping WDFDEVICE 0x7cad31c8
=================================

WDM PDEVICE_OBJECTs:  self 81fb00e8

Pnp state:  119 ( WdfDevStatePnpStarted )
Power state:  31f ( WdfDevStatePowerDx )
Power Pol state:  508 ( WdfDevStatePwrPolWaitingUnarmed )

Parent WDFDEVICE 7ca7b1c0
Parent states:
   Pnp state:  119 ( WdfDevStatePnpStarted )
   Power state:  307 ( WdfDevStatePowerD0 )
   Power Pol state:  565 ( WdfDevStatePwrPolStarted )

No pended pnp or power irps
Device is the power policy owner for the stack

下列範例會顯示與上述範例相同的裝置物件,但這次的旗標值為 0xF。 這個旗標值是位0x1、0x2、0x4和0x8的組合,會導致顯示包含詳細資訊裝置資訊、電源狀態資訊、電源原則狀態資訊和 PnP 狀態資訊。

kd> !wdfdevice 0x7cad31c8 f 

# Dumping WDFDEVICE 0x7cad31c8
=================================

WDM PDEVICE_OBJECTs:  self 81fb00e8

Pnp state:  119 ( WdfDevStatePnpStarted )
Power state:  31f ( WdfDevStatePowerDx )
Power Pol state:  508 ( WdfDevStatePwrPolWaitingUnarmed )

Parent WDFDEVICE 7ca7b1c0
Parent states:
   Pnp state:  119 ( WdfDevStatePnpStarted )
   Power state:  307 ( WdfDevStatePowerD0 )
   Power Pol state:  565 ( WdfDevStatePwrPolStarted )

No pended pnp or power irps
Device is the power policy owner for the stack

Pnp state history:
[0] WdfDevStatePnpObjectCreated (0x100)
[1] WdfDevStatePnpInit (0x105)
[2] WdfDevStatePnpInitStarting (0x106)
[3] WdfDevStatePnpHardwareAvailable (0x108)
[4] WdfDevStatePnpEnableInterfaces (0x109)
[5] WdfDevStatePnpStarted (0x119)

Power state history:
[0] WdfDevStatePowerD0StartingConnectInterrupt (0x310)
[1] WdfDevStatePowerD0StartingDmaEnable (0x311)
[2] WdfDevStatePowerD0StartingStartSelfManagedIo (0x312)
[3] WdfDevStatePowerDecideD0State (0x313)
[4] WdfDevStatePowerD0BusWakeOwner (0x309)
[5] WdfDevStatePowerGotoDx (0x31a)
[6] WdfDevStatePowerGotoDxIoStopped (0x31c)
[7] WdfDevStatePowerDx (0x31f)

Power policy state history:
[0] WdfDevStatePwrPolStarting (0x501)
[1] WdfDevStatePwrPolStartingSucceeded (0x502)
[2] WdfDevStatePwrPolStartingDecideS0Wake (0x504)
[3] WdfDevStatePwrPolStartedIdleCapable (0x505)
[4] WdfDevStatePwrPolTimerExpiredNoWake (0x506)
[5] WdfDevStatePwrPolTimerExpiredNoWakeCompletePowerDown (0x507)
[6] WdfDevStatePwrPolWaitingUnarmedQueryIdle (0x509)
[7] WdfDevStatePwrPolWaitingUnarmed (0x508)

WDFCHILDLIST Handles:
 !WDFCHILDLIST 0x7ce710c8

SyncronizationScope is WdfSynchronizationScopeNone
ExecutionLevel is WdfExecutionLevelDispatch