This function returns an error value associated with a USB transfer.
BOOL GetTransferError( USB_TRANSFER hTransfer,
LPDWORD lpdwError );
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.
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.