CFtpQueue::GetTransferStatus Method  
 
INT GetTransferStatus(
  LPFTPTRANSFERSTATUS lpStatus  
);
INT GetTransferStatus(
  LPFTPTRANSFERSTATUSEX lpStatus  
);

The GetTransferStatus method returns information about the current file transfer in progress.

Parameters

lpStatus
A pointer to an FTPTRANSFERSTATUS or FTPTRANSFERSTATUSEX structure which contains information about the status of the current file transfer.

Return Value

If the method succeeds, the return value is zero. If the method fails, the return value is FTP_ERROR. To get extended error information, call GetLastError.

Remarks

The GetTransferStatus method returns information about the current file transfer, including the average number of bytes transferred per second and the estimated amount of time until the transfer completes. This method would typically be called from within a callback function in response to an FTP_EVENT_PROGRESS event notification.

The dwBytesTotal and dwBytesCopied members of the FTPTRANSFERSTATUSEX structure are declared as unsigned 64-bit integers rather than 32-bit integers. To obtain accurate file transfer information, this extended version of the structure should be used with files that are larger than 4GiB.

Requirements

Minimum Desktop Platform: Windows 7 Service Pack 1
Minimum Server Platform: Windows Server 2008 R2 Service Pack 1
Header File: cstools12.h
Import Library: csftpv12.lib
Unicode: Implemented as Unicode and ANSI versions

See Also