BOOL GetTransferInfo( |
|
UINT nClientId, |
|
|
LPHTTPSERVERTRANSFER lpTransferInfo |
|
); |
Return information about the current file transfer.
Parameters
- nClientId
- An unsigned integer which uniquely identifies the client
session.
- lpTransferInfo
- A pointer to an HTTPSERVERTRANSFER structure that will
contain information about the last file transfer. This parameter
cannot be NULL, and the dwSize member of the structure must
be initialized to specify the structure size prior to calling this
method.
Return Value
If the method succeeds, the return value is non-zero. If the
client ID does not specify a valid client session,
the method will return zero. This method should only be called
after the client has issued the GET or PUT commands to
initiate a file transfer, otherwise the return value will be zero.
Remarks
The GetTransferInfo method is used to obtain
information about the last file transfer that was performed by the
client. This method is typically called within an event handler to
determine how many bytes of data were transferred, the type of file
and the full path to the file on the local system.
Requirements
Minimum Desktop Platform: Windows 7 (Service Pack 1)
Minimum Server Platform: Windows Server 2008 R2 (Service Pack 1)
Header File: cstools10.h
Import Library: cshtsv10.lib
Unicode: Implemented as Unicode and ANSI versions.
See Also
ReceveRequest,
SendResponse,
HTTPSERVERTRANSFER
|