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:
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
GetInterfaceInfo
..msdn    Add comment     W32 Constants      Translate this page
The GetInterfaceInfo function obtains a list of the network interface adapters on the local system.
Code examples:
How to release and renew a lease on an IP address previously obtained through Dynamic Host Configuration Protocol (DHCP)
Declaration:
DWORD GetInterfaceInfo(
    PIP_INTERFACE_INFO pIfTable,
    PULONG dwOutBufLen
);
FoxPro declaration:
DECLARE INTEGER GetInterfaceInfo IN iphlpapi;
    STRING @ pIfTable,;
    LONG   @ dwOutBufLen
Parameters:
pIfTable
[in] Pointer to a buffer that specifies a IP_INTERFACE_INFO structure that contains the list of adapters.

dwOutBufLen
[out] Pointer to a DWORD variable. If the buffer pointed to by the pIfTable parameter is NULL, or is not large enough to contain the list of adapters, GetInterfaceInfo receives the required size in this DWORD variable.
Return value:
If the function succeeds, the return value is NO_ERROR.
My comment:
Normally this functionality is achieved through IPCONFIG /all call.
Word Index links for the GetInterfaceInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-12-02 11:45:43
Modified: 2002-12-02 11:52:33
Visited in last 7 days: 13
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 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.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.124.198)
1 sec.Function: 'RemoveDirectoryTransacted'
Function group: 'File Management'
2 sec.Function: 'LogonUser'
5 sec.Function: 'waveOutUnprepareHeader'
Function group: 'Windows Multimedia'
18 sec.
Function group: 'Error Handling'
2 day(s)Function: 'NetGroupEnum'
Function group: 'Network Management'
 Example: 'Enumerating network interfaces on the local computer'
 Function: 'NetScheduleJobDel'
Function group: 'Network Management'
Google
Advertise here!