大网数据广告活动
网络与域名解析

Managing Interfaces

· 52CE 我爱测

IP Helper extends your abilities to manage network interfaces. There is a one-to-one correspondence between the interfaces and adapters on a given computer. An interface is an IP-level abstraction, whereas an adapter is a datalink-level abstraction.

IP Helper extends your abilities to manage network interfaces. There is a one-to-one correspondence between the interfaces and adapters on a given computer. An interface is an IP-level abstraction, whereas an adapter is a datalink-level abstraction.

Use the functions described in the following paragraphs to manage interfaces on the local computer.

The GetNumberOfInterfaces function returns the number of interfaces on the local computer.

The GetInterfaceInfo function returns a table that contains the names and corresponding indexes for the interfaces on the local computer. For code samples involving GetInterfaceInfo see Managing Interfaces Using GetInterfaceInfo.

The GetFriendlyIfIndex function takes an interface index and returns a backward-compatible interface index, that is, one that uses only the lower 24 bits. This type of index is sometimes referred to as a "friendly" interface index.

The GetIfEntry function returns a MIB_IFROW structure that contains information about a particular interface on the local computer. This function requires the caller to supply the index of the interface.

The GetIfTable function returns a table of MIB_IFROW entries, one for each interface on the computer.

Use the SetIfEntry function to modify the configuration of a particular interface.

Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Win32 documentation
适用范围
Windows Win32 API · Source date 05/31/2018
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。