Поделиться через


GetTransferStatus (Compact 2013)

3/26/2014

This function gets the status of an active transfer.

Syntax

BOOL GetTransferStatus(
  LPCUSB_FUNCS UsbFuncs,
  USB_TRANSFER hTransfer,
  LPDWORD pBytesTransferred,
  PUSB_ERROR pUsbError
);

Parameters

  • UsbFuncs
    [in] Pointer to a USB_FUNCS structure.
  • hTransfer
    [in] USB transfer handle.
  • lpdwBytesTransferred
    [out] Pointer to the number of bytes transferred. The pointer might be NULL, in which case this function does not report the number of bytes transferred.
  • pUsbError
    [out] Pointer to a value containing error values for the transfer or the value USB_NO_ERROR. The pointer might be NULL, in which case this function does not report the error value.

Return Value

Returns TRUE if hTransfer points to a valid USB_TRANSFER handle. Otherwise, returns FALSE.

Remarks

This function gets the results of a completed transfer. Even transfers that have errors might have valid data indicated.

Requirements

Header

usbclient.h

See Also

Reference

USB Host Client Driver Functions
USB_FUNCS