#include “BlackIceDEVMODE.h”
BOOL SetFTPProxyPort (BlackIceDEVMODE* pDevMode, DWORD dwConnectionID, int iPort);
Description
Sets the Proxy Server Port, stored in the FTP connection identified by dwConnectionID. The proxy server can be enabled or disabled using the SetFTPProxyType function.
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 iPort
The new Port number for the connection. If this number is 0, that means that the default port number is used, based on the type of the proxy server. The default ports are the following:
Socks: 1080
HTTP Connect: 8080
The SetFTPProxyType function can be used to set the type of the proxy server.
Return value
TRUE on success, otherwise FALSE.
Programming Notes
None
Code Example
None