Debugging Tools for Windows

!wdfkd.wdfdriverinfo

The !wdfkd.wdfdriverinfo extension displays driver information, including the version of the Kernel-Mode Driver Framework (KMDF) library that the driver was compiled with and a list of the framework device objects that the driver created.

Syntax

!wdfkd.wdfdriverinfo [DriverName [Flags]] 

Parameters

DriverName
Optional. The name of the driver. DriverName must not include the .sys file name extension.
Flags
Optional. Flags that specify the kind of information to display. Flags can be any combination of the following bits:
Bit 0 (0x1)
The display will include verifier settings for the driver.
Bit 4 (0x10)
The display will include the KMDF handle hierarchy for the driver.
Bit 5 (0x20)
The display will include context and callback function information for each handle. This flag is valid only when bit 4 (0x10) is set.
Bit 6 (0x40)
The display will include additional information for each handle. This flag is valid only when bit 4 (0x10) is set.
Bit 7 (0x80)
The handle information will be displayed in a more compact format.
Bit 8 (0x100)
The display will left align internal type information. This flag is valid only when bit 4 (0x10) is set.
Bit 9 (0x200)
The display will include handles that the driver potentially leaked. KMDF version 1.1 and later support this flag.

DLL

Windows NT 4.0 Unavailable
Windows 2000 and later Wdfkd.dll

Comments

If you omit the DriverName parameter, the default driver is used. You can display the default driver by using the !wdfkd.wdfgetdriver extension; you can set the default driver by using the !wdfkd.wdfsetdriver extension.

The following example shows the display from the !wdfkd.wdfdriverinfo extension.

kd> !wdfdriverinfo wdfrawbusenumtest 
----------------------------------
Default driver image name:   wdfrawbusenumtest
WDF library image name:      Wdf01000
 FxDriverGlobals  0x83b7af18
 WdfBindInfo      0xf22250ec
   Version        v1.5 build(1234)
----------------------------------
WDFDRIVER: 0x7cbc90d0

    !WDFDEVICE 0x7ca7b1c0
            context:  dt 0x83584ff8 ROOT_CONTEXT (size is 0x1 bytes)
             <no associated attribute callbacks>

    !WDFDEVICE 0x7cad31c8
            context:  dt 0x8352cff0 RAW_PDO_CONTEXT (size is 0xc bytes)
             <no associated attribute callbacks>

Additional Information

For more information, see Kernel-Mode Driver Framework Debugging.

Build machine: CAPEBUILD