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:
if_indextoname
..msdn    Add comment     W32 Constants      Translate this page
Converts the local index for a network interface to the ANSI interface name.
Code examples:
Declaration:
PCHAR WINAPI if_indextoname(
  __in   NET_IFINDEX InterfaceIndex,
  __out  PCHAR InterfaceName
);

FoxPro declaration:
DECLARE INTEGER if_indextoname IN Iphlpapi;
    INTEGER InterfaceIndex,;
    STRING @InterfaceName
Parameters:
InterfaceIndex
The local index for a network interface.

InterfaceName
A pointer to a buffer to hold the NULL-terminated ANSI string containing the interface name when the function returns successfully.
Return value:
On success, if_indextoname returns a pointer to NULL-terminated ANSI string containing the interface name.
Usage:
LOCAL cBuffer, nCount, nIndex
nCount = 0
= GetNumberOfInterfaces(@nCount)

FOR nIndex=1 TO nCount
    cBuffer = REPLICATE(CHR(0), 64)
    = if_indextoname(nIndex, @cBuffer)
    ? nIndex, STRTRAN(cBuffer, CHR(0), "")
NEXT
My comment:
Minimum OS: Vista.

See also: if_nametoindex, GetNumberOfInterfaces, GetIfEntry
Word Index links for the if_indextoname :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-01-08 10:41:01
Modified: 2010-05-19 22:14:10
Visited in last 7 days: 18
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.234.247.118)
18 sec.Function: 'UnregisterHotKey'
34 sec.Function: 'ReadConsole'
52 sec.
Function group: 'Raw Input'
1.15 min.Function: 'Process32First'
1.42 min.Function: 'FindVolumeMountPointClose'
1.68 min.Function: 'GetWindowPlacement'
1.97 min.Function: 'NetShareEnum'
2.25 min.Function: 'WinExec'
2.52 min.Example: 'How to change display settings: screen resolution, screen refresh rate'
2.82 min.Example: 'Downloading files from the FTP server using InternetReadFile'
Google
Advertise here!