AbortTransfer

This function aborts an active transfer.

Syntax

BOOL AbortTransfer( USB_TRANSFER hTransfer, DWORD dwFlags );

Parameters

hTransfer
[IN] Handle to a USB transfer.
dwFlags
[IN] Either of the values USB_NO_WAIT or 0.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This function halts a transfer in progress. It blocks the transfer until the transfer is successfully canceled unless USB_NO_WAIT is specified. If USB_NO_WAIT is specified, the transfer is flagged for cancelation, and this function returns immediately.

This function is defined in the Mousedrv.cpp file.