Group: IP Helper - Library: iphlpapi
NET_IFINDEX WINAPI if_nametoindex(
__in PCSTR InterfaceName
);
DECLARE INTEGER if_nametoindex IN Iphlpapi;
STRING InterfaceName
InterfaceName A pointer to a NULL-terminated ANSI string containing the interface name.
On success, if_nametoindex returns the local interface index. On failure, zero is returned.
Minimum OS: Vista.
See also: if_indextoname, GetNumberOfInterfaces, GetIfEntry.