Compartir a través de


LPGET_TRANSFER_STATUS (Compact 2013)

3/26/2014

This function gets the status of an active transfer.

Syntax

typedef BOOL (* LPGET_TRANSFER_STATUS)(
  USB_TRANSFER hTransfer, 
  LPDWORD lpdwBytesTransferred, 
  LPDWORD lpdwError
);

Parameters

  • 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.
  • lpdwError
    [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 structure. 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

usbdi.h

See Also

Reference

USB Driver Functions