次の方法で共有


IP_INTERFACE_INFO (Compact 2013)

3/26/2014

This structure contains a list of the network interface adapters on the local system.

Syntax

typedef struct _IP_INTERFACE_INFO {
  LONG NumAdapters; 
  IP_ADAPTER_INDEX_MAP Adapter[1]; 
} IP_INTERFACE_INFO, *PIP_INTERFACE_INFO;

Members

  • NumAdapters
    The number of adapters listed in the array pointed to by the Adapter member.
  • Adapter
    An array of IP_ADAPTER_INDEX_MAP structures. Each structure maps an adapter index to that adapter's name.

Remarks

The IP_INTERFACE_INFO structure is specific to network adapters with IPv4 enabled. The IP_INTERFACE_INFO structure contains the number of network adapters with IPv4 enabled on the local system and an array of IP_ADAPTER_INDEX_MAP structures with information on each network adapter with IPv4 enabled. The IP_INTERFACE_INFO structure contains at least one IP_ADAPTER_INDEX_MAP structure even if the NumAdapters member of the IP_INTERFACE_INFO structure indicates that no network adapters with IPv4 are enabled. When the NumAdapters member of the IP_INTERFACE_INFO structure is zero, the value of the members of the single IP_ADAPTER_INDEX_MAP structure returned in the IP_INTERFACE_INFO structure is undefined.

The IP_INTERFACE_INFO structure cannot be used to return information about the loopback interface.

This structure is defined in the Ipexport.h header file which is automatically included in the Iphlpapi.h header file. The Ipexport.h header file should never be used directly.

Requirements

Header

ipexport.h

See Also

Reference

IP Helper Structures
GetInterfaceInfo
IP_ADAPTER_INDEX_MAP