开发者

which IP Helper API interface to use?

开发者 https://www.devze.com 2023-01-30 09:01 出处:网络
•Managing Network Adapters Using GetAdaptersInfo •Man开发者_StackOverflow社区aging Interfaces Using GetInterfaceInfo

•Managing Network Adapters Using GetAdaptersInfo

•Man开发者_StackOverflow社区aging Interfaces Using GetInterfaceInfo

•Managing IP Addresses Using GetIpAddrTable

These are the three methods listed on the msdn IP Helper API. Why would I prefer one method over another?


They are mainly resulted from terminology differences, see http://msdn.microsoft.com/en-us/library/aa365798%28v=vs.85%29.aspx for the explanation regarding "adapter" and "interface". In short, an adapter is a data-link level abstraction while an interface being IP-level abstraction.

It will depend on the situation that you want to solve to determine what API to use. For example, link speed or tunnel type can only be acquired from adapters.

0

精彩评论

暂无评论...
验证码 换一张
取 消