Using Win32 functions in Visual FoxPro Image Gallery
IP Helper
..msdn
GetAdaptersAddresses
GetAdaptersInfo
GetBestInterface
GetBestRoute
GetIfEntry
GetInterfaceInfo
GetIpAddrTable
GetIpNetTable
GetIpStatistics
GetNetworkParams
GetNumberOfInterfaces
GetRTTAndHopCount
GetTcp6Table
GetTcpStatistics
GetTcpTable
GetUdpTable
IcmpCloseHandle
IcmpCreateFile
IcmpSendEcho
if_indextoname
if_nametoindex
IpReleaseAddress
IpRenewAddress
SendARP
Code examples:
GetNumberOfInterfaces
..msdn    Add comment     W32 Constants      Translate this page
Returns the number of network interfaces on the local computer, including the loopback interface.
Code examples:
Declaration:
DWORD GetNumberOfInterfaces(
  PDWORD pdwNumIf  // pointer to number of interfaces
);
FoxPro declaration:
DECLARE INTEGER GetNumberOfInterfaces IN iphlpapi;
    INTEGER @ pdwNumIf
Parameters:
pdwNumIf
[out] Pointer to a DWORD variable that receives the number of interfaces on the local computer.
Return value:
If the function succeeds, the return value is NO_ERROR (0). If the function fails, use FormatMessage to obtain the message string for the returned error.
Usage:
nCount=0
= GetNumberOfInterfaces( @nCount )
? nCount
My comment:
The number of network interfaces returned by this function is one more ( that is the loopback interface ) than the number of adapters returned by the GetAdaptersInfo and GetInterfaceInfo functions.

See also: if_indextoname, if_nametoindex
Word Index links for the GetNumberOfInterfaces :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-01-13 10:13:12
Modified: 2010-05-19 22:19:37
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.37), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.196.72.162)
13 sec.Function: 'OpenClipboard'
26 sec.Function: 'GdipGetImageDecoders'
39 sec.Function: 'RtlDecompressBuffer'
51 sec.Function: 'FillMemory'
1.07 min.Function: 'CeCloseHandle'
1.28 min.Function: 'GdipFillRectangle'
1.52 min.Function: 'ReadDirectoryChangesW'
1.77 min.Function: 'CertOpenSystemStore'
2 min.Function: 'LookupAccountSid'
2.22 min.Function: 'FindResource'
Google
Advertise here!