Partager via


GetFriendlyIfIndex (Compact 2013)

3/26/2014

This function takes an interface index and returns a backward-compatible interface index, that is, one that uses only the lower 24 bits.

Syntax

DWORD GetFriendlyIfIndex(
  DWORD IfIndex 
);

Parameters

  • IfIndex
    [in, out] An interface index from which the backward-compatible or friendly interface index is derived.

Return Value

If the function succeeds, the return value is NO_ERROR.

If the function fails, use FormatMessage to obtain the message string for the returned error.

Requirements

Header

iphlpapi.h

Library

Iphlpapi.lib

See Also

Reference

IP Helper Functions
GetIfEntry
MIB_IFROW

Other Resources

IP Helper