| |
This structure is used by the CWebStorage::GetTransferStatus
method to return information about a data transfer in progress.
typedef struct _WEB_STORAGE_TRANSFER
{
TCHAR szObjectLabel[512];
DWORD dwStorageType;
DWORD dwBytesTotal;
DWORD dwBytesCopied;
DWORD dwBytesPerSecond;
DWORD dwTimeElapsed;
DWORD dwTimeEstimated;
} WEB_STORAGE_TRANSFER, *LPWEB_STORAGE_TRANSFER
Members
- szObjectLabel
- A null-terminated string that specifies the label for the object
that is being retrieved, created or replaced.
- dwStorageType
- An integer value that identifies the storage container type.
This will be one of the following values:
| Constant |
Description |
WEB_STORAGE_GLOBAL (1) |
Global storage. Objects stored using this storage type are
available to all users. Any changes made to objects using this
storage type will affect all users of the application. Unless there
is a specific need to limit access to the objects stored by the
application to specific domains, local machines or users, it is
recommended that you use this storage type when creating new
objects. |
WEB_STORAGE_DOMAIN (2) |
Local domain storage. Objects stored using this storage type are
only available to users in the same local domain, as defined by the
domain name or workgroup name assigned to the local system. If the
domain or workgroup name changes, objects previously stored using this storage
type will not be available to the application. |
WEB_STORAGE_MACHINE (3) |
Local machine storage. Objects stored using this storage type
are only available to users on the same local machine. The local
machine is identified by unique characteristics of the system,
including the boot volume GUID. Objects previously stored using this storage
type will not be available on that system if the boot disk is
reformatted. |
WEB_STORAGE_USER (4) |
Current user storage. Objects stored using this storage type are
only available to the current user logged in on the local machine.
The user identifier is based on the Windows user SID that is
assigned when the user account is created. If the user account is
deleted, the objects previously stored using this storage type will not
be available to the application. |
- dwBytesTotal
- An unsigned integer which specifies the total number of
bytes that will be transferred. If the object is being downloaded to
the local host, this is the size of the stored object. If the data
is being uploaded from the local host to be stored on the server,
it is the size of the buffer or local file.
- dwBytesCopied
- An unsigned integer which specifies the total number of
bytes that have been copied.
- dwBytesPerSecond
- The average number of bytes that have been copied per
second.
- dwTimeElapsed
- The number of seconds that have elapsed since the file transfer
started.
- dwTimeEstimated
- The estimated number of seconds until the data transfer is
completed. This is based on the average number of bytes transferred
per second.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
|
|