#include “BlackIceDEVMODE.h”
BOOL SetFTPSecurityMode (BlackIceDEVMODE* pDevMode, DWORD dwConnectionID, int iMode);
Description
Sets the Security Mode property of the stored FTP connection identified by dwConnectionID.
Parameters
BlackIceDEVMODE* pDevMode
Pointer to the BlackIceDEVMODE structure.
DWORD dwConnectionID
The ID of the connection. The ID can be attained by using the GetFTPConnectionByIndex, GetFTPConnectionByName, GetSelectedFTPConnection or the AddFTPConnection functions.
int iMode
The new type of the connection. The value can be one of the values from the FTPSecurityMode enum:
enum FTPSecurityMode
{
FTP_MODE_FTP = 0, // 0 – common unsecured FTP server
FTP_MODE_FTPS_EXPLICIT, // 1 – FTPS server in Explicit mode
FTP_MODE_FTPS_IMPLICIT, // 2 – FTPS server in Implicit mode
FTP_MODE_SFTP // 3 – SFTP server
};
Return value
TRUE on success, otherwise FALSE.
Programming Notes
None
Code Example
None