GetTransferError (Compact 2013)
3/26/2014
This function returns an error value associated with a USB transfer.
Syntax
BOOL GetTransferError(
USB_TRANSFER hTransfer,
LPDWORD lpdwError
);
Parameters
- hTransfer
[in] Handle to a USB transfer.
- lpdwError
[out] Error value.
Return Value
Returns FALSE if hTransfer does not point to a valid USB_TRANSFER handle. Otherwise, this function returns TRUE and any error values associated with the transfer are stored in lpdwError.
Remarks
Usbtypes.h declares the transfer error values. If the transfer has not completed, lpdwError is set to USB_NOT_COMPLETE_ERROR.
Requirements
Header |
Usbddrv.cpp |