GetTransferError

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] Filled in with an error value.

Return Values

Returns FALSE if hTransfer does not point to a valid USB_TRANSFER structure. Otherwise, this function returns TRUE, and any error values associated with the transfer are stored in lpdwError.

Remarks

Transfer error values are declared in the Usbtypes.h header file. If the transfer has not been completed, lpdwError is set to USB_NOT_COMPLETE_ERROR.

This function is defined in the Mousedrv.cpp file.