I would like to get a WDFUSBDEVICE to get some information from my USB devices with my Lower Filter.
I’m was thinking of using WdfUsbTargetDeviceCreate() in the EvtDriverDeviceAdd(), but the documentation states : " (The driver cannot call WdfUsbTargetDeviceCreate from within its EvtDriverDeviceAdd callback function.)"…
Documentation also states : “Typically, a driver calls WdfUsbTargetDeviceCreate from within its EvtDevicePrepareHardware callback function.” I suspect this does not apply to a KMDF Filter …
What to do?
The docs are correct. What do you want to use the wdfusbdevice for?
d
dent from a phpne with no keynoard
-----Original Message-----
From: xxxxx@live.ca
Sent: October 03, 2010 1:28 AM
To: Windows System Software Devs Interest List
Subject: [ntdev] Getting a WDFUSBDEVICE in a KMDF Filter
I would like to get a WDFUSBDEVICE to get some information from my USB devices with my Lower Filter.
I’m was thinking of using WdfUsbTargetDeviceCreate() in the EvtDriverDeviceAdd(), but the documentation states : " (The driver cannot call WdfUsbTargetDeviceCreate from within its EvtDriverDeviceAdd callback function.)"…
Documentation also states : “Typically, a driver calls WdfUsbTargetDeviceCreate from within its EvtDevicePrepareHardware callback function.” I suspect this does not apply to a KMDF Filter …
What to do?
—
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
Okay, thank you for the confirmation.
The goal is to get the USB Descriptor.
Yes, I think there is a way to do it with URB_FUNCTION_GET_DESCRIPTOR_FROM_X…
But, it seems more cumbersome than using WDFUSBDEVICE and the WdfUSbXXXX series of methods. May be only because I find more documentation on it.