HTTPQUEUESTATUS  
 

This structure is used by the GetStatus method to return information about the current status of the file transfer queue.

typedef struct _HTTPQUEUESTATUS
{
    DWORD dwStatus;
    DWORD dwThreadId;
    DWORD dwQueuedFiles;
    DWORD dwPendingFiles;
    DWORD dwCopiedFiles;
    DWORD dwFailedFiles;
    DWORD dwTimeElapsed;
    DWORD dwCurrentFile;
    DWORD dwLastError;
    ULARGE_INTEGER uiBytesCopied;
    ULARGE_INTEGER uiBytesTotal;
} HTTPQUEUESTATUS, *LPHTTPQUEUESTATUS;

Members

dwStatus
An unsigned integer which specifies the current status of the queue. It can be one of the following values:
Value Description
HTTP_QUEUE_STATUS_IDLE The file transfer queue is idle and no files are being uploaded or downloaded. This state is returned before the Start method has been called or after the Stop method 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.
HTTP_QUEUE_STATUS_ACTIVE Files in the queue are being uploaded or downloaded. The dwCurrentFile member of this structure identifies the file which is currently being transferred.
HTTP_QUEUE_STATUS_PAUSED File transfers are currently paused. The queue enters this state after the Suspend method is called and resumes file transfers after the Resume method is called.
dwThreadId
An unsigned integer which specifies the thread ID for the queue manager which is performing the file transfers. All file transfers are performed asynchronously in a background worker thread. If this structure member is zero, the queue is idle and not performing file transfers. The application should not use the thread ID to obtain a handle to suspend or terminate the thread. This can potentially result in unexpected behavior or instability within the application.
dwQueuedFiles
An unsigned integer which specifies the total number of queued files. This value includes pending and completed file transfers.
dwPendingFiles
An unsigned integer which specifies the number of files which are queued to be transferred.
dwCopiedFiles
An unsigned integer which specifies the number of files which have been successfully transferred. This value reflects the total number of files which have the HTTP_QUEUE_FLAG_COMPLETED status.
dwFailedFiles
An unsigned integer which specifies the number of files which have failed to transfer or the file transfer has been canceled. This value reflects the total number of files which have the HTTP_QUEUE_FLAG_FAILED status.
dwTimeElapsed
An unsigned integer which specifies the total amount of time, in milliseconds, the queue manager has been active performing a file transfer. If the queue is idle, this value will reflect the total run time for the previously active queue. A value of zero indicates the queue was never active or the queue state has been reset with a call to the Reset method.
dwCurrentFile
An unsigned integer which specifies the unique identifier for the current file being transferred. If no file transfer is in progress, this member will have a value of zero. If the value is non-zero, it can be passed to the GetFile method to obtain information about the queued file.
dwLastError
An unsigned integer which specifies the last error code for a failed file transfer. If there have been no errors, this value will be zero.
uiBytesCopied
A value which specifies the number of bytes which were copied during the current or last transfer. The ULARGE_INTEGER type is a union of a structure and a 64-bit value which can be used on both 32-bit and 64-bit systems. For languages other than C/C++ you can define this structure member as an unsigned 64-bit integer type.
uiBytesTotal
A value which specifies the total number of bytes which were copied during the current queue run. The ULARGE_INTEGER type is a union of a structure and a 64-bit value which can be used on both 32-bit and 64-bit systems. For languages other than C/C++ you can define this structure member as an unsigned 64-bit integer type.

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: cshtpv12.lib

See Also