This structure is used by the GetFile, GetFirstFile
and GetNextFile methods to return information about a file
in the transfer queue.
typedef struct _HTTPQUEUEDFILE
{
DWORD dwFileId;
DWORD dwQueueMode;
DWORD dwQueueFlags;
DWORD dwTimeElapsed;
DWORD dwLastError;
ULARGE_INTEGER uiBytesCopied;
TCHAR szLocalFile[HTTP_MAXFILENAMELEN];
TCHAR szRemoteFile[HTTP_MAXURLPATHLEN];
} HTTPQUEUEDFILE, *LPHTTPQUEUEDFILE;
Members
- dwFileId
- An unsigned integer which specifies a unique identifier for the
queued file. The application should not make any assumptions about the value of
the file identifiers. They should be
considered opaque values which are only guaranteed to uniquely
identify a file in the transfer queue. In particular, there is no
guarantee that the file identifiers will be sequential and they should
not be used as index values into an array.
- dwQueueMode
- An unsigned integer value which specifies how the file was
queued for transfer. It may be one of the following values:
| Constant |
Description |
| HTTP_QUEUE_DOWNLOAD |
The file was queued for download. |
| HTTP_QUEUE_UPLOAD |
The file was queued for upload. |
- dwQueueFlags
- An unsigned integer which specifies one or more bit flags which
provides information about the status of the file transfer. It may
be one or more of the following values:
| Constant |
Description |
| HTTP_QUEUE_FLAG_NONE |
The file is pending transfer in queue. |
| HTTP_QUEUE_FLAG_COMPLETED |
The file has been transferred successfully. If this flag is
set, no errors were encountered during the upload or download. |
| HTTP_QUEUE_FLAG_FAILED |
The file transfer failed. If this flag is set, the
dwError member of this structure will contain the error
code associated with the failed transfer. |
| HTTP_QUEUE_FLAG_CANCELED |
The file transfer was canceled.
This flag is only set when the Cancel method has been called and a queued file is in the process of
being uploaded or downloaded. |
- dwTimeElapsed
- An unsigned integer which specifies the number of milliseconds
required to complete the transfer. This value will be zero unless
the file has been transferred successfully.
- dwLastError
- An unsigned integer which specifies the last error code for a
failed transfer. If the file was transferred successfully, this
value will be zero.
- uiBytesCopied
- A value which specifies the number of bytes which were copied
during the file 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.
- szLocalFile
- A null-terminated string which specifies the full path to the
local file being transferred.
- szRemoteFile
- A null-terminated string which specifies the complete URL to the
remote file being transferred.
Remarks
It is possible that the szLocalFile and szRemoteFile
structure members will be different than the values passed to the
AddFile method. Those values are normalized, with any relative
paths converted to absolute paths. Internationalized domain names will
be encoded and the URL paths will be collapsed, removing any extraneous
path information. For example, if the remote file name is specified as
http://http.server.tld/folder1/../folder2/filename.txt
it would be normalized as http://http.server.tld/folder2/filename.txt.
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
Unicode: Implemented as Unicode and ANSI versions
See Also
|