问题描述
我在Windows 7中使用以下代码:
I have the following code working in Windows 7:
c异常,但我发现可以使用WMI获得很多有用的信息。请使用 SELECT * FROM Win32_PerfRawData_Tcpip_NetworkInterface 在这里查看答案:I got the same Element not found exception trying to use GetSignalStrength() and MbnInterfaceManager I instead found you can obtain a lot of useful info using WMI. Please see the answer here using SELECT * FROM Win32_PerfRawData_Tcpip_NetworkInterface:
更新:
请注意,我发现您无法以与Windows 7中相同的方式在Windows 8.1中获得网络信息。请参阅和
Please note that I found you cannot get the network info in Windows 8.1 in the same way as you do in Windows 7. See How can I install an application that requires WMI capabilities on Windows 8.1 to determine available bandwidth? and https://code.msdn.microsoft.com/windowsapps/network-information-sample-63aaa201
这篇关于不存在MBN设备时,IMbnInterfaceManager :: GetInterfaces的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!