•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.
精彩评论