GetTransferError

This function returns an error value associated with a USB transfer.

BOOL GetTransferError(
  USB_TRANSFER hTransfer,
  LPDWORD lpdwError 
);

Parameters

  • hTransfer
    [in] Handle to a USB transfer.
  • lpdwError
    [out] Error value.

Return Values

Returns FALSE if hTransfer does not point to a valid USB_TRANSFER structure; otherwise, this function returns TRUE, and any error values associated with the transfer are stored in lpdwError.

Remarks

Usbtypes.h declares the transfer error values. If the transfer has not completed, lpdwError is set to USB_NOT_COMPLETE_ERROR.

Requirements

OS Versions: Windows CE 2.10 and later.
Header: Usbddrv.cpp.

See Also

USB Drivers

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.