Skip to content

Latest commit

 

History

History
47 lines (30 loc) · 1012 Bytes

if_nametoindex.md

File metadata and controls

47 lines (30 loc) · 1012 Bytes

Home

Function name : if_nametoindex

Group: IP Helper - Library: iphlpapi


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


Declaration:

NET_IFINDEX WINAPI if_nametoindex(
  __in  PCSTR InterfaceName
);  

FoxPro declaration:

DECLARE INTEGER if_nametoindex IN Iphlpapi;
	STRING InterfaceName  

Parameters:

InterfaceName A pointer to a NULL-terminated ANSI string containing the interface name.


Return value:

On success, if_nametoindex returns the local interface index. On failure, zero is returned.


Comments:

Minimum OS: Vista.

See also: if_indextoname, GetNumberOfInterfaces, GetIfEntry.