SetFTPSecurityMode

 

Sets the Security Mode property of the stored FTP connection identified by iConnectionID.

 

SetFTPSecurityMode (pDevMode As Long, iConnectionID As Integer, iMode As Integer) As Boolean

 

Input value pDevMode:

Handle to the BlackIceDEVMODE.

 

Input value iConnectionID:

The ID of the selected FTP connection. The ID can be attained by using the GetFTPConnectionByIndex, GetFTPConnectionByName, GetSelectedFTPConnection or the AddFTPConnection methods.

 

Input value iMode:

The type of the connection. Can be one of the following values:

            0: common unsecured FTP server

            1: FTPS server in Explicit mode

            2: FTPS server in Implicit mode

            3: SFTP server

 

Return value:

True on success, otherwise False.

 

NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.