SetFTPPassive

 

Enables or disables Passive Mode for the FTP connection identified by iConnectionID. Passive Mode is only supported for FTP and FTPS connections, not for SFTP connections. The SetFTPSecurityMode method can be used to set the type of the connection.

 

SetFTPPassive (pDevMode As Long, iConnectionID As Integer, bEnable As Boolean) 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 bEnable:

Set to True to enable Passive Mode, or False to disable it.

 

Return value:

True on success, otherwise False.

 

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