#include “BlackIceDEVMODE.h”
BOOL GetFTPSecurityMode (BlackIceDEVMODE* pDevMode, DWORD dwConnectionID, int* iMode);
Description
Gets 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
Pointer to a variable that will receive the type of the connection. The returned 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