Returns the ID of a stored FTP connection. Used with GetFTPConnectionCount to enumerate the stored FTP server connection settings. See the code example below.
GetFTPConnectionByIndex (pDevMode As Long, iIndex As Integer) As Integer
Input value pDevMode: - Handle to the BlackIceDEVMODE.
Input value iIndex: - Index of the connection to return.
Return value - The function returns the ID of the stored connection settings. This ID can be used in other GetFTP* and SetFTP* functions to retrieve or change the settings.
NOTE: For 32-bit applications, use pDevMode as Integer, instead of Long.
C# example for enumerating the stored connection settings:
int count = BiDevMode.GetFTPConnectionCount(pDevMode);
for (int i = 0; i < count; i++)
{
int id = BiDevMode.GetFTPConnectionByIndex(pDevMode, i);
string connectionName = BiDevMode.GetFTPConnectionName(pDevMode, id);
}