#include “BlackIceDEVMODE.h”
BOOL GetFTPProxyPort (BlackIceDEVMODE* pDevMode, DWORD dwConnectionID, int* iPort);
Description
Gets 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
Pointer to a variable that will receive the Port number. If the received 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