IoGetDeviceObjectPointer return STATUS_INVALID_DEVICE_REQUEST in Vista

Hi all,
I got STATUS_INVALID_DEVICE_REQUEST (0xC0000010) returned from IoGetDeviceObjectPointer in Vista, but working fine in Win7 and XP, the ObjectName is something like “??\USB#vid…” or “\Device\USBPDO-10”, any idea?

Can you please check with Winobj if this path shows up there in Vista?

Regards,
Ayush Gupta
AI Consulting

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@gmail.com
Sent: Tuesday, June 01, 2010 3:39 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] IoGetDeviceObjectPointer return
STATUS_INVALID_DEVICE_REQUEST in Vista

Hi all,
I got STATUS_INVALID_DEVICE_REQUEST (0xC0000010) returned from
IoGetDeviceObjectPointer in Vista, but working fine in Win7 and XP, the
ObjectName is something like “??\USB#vid…” or “\Device\USBPDO-10”, any
idea?


NTFSD is sponsored by OSR

For our schedule of debugging and file system seminars (including our new fs
mini-filter seminar) 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

>IoGetDeviceObjectPointer in Vista, but working fine in Win7 and XP, the ObjectName is something

like “??\USB#vid…” or “\Device\USBPDO-10”, any idea?

Please retrieve the name using IoGetDeviceInterfaces, do not hardcode it.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

Thanks guys, I got it fixed by using enumerating the device directory.

> Thanks guys, I got it fixed by using enumerating the device directory.

Incorrect for PnP devices, use IoGetDeviceInterfaces.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com

Thanks, I get it.