ClosePipe

This function closes an open pipe handle.

Syntax

BOOL ClosePipe( USB_PIPE hPipe );

Parameters

hPipe
[IN] Handle to an open pipe.

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This function aborts all transfers in progress on a pipe and frees all resources associated with the pipe. If transfers are in progress, this function blocks the transfers until the abort completes.

This function is defined in the Mousedrv.cpp file.