Querying a usb devices PNP capabilities.

Hi,

I have a bus driver that creates PDOs for USB devices, so that I can intercept the USB requests sent down by device drivers.

My problem is, how do I query the device for the WDF_DEVICE_PNP_CAPABILITIES properties ‘Removable’, ‘DockDevice’ and ‘SurpriseRemovalOK’. What USB commands do I use?

Thanks,

Kevin.

These don’t translate to specific usb commands. SurpriseremovalOK set by the FDO that loads on your FDO for instance

d

-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@gmail.com
Sent: Tuesday, October 12, 2010 12:45 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] Querying a usb devices PNP capabilities.

Hi,

I have a bus driver that creates PDOs for USB devices, so that I can intercept the USB requests sent down by device drivers.

My problem is, how do I query the device for the WDF_DEVICE_PNP_CAPABILITIES properties ‘Removable’, ‘DockDevice’ and ‘SurpriseRemovalOK’. What USB commands do I use?

Thanks,

Kevin.


NTDEV is sponsored by OSR

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

Thanks.