MIB_IF_TABLE2 structure (netioapi.h)

The MIB_IF_TABLE2 structure contains a table of logical and physical interface entries.

Syntax

typedef struct _MIB_IF_TABLE2 {
  ULONG       NumEntries;
  MIB_IF_ROW2 Table[ANY_SIZE];
} MIB_IF_TABLE2, *PMIB_IF_TABLE2;

Members

NumEntries

The number of interface entries in the array.

Table[ANY_SIZE]

An array of MIB_IF_ROW2 structures containing interface entries.

Remarks

The MIB_IF_TABLE2 structure is defined in Windows Vista and later.

The GetIfTable2 and GetIfTable2Ex functions enumerates the logical and physical interfaces on a local system and returns this information in a MIB_IF_TABLE2 structure.

The MIB_IF_TABLE2 structure may contain padding for alignment between the NumEntries member and the first MIB_IF_ROW2 array entry in the Table member. Padding for alignment may also be present between the MIB_IF_ROW2 array entries in the Table member. Any access to a MIB_IF_ROW2 array entry should assume padding may exist.

Note that the Netioapi.h header file is automatically included in the Iphlpapi.h header file. The Netioapi.h header file should never be used directly.

Requirements

Requirement Value
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header netioapi.h (include Iphlpapi.h)

See also

GetIfTable2

GetIfTable2Ex

MIB_IF_ROW2