Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.16 KB

File metadata and controls

53 lines (34 loc) · 1.16 KB

Home

Function name : if_indextoname

Group: IP Helper - Library: iphlpapi


Converts the local index for a network interface to the ANSI interface name.


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.


Comments:

Minimum OS: Vista.

See also: if_nametoindex, GetNumberOfInterfaces, GetIfEntry.