探测无线网卡。规格严格

探测无线网卡。规格严格,第1张

The WlanEnumInterfaces function will return the wireless interfaces found on the local computer. If none are found, then you are using the LAN connection.

If a wireless interface is found, it is still possible that the wireless radio is turned off and you can't use the wireless interface until the radio is turned back on.

The reference documentation for the WlanEnumInterfaces function has sample code that you can try.

On Windows XP, you can call the GetIfTable function (See the IP Helper documentation) to get a list of network interfaces on the local computer. However, on Windows XP, the dwType member in the MIB_IFROW structure returned is Ethernet for both a LAN and a wireless LAN interface. The text returned in the bDescr member of the MIB_IFROW can usually be used to determine which interface is the wireless LAN interface. The description text usually contains the 802.11 or WLAN string.

On Windows Vista and later, you can call the GetIfTable function and use the dwType member in the returned MIB_IFROW structure to determine which interface is a wireless LAN (dwType = IF_TYPE_IEEE80211).

The reference documentation for the GetIfTable function has sample code that you can try.

http://msdn.microsoft.com/en-us/library/windows/desktop/aa365943(v=vs.85).aspx

http://blog.163.com/ljm1113@126/blog/static/579844522007112091430641/

http://msdn.microsoft.com/en-us/library/windows/hardware/ff559214(v=vs.85).aspx

http://source.winehq.org/source/include/ipifcons.h

http://cr.openjdk.java.net/~khazra/7158636/webrev.01/src/windows/native/java/net/NetworkInterface.c.sdiff.html

http://msdn.microsoft.com/en-us/library/windows/desktop/aa366836(v=vs.85).aspx

http://hi.baidu.com/xicao54007/blog/item/99fa42439d1e330f73f05d85.html

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/2088205.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-07-22
下一篇 2022-07-22

发表评论

登录后才能评论

评论列表(0条)

保存