The Logout method logs out the user associated with the
current client session.
Parameters
None.
Return Value
If the method succeeds, the return value is the server result
code. If the method fails, the return value is FTP_ERROR. To get
extended error information, call GetLastError.
Remarks
The Logout method is used when the client wants to
re-authenticate using a new username and password. Before any further
action may be taken, other than disconnecting from the server, the
Login method must be called to re-authenticate the client.
It is not necessary to call this method prior to disconnecting
from the server because the user current user is automatically logged
out when the Disconnect method is called.
This method is not supported with secure connections using the
SSH protocol.
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: csftpv10.lib
Unicode: Implemented as Unicode and ANSI versions.
See Also
Connect,
Disconnect, Login
|