Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

IssueVendorTransfer() handle

7 views
Skip to first unread message

Rob

unread,
Nov 20, 2009, 11:29:03 AM11/20/09
to
We are investigating a handle-resource issue (see my other post).
On of the suspects is an USB driver (written by us).

My question is :
IssueVendorTransfer() returns an USB_TRANSFER handle, should this handle be
closed after this call ? In samples I donot see this....

Kind Regards,
Rob.
www.robtso.nl

R. de Gravelaine

unread,
Nov 20, 2009, 12:20:59 PM11/20/09
to
Hi,

> IssueVendorTransfer() returns an USB_TRANSFER handle, should this handle be
> closed after this call ? In samples I donot see this....

USBD IssueVendorTransfer returns an USB_TRANSFER handle which is
actually a STransfer * obtained by calling GetTransferObject. This
object is allocated dynamically by USBD and is not a regular system HANDLE.

The IssueVendorTransfer flavor that comes with the samples is the one of
usbclient.c and returns a DWORD. Internally, if no notification routine
is given, the USB_TRANSFER allocated by calling USBD's
IssueVendorTransfer is closed. If a notification routine is provided, it
should close the transfer, eventually after having retrieved the
transfer status.

HTH
Remi

0 new messages