AbortPipeTransfers

This function aborts all transfers on an open USB pipe.

Syntax

BOOL AbortPipeTransfers( USB_PIPE hPipe, DWORD dwFlags );

Parameters

hPipe
[IN] Handle to an open USB pipe.
dwFlags
[IN] Can contain either of the values USB_NO_WAIT or 0.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This function blocks until all transfers have been successfully canceled on the endpoint unless USB_NO_WAIT is specified. If USB_NO_WAIT is specified, the transfers are flagged to be canceled, and this function returns immediately.

This function is defined in the Mousedrv.cpp file.