Partager via


LPOPEN_PIPE (Compact 2013)

3/26/2014

This function opens a pipe for communication with a universal serial bus (USB) device.

Syntax

typedef USB_PIPE (* LPOPEN_PIPE)(
  USB_HANDLE hDevice,
  LPCUSB_ENDPOINT_DESCRIPTOR lpEndpointDescriptor
);

Parameters

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

Return Value

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 zero (0) pipe.

Requirements

Header

usbdi.h

See Also

Reference

USB Driver Functions
LPCLOSE_PIPE