CFtpQueue::GetStatus Method  
 
INT GetStatus(
  LPFTPQUEUESTATUS lpQueueStatus  
);

The GetStatus method returns information about the specified file in the transfer queue.

Parameters

lpQueueStatus
A pointer to a FTPQUEUESTATUS structure which will contain information about the current state of the file transfer queue. If this parameter is NULL, the method will ignore the parameter and only return the current status of the queue.

Return Value

If the method succeeds, the return value is the current queue status. If the method fails, the return value is FTP_ERROR. To get extended error information, call FtpGetLastError. The following status values may be returned:

Value Description
FTP_QUEUE_STATUS_IDLE The file transfer queue is idle and no files are being uploaded or downloaded. This state is returned before FtpStartQueue has been called or after FtpStopQueue has been called. The queue will also automatically enter an idle state after the last file transfer has completed and the queue manager thread exits.
FTP_QUEUE_STATUS_ACTIVE The queue manager is active and files are currently being uploaded or downloaded.
FTP_QUEUE_STATUS_PAUSED The queue manager is active although file transfers are currently paused. The queue enters this state after the FtpSuspendQueue method is called and resumes file transfers after the FtpResumeQueue method is called.

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

See Also