Re: IoGetDeviceProperty returns STATUS_OBJECT_NAME_NOT_FOUND

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



We are trying to pull "DevicePropertyBusTypeGuid" property

Why? You already know it's a USB device, aren't you going to get the
USB bus GUID every time?

Unless, of course, your driver is shared with 1394, or PCI, or
something equally insidious, perhaps..

Indeed, our driver is supporting USB and PCI devices.
Thank you for your inputs.

If my understanding is correct, usbhub20 is expected to be the parent
driver for non-composite devices, and usbhub the parent driver for
composite devices if the 3 conditions you pointed are satisfied.

But do you see any reason why the call to IoGetDeviceProperty() would
failed ?
I figured out that IoGetDeviceProperty() was dereferencing some field
in the DevNode from the USBHUB DeviceObjectExtension. That field
(offsett 0x68 in the DevNode) equals 0xFFFF and the function returns
STATUS_OBJECT_NOT_FOUND.
That same field equals 0x0002 in the DevNode from USBHUB20
DeviceObjectExtension (non composite device).




.



Relevant Pages