not able to use !wdfdevice command

I want to use wdfkd extension comands to get more info about my device object and queue status its handeling but when i use the command it shows me following message .

kd> !wdfdevice ffffe000afd3d1f0 fff
Treating handle as a UMDF handle!
wudfhost could not be found in the module list! Either symbols for wudfhost.exe are not loaded or the process context is not correct

actually i have a crash dump , from the crashdump i got the device object as

3: kd> !devobj ffffe000afd3d1f0
Device object (ffffe000afd3d1f0) is for:
\Driver\TosBTFilter DriverObject ffffe000adb92e60
Current Irp 00000000 RefCount 0 Type 00000032 Flags 00002004
Dacl ffffc10166e87411 DevExt ffffe000adafbfe0 DevObjExt ffffe000afd3d368
ExtensionFlags (0x00000808) DOE_REMOVE_PROCESSED, DOE_DEFAULT_SD_PRESENT
Characteristics (0x00000100) FILE_DEVICE_SECURE_OPEN
AttachedDevice (Upper) ffffe000adbea030 \Driver\bcbtums
AttachedTo (Lower) ffffe000adb00550 \Driver\ACPI
Device queue is not busy.

but now on the above device object if i use the command
!wdfdevice ffffe000afd3d1f0 fff

it doesnt show me the desired results i am looking for , instead gives me strange message as mentioned above.

Please suggest me if i am doing things right …

!wdfdevice takes a WDF handle value, not a pointer. Try starting with
!wdfdriverinfo to get the handle values for your driver.

-scott
OSR
@OSRDrivers

wrote in message news:xxxxx@windbg…

I want to use wdfkd extension comands to get more info about my device
object and queue status its handeling but when i use the command it shows me
following message .

kd> !wdfdevice ffffe000afd3d1f0 fff
Treating handle as a UMDF handle!
wudfhost could not be found in the module list! Either symbols for
wudfhost.exe are not loaded or the process context is not correct

actually i have a crash dump , from the crashdump i got the device object as

3: kd> !devobj ffffe000afd3d1f0
Device object (ffffe000afd3d1f0) is for:
\Driver\TosBTFilter DriverObject ffffe000adb92e60
Current Irp 00000000 RefCount 0 Type 00000032 Flags 00002004
Dacl ffffc10166e87411 DevExt ffffe000adafbfe0 DevObjExt ffffe000afd3d368
ExtensionFlags (0x00000808) DOE_REMOVE_PROCESSED, DOE_DEFAULT_SD_PRESENT
Characteristics (0x00000100) FILE_DEVICE_SECURE_OPEN
AttachedDevice (Upper) ffffe000adbea030 \Driver\bcbtums
AttachedTo (Lower) ffffe000adb00550 \Driver\ACPI
Device queue is not busy.

but now on the above device object if i use the command
!wdfdevice ffffe000afd3d1f0 fff

it doesnt show me the desired results i am looking for , instead gives me
strange message as mentioned above.

Please suggest me if i am doing things right …

Thanks Scott that did work now I have the handles
On 23 Nov 2015 19:45, “Scott Noone” wrote:

> !wdfdevice takes a WDF handle value, not a pointer. Try starting with
> !wdfdriverinfo to get the handle values for your driver.
>
> -scott
> OSR
> @OSRDrivers
>
> wrote in message news:xxxxx@windbg…
>
> I want to use wdfkd extension comands to get more info about my device
> object and queue status its handeling but when i use the command it shows
> me following message .
>
> kd> !wdfdevice ffffe000afd3d1f0 fff
> Treating handle as a UMDF handle!
> wudfhost could not be found in the module list! Either symbols for
> wudfhost.exe are not loaded or the process context is not correct
>
> actually i have a crash dump , from the crashdump i got the device object
> as
>
>
> 3: kd> !devobj ffffe000afd3d1f0
> Device object (ffffe000afd3d1f0) is for:
> \Driver\TosBTFilter DriverObject ffffe000adb92e60
> Current Irp 00000000 RefCount 0 Type 00000032 Flags 00002004
> Dacl ffffc10166e87411 DevExt ffffe000adafbfe0 DevObjExt ffffe000afd3d368
> ExtensionFlags (0x00000808) DOE_REMOVE_PROCESSED, DOE_DEFAULT_SD_PRESENT
> Characteristics (0x00000100) FILE_DEVICE_SECURE_OPEN
> AttachedDevice (Upper) ffffe000adbea030 \Driver\bcbtums
> AttachedTo (Lower) ffffe000adb00550 \Driver\ACPI
> Device queue is not busy.
>
> but now on the above device object if i use the command
> !wdfdevice ffffe000afd3d1f0 fff
>
> it doesnt show me the desired results i am looking for , instead gives me
> strange message as mentioned above.
>
> Please suggest me if i am doing things right …
>
>
>
> —
> WINDBG is sponsored by OSR
>
> OSR is hiring!! Info at http://www.osr.com/careers
>
> For our schedule of WDF, WDM, debugging and other seminars visit:
> http://www.osr.com/seminars
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>

xxxxx@hotmail.com wrote:

I want to use wdfkd extension comands to get more info about my device object and queue status its handeling but when i use the command it shows me following message .

kd> !wdfdevice ffffe000afd3d1f0 fff
Treating handle as a UMDF handle!
wudfhost could not be found in the module list! Either symbols for wudfhost.exe are not loaded or the process context is not correct

actually i have a crash dump , from the crashdump i got the device object as

3: kd> !devobj ffffe000afd3d1f0
Device object (ffffe000afd3d1f0) is for:
\Driver\TosBTFilter DriverObject ffffe000adb92e60
Current Irp 00000000 RefCount 0 Type 00000032 Flags 00002004
Dacl ffffc10166e87411 DevExt ffffe000adafbfe0 DevObjExt ffffe000afd3d368
ExtensionFlags (0x00000808) DOE_REMOVE_PROCESSED, DOE_DEFAULT_SD_PRESENT
Characteristics (0x00000100) FILE_DEVICE_SECURE_OPEN
AttachedDevice (Upper) ffffe000adbea030 \Driver\bcbtums
AttachedTo (Lower) ffffe000adb00550 \Driver\ACPI
Device queue is not busy.

but now on the above device object if i use the command
!wdfdevice ffffe000afd3d1f0 fff

Right, because that’s a PDEVICE_OBJECT, not a WDFDEVICE. If you use
!wdfdriverinfo TosBTFilter
(assuming that’s the name of your .sys file), it should show you the
list of WDFDEVICE objects for your driver.


Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.