本文介绍了如何枚举所有可用的网络接口?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何枚举计算机上当前可用的所有网络接口(包括虚拟,非连接,环回等)?
How to enumerate all network interfaces currently available on the computer (including virtual, non-connected, loopback etc)?
我需要知道他们的IP4 / 6,面具,网关,DNS,WINS等。
I need to know their IP4/6, Mask, Gateway, DNS, WINS etc
语言: C ++,WinAPI
Language: C++, WinAPI
系统: Windows 2000及更高版本Win7)
System: Windows 2000 and higher (including Win7)
推荐答案
请查看。这是你想做的一个巨大的例子。
Have a look at http://www.codeproject.com/KB/IP/netcfg.aspx. It's a giant example of what you want to do.
这篇关于如何枚举所有可用的网络接口?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!