簡體   English   中英

如何在windows ce中找到所有網絡接口?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM