[英]How to find all the network interfaces in windows ce?
在我的C#应用程序中,我需要识别在windows ce 6.0上运行的设备的所有网络接口。
在dot net full framework我能够使用
NetworkInterface.GetAllNetworkInterfaces();
但我没有在紧凑的框架中看到相同的命名空间和类。
我需要类似于NetworkInterface.GetAllNetworkInterfaces()
的代码。
一个选项可能是运行Windows命令“netsh”并解析输出:
命令:
netsh interface show interface
输出:
Admin State State Type Interface Name
-------------------------------------------------------------------------
Enabled Connected Dedicated Ethernet 1
Enabled Disconnected Dedicated Wi-Fi
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.