#include “BlackIceDEVMODE.h”
BOOL SetFTPProxyType (BlackIceDEVMODE* pDevMode, DWORD dwConnectionID, int iType);
Description
Enables, disables or sets the type of the Proxy Server 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 iType
The new value of the property. The value can be one of the values from the FTPProxyType enum:
enum FTPProxyType
{
FTP_PROXY_TYPE_NONE = 0, // 0 – Proxy Server is not used
FTP_PROXY_TYPE_SOCKS4, // 1 – SOCKS 4 proxy
FTP_PROXY_TYPE_SOCKS4A, // 2 – SOCKS 4A proxy
FTP_PROXY_TYPE_SOCKS5, // 3 – SOCKS 5 proxy
FTP_PROXY_TYPE_HTTPCONNECT // 4 – HTTP proxy
};
Return value
TRUE on success, otherwise FALSE.
Programming Notes
None
Code Example
None