Share via


LPABORT_TRANSFER (Windows Embedded CE 6.0)

1/6/2010

This function aborts an active transfer.

Syntax

typedef BOOL (* LPABORT_TRANSFER)(
  USB_TRANSFER hTransfer,
  DWORD dwFlags
);

Parameters

  • hTransfer
    [in] USB transfer handle.
  • dwFlags
    [in] Value of USB_NO_WAIT or zero (0).

Return Value

TRUE indicates success. FALSE indicates failure.

Remarks

This function halts a pending transfer. This function blocks until the transfer is successfully canceled unless USB_NO_WAIT is specified. If you specify USB_NO_WAIT, the transfer is flagged for cancellation, and this function returns immediately. If a completion callback function was registered when the transfer was issued, the completion callback function executes.

Requirements

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

See Also

Reference

USB Host Driver Functions