IP Helper--MIB_IFTABLE Structure

来源:互联网 发布:淘宝店规则 编辑:程序博客网 时间:2024/06/06 12:46

原文来自MSDN Library for Visual Studio 2008 SP1,翻译部分仅为个人观点,想要看更多信息请看MSDN,如有版权问题请联系QQ 64316601,邮件643166601@qq.com

 

MIB_IFTABLE Structure

The MIB_IFTABLE structure contains a table of interface entries.
这个MIB_IFTABLE结构体包含接口表的入口。

Syntax
typedef struct _MIB_IFTABLE { 
DWORD dwNumEntries;  //当前网络接口的总数
MIB_IFROW table[ANY_SIZE]; //指向一个包含MIB_IFROW类型的指针
} MIB_IFTABLE,  *PMIB_IFTABLE;
Members
dwNumEntries
The number of interface entries in the array.
接口入口数组的数量。
table
An array of MIB_IFROW structures containing interface entries.
MIB_IFROW结构体内容接口入口的数组。
Remarks
The GetIfTable function enumerates the interface entries on a local system and returns this information in a MIB_IFTABLE structure.
这个GetIfTable函数枚举在本地系统上接口入口和返回一个MIB_IFTABLE接口信息。
The MIB_IFTABLE structure may contain padding for alignment between the dwNumEntries member and the first MIB_IFROW array entry in the table member.
这个MIB_IFTABLE结构体可以包含对准填充表成员中的dwNumEntries成员和第一个MIB_IFROW数组入口。
Padding for alignment may also be present between the MIB_IFROW array entries in the table member.
对准填充也可以在表成员的MIB_IFROW入口之间。
Any access to a MIB_IFROW array entry should assume padding may exist.
任何访问MIB_IFROW数组入口应该假设填充可能存在。
On the Microsoft Windows Software Development Kit (SDK) released for Windows Vista and later, the organization of header files has changed and the MIB_IFTABLE structure is defined in the Ifmib.h header file not in the Iprtrmib.h header file.
在Microsoft Windows软件开发工具包(SDK)发布Windows Vista和之后,头文件的组织已经改变的MIB_IFTABLE结构是在Ifmib.h头文件中定义而不是在Iprtrmib.h头文件中。
Note that the Ifmib.h header file is automatically included in Ipmib.h header file.
注意这个Ifmib.h头文件自动包含在Ipmib.h头文件中。
This file is automatically included in the Iprtrmib.h header file which is automatically included in the Iphlpapi.h header file.
这个文件是自动地包含在Iprtrmib.h头文件中,它是自动地包含在Iphlpapi.h头文件中。
The Ifmib.h header file should never be used directly.
这个Ifmib.h头文件不应该被直接使用。

Requirements
Client Requires Windows Vista, Windows XP, Windows 2000 Professional, Windows NT Workstation 4.0 SP4 and later, Windows Me, or Windows 98.
Server Requires Windows Server 2008, Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0 SP4 and later.
Header Declared in Ifmib.h on Windows Server 2008 and Windows Vista; include Iphlpapi.h.

Declared in Iprtrmib.h on Windows Server 2003, Windows XP, and Windows 2000; include Iphlpapi.h.
 

See Also
GetIfTable
GetIfTable2
GetIfTable2Ex
MIB_IF_ROW2
MIB_IF_TABLE2
MIB_IFNUMBER
MIB_IFROW

 

Send comments about this topic to Microsoft

Build date: 3/27/2008

 

原创粉丝点击