Returns the number of stored FTP server connection settings. A printer can store the properties of multiple FTP servers but it can only upload a document to one at a time. To upload to multiple servers, the redirect printing option can be used with multiple printers.
GetFTPConnectionCount (pDevMode As Long) As Integer
Input value pDevMode: - handle to the BlackIceDEVMODE.
Return value - The number of stored FTP connections.
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);
}