AbortTransfer (Windows CE 5.0)

Send Feedback

This function aborts an active transfer.

BOOL AbortTransfer(  LPCUSB_FUNCS pUsbFuncs,USB_TRANSFERhTransfer,DWORDdwFlags);

Parameters

  • pUsbFuncs
    [in] Pointer to a USB_FUNCS structure.
  • hTransfer
    [in] USB transfer handle.
  • dwFlags
    [in] Value of USB_NO_WAIT or zero (0).

Return Values

TRUE indicates success. FALSE indicates failure.

Remarks

This function halts a pending transfer. It blocks until the transfer is successfully canceled unless you specify USB_NO_WAIT. 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

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

See Also

USB_FUNCS

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.