Partager via


ResetBulkEndpoint (Windows Embedded CE 6.0)

1/6/2010

This function resets the pipe, and then checks the endpoint status on the device. If the endpoint is halted, then this function sends a clear feature request through ClearOrSetFeature.

Syntax

DWORD ResetBulkEndpoint(
  LPCUSB_FUNCS pUsbFuncs,
  HANDLE hUsbDevice,
  USB_PIPE hPipe,
  LPTRANSFER_NOTIFY_ROUTINE NotifyRoutine,
  PVOID NotifyContext,
  UCHAR bIndex,
  DWORD dwTimeout
);

Parameters

  • pUsbFuncs
    [in] Pointer to a USB_FUNCS structure.
  • hUsbDevice
    [in] Handle to a USB device.
  • hPipe
    [in] Handle to a USB pipe.
  • NotifyContext
    [in] Pointer to the parameter to pass to a callback routine.
  • bIndex
    [in] Value of zero (0) for DEVICE, or interface or endpoint number.
  • dwTimeout
    [in] Timeout in milliseconds (ms).

Return Value

Microsoft® Win32® error code. For more information, see GetLastError.

Requirements

Header usbclient.h
Windows Embedded CE Windows CE 2.10 and later

See Also

Reference

USB Host Client Driver Functions
ClearOrSetFeature
LPTRANSFER_NOTIFY_ROUTINE
USB_FUNCS