SET_REPORT request

hi all,
i am trying to send a class request for SET_REPORT but i am not sure how to send to the control endpoint from my client driver…
below is the steps i am following :
UsbBuildVendorRequest(
&urb,
URB_FUNCTION_CLASS_DEVICE,
sizeof(struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST),
USBD_TRANSFER_DIRECTION_OUT,//transfer flags
0,//Reserved Bits
SET_REPORT,//Class Request code
0x0201,//Report Type: Output: 0x02, Report ID: 0x01
1,//InterfaceIndex
pdata_pkt,
NULL,
sizeof(data_pkt),
NULL,
);

how to send this urb to control endpoint of the device …?
WdfUsbTargetPipeSendUrbSynchronously() needs control pipe handle which i am not able to get … and also may be i cant use this for control endpoint …
so please suggest a way to send the request …

thanks,

WdfUsbTargetDeviceSendControlTransferSynchronously http://msdn.microsoft.com/en-us/library/windows/hardware/ff550104(v=vs.85).aspx

d

dent from pjone


From: xxxxx@gmail.commailto:xxxxx
Sent: ?12/?4/?2012 7:28 AM
To: Windows System Software Devs Interest Listmailto:xxxxx
Subject: [ntdev] SET_REPORT request

hi all,
i am trying to send a class request for SET_REPORT but i am not sure how to send to the control endpoint from my client driver…
below is the steps i am following :
UsbBuildVendorRequest(
&urb,
URB_FUNCTION_CLASS_DEVICE,
sizeof(struct _URB_CONTROL_VENDOR_OR_CLASS_REQUEST),
USBD_TRANSFER_DIRECTION_OUT,//transfer flags
0,//Reserved Bits
SET_REPORT,//Class Request code
0x0201,//Report Type: Output: 0x02, Report ID: 0x01
1,//InterfaceIndex
pdata_pkt,
NULL,
sizeof(data_pkt),
NULL,
);

how to send this urb to control endpoint of the device …?
WdfUsbTargetPipeSendUrbSynchronously() needs control pipe handle which i am not able to get … and also may be i cant use this for control endpoint …
so please suggest a way to send the request …

thanks,


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</mailto:xxxxx></mailto:xxxxx>