GetInterfaceCount
Top  Previous  Next

Description

Returns the number of network interfaces available in the system.


Syntax


[C++]
int
 GetInterfaceCount();


Parameters
[C/C++]
 
None  


Return Values


Integer value containing the number of network interfaces found in the system. If zero, no  


Example


This fragment of an MFC code fills out a combo box with IP addresses of network interfaces installed on the system.

for (int i = 0; i < m_pCamera->GetInterfaceCount(); i++)  
{  
   ULONG32 ip = m_pCamera->GetInterfaceAtIndex(i);  
   TCHAR ipstr[32];  
   ip2str(ipstr, 32, ip);  
   m_interfaceList.AddString(ipstr);  
}  
m_interfaceList.SetCurSel(0);  


Remarks


This method is typically used in combination with GetInterfaceAtIndex to list all network interfaces installed on the system. A virtual camera can then be bound to one of the interfaces by calling Connect.