GetTransferStatus
This function gets the status of an active transfer.
Syntax
BOOL GetTransferStatus( USB_TRANSFER hTransfer,
LPDWORD lpdwBytesTransferred, LPDWORD lpdwError );
Parameters
- hTransfer
- [IN] Handle to a USB transfer.
- lpdwBytesTransferred
- [OUT] Pointer to the number of of bytes transferred. The pointer may be NULL, in which case this function does not report the number of bytes transferred.
- lpdwError
- [OUT] Pointer to a value containing error values for the transfer or the value USB_NO_ERROR. The pointer may be NULL, in which case this function does not report the error value.
Return Values
Returns TRUE if hTransfer points to a valid USB_TRANSFER structure and FALSE otherwise.
Remarks
This function is used to get the results of a completed transfer. Even transfers that have errors may have valid data indicated.
This function is defined in the Mousedrv.cpp file.