USB WDM driver Reading Configuration Descriptor before DriverEntry

Dear All ,

I have a USB device (with bulk endpoint) for Which i am using wdm bulkusb driver.
In DriverEntry function , I want to check the device descriptor & configuration descriptor before Initialize the driver object with driver’s entry points.
I need to check the device descriptor & configuration descriptor before AddDevice is being called .

Please tell me is in the DriverEntry can i do this .
Please let me know the way if possible.

Thanks
Amit Shahi


IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!

Can’t do that. The first time you can get the config descriptor is when processing the start irp/EvtDevicePrepareHardware. If you want to set the disptach table based on the device, store a 2ndary dispatch table in you device extension and change the table based on the device typ. This lets you support multiple types in the driver as well.

d

Sent from my phone with no t9, all spilling mistakes are not intentional.

-----Original Message-----
From: Amit Shahi
Sent: Wednesday, January 21, 2009 8:59 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] USB WDM driver Reading Configuration Descriptor before DriverEntry

Dear All ,

I have a USB device (with bulk endpoint) for Which i am using wdm bulkusb driver.
In DriverEntry function , I want to check the device descriptor & configuration descriptor before Initialize the driver object with driver’s entry points.
I need to check the device descriptor & configuration descriptor before AddDevice is being called .

Please tell me is in the DriverEntry can i do this .
Please let me know the way if possible.

Thanks
Amit Shahi


______________________________________________
IndiaInfo Mail - the free e-mail service with a difference! www.indiainfo.com
Check out our value-added Premium features, such as an extra 20MB for mail storage, POP3, e-mail forwarding, and ads-free mailboxes!


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