if_indextoname

if_indextoname converts the local index for a network interface to the ANSI interface name.

Syntax

Copy
PCHAR if_indextoname(
  [in]        NET_IFINDEX InterfaceIndex, 
  [out]       char * InterfaceName
);

Parameters

[in] InterfaceIndex

The local index for a network interface.

[out] InterfaceName

A pointer to a buffer to hold the NULL-terminated ANSI string containing the interface name. IF_NAMESIZE is the minimum length of the buffer to allocate.

Return Value

If this function succeeds, it returns a pointer equal to the value of parameter InterfaceName. If this function fails, it returns a NULL pointer.

Requirements

Minimum supported version Header Library

eRTOS 1.0 SDK

Winsock2.h RtTcpipApi.lib

See also: