IssueVendorTransfer
(1)
STransfer
(1)
Remi
(1)
Suspects
(1)
Donot
(1)
USBD
(1)

IssueVendorTransfer() handle

Asked By Rob
20-Nov-09 11:29 AM
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

Hi,USBD IssueVendorTransfer returns an USB_TRANSFER handle which isactually a

R. de Gravelaine replied to Rob
20-Nov-09 12:20 PM
Hi,


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
Post Question To EggHeadCafe