ResetPipe (Windows CE 5.0)

Send Feedback

This function resets an open universal serial bus (USB) pipe.

BOOL ResetPipe(  LPCUSB_FUNCS pUsbFuncs,  USB_PIPE hPipe,  DWORD dwFlags);

Parameters

  • pUsbFuncs
    [in] Pointer to a USB_FUNCS structure.
  • hPipe
    [in] Handle to an open USB pipe.
  • dwFlags
    [in] Value of USB_NO_WAIT or zero (0).

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This request clears the halted state of a pipe within the USB stack and resets the data-toggle state of the endpoint to DATA0. It does not reset the stalled state of the endpoint on the device; the device driver must do that by sending the appropriate feature request on the default pipe. The GetStatus function determines whether the endpoint is stalled on the device side.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Usbclient.h.

See Also

LPCLEAR_FEATURE | GetStatus | LPIS_PIPE_HALTED

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.