OpenPipe

This function opens a pipe for communication with a USB device.

Syntax

USB_PIPE OpenPipe( USB_HANDLE hDevice, LPCUSB_ENDPOINT_DESCRIPTOR lpEndpointDescriptor );

Parameters

hDevice
[IN] Handle to a USB device.
lpEndpointDescriptor
[IN] Pointer to an endpoint descriptor.

Return Values

A handle to a USB pipe indicates success. NULL indicates failure.

Remarks

No more than 16 pipes can be open simultaneously on a device, including the default endpoint 0 pipe.

This function is defined in the Mousedrv.cpp file.

See Also

ClosePipe