#include “BlackIceDEVMODE.h”
BOOL SetFTPPassive (BlackIceDEVMODE* pDevMode, DWORD dwConnectionID, BOOL bEnable);
Description
Enables or disables Passive Mode for the FTP connection identified by dwConnectionID. Passive Mode is only supported for FTP and FTPS connections, not for SFTP connections. The SetFTPSecurityMode function can be used to set the type of the connection.
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.
BOOL bEnable
Set to TRUE to enable Passive Mode, or FALSE to disable it.
Return value
TRUE on success, otherwise FALSE.
Programming Notes
None
Code Example
None