Partager via


OpenPipe

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

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

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Usbd.hpp.

See Also

ClosePipe | USB Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.