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: 14
User Contributed Notes:
There are no notes on this subject.


Copyright © 2001-2013 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.55-log), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (72.44.48.122)
3 sec.Example: 'Storing content of the Clipboard to a bitmap file'
6.88 min.Function: 'waveOutGetNumDevs'
Function group: 'Windows Multimedia'
6.95 min.Function: 'GetOEMCP'
Function group: 'National Language Support'
13.6 min.Example: 'How to copy the image of a form to the Clipboard using Bitmap API functions'
13.65 min.Example: 'Finding parameters for the region specified'
13.72 min.Example: 'Using Font and Text functions'
1.27 hrs.Example: 'Creating irregularly shaped FoxPro form using transparency color key'
 Example: 'Displaying dimmed window behind VFP top-level form'
 Function: 'GetUserObjectInformation'
5.38 hrs.Example: 'GDI+ fun: roach-infested desktop'
Google
Advertise here!