FsDisconnect
FsDisconnect is called when the user presses the Disconnect button in the FTP connections toolbar. This toolbar is only shown if MSGTYPE_CONNECT is passed to LogProc().
 
Declaration:
 
BOOL __stdcall FsDisconnect(char* DisconnectRoot);
 
Description of parameters:
 
DisconnectRoot This is the root dir which was passed to LogProc when connecting. It allows the plugin to have serveral open connections to different file systems (e.g. ftp servers). Should be either \ (for a single possible connection) or \Servername (e.g. when having multiple open connections).
 
Return value:
 
Return TRUE if the connection was closed (or never open), FALSE if it couldn't be closed.
 
Important note:
 
To get calls to this function, the plugin MUST call LogProc with the parameter MSGTYPE_CONNECT. The parameter LogString MUST start with "CONNECT", followed by one whitespace and the root of the file system which has been connected. This file system root will be passed to FsDisconnect when the user presses the Disconnect button, so the plugin knows which connection to close.
Do NOT call LogProc with MSGTYPE_CONNECT if your plugin does not require connect/disconnect!
Examples:
- FTP requires connect/disconnect. Connect can be done automatically when the user enters a subdir, disconnect when the user clicks the Disconnect button.
- Access to local file systems (e.g. Linux EXT2) does not require connect/disconnect, so don't call LogProc with the parameter MSGTYPE_CONNECT.