| BOOL GetTransferInfo( |
| |
UINT nClientId, |
|
| |
LPFTPSERVERTRANSFER lpTransferInfo |
|
| ); |
Return information about the current file transfer for the client
session.
Parameters
- nClientId
- An unsigned integer which uniquely identifies the client
session.
- lpTransferInfo
- A pointer to an FTPSERVERTRANSFER 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 APPE, RETR, STOR or STOU 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.
If the default event handler is used, the OnDownload
and OnUpload methods will be invoked with information about
the transfer passed as arguments to the handler.
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: csftsv12.lib
Unicode: Implemented as Unicode and ANSI versions
See Also
|