用于检查无线连接的 API
我想在我的应用程序中显示所有当前可用的网络。与 Windows 中的无线网络配置屏幕类似,我想显示哪一个是安全的,哪一个是公共的。我可以使用 C# 中的 API 吗?
Possible Duplicate:
How to find a list of wireless networks (SSID's) in Java, C#, and/or C?
I want to display all currently available networks in my app. Similar to the wireless network configuration screen in Windows, I want to show which one is secured and which one is public. Is there an API in C# I can use?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
C# 不提供访问无线网络的 API。
您应该使用本机 Wifi 参考通过 P/Invoke 访问 Wifi。
例如,要获取可用 Wifi 网络的列表,请使用 WlanGetAvailableNetworkList功能。
C# does not provide an API to access the wireless networking.
You should use Native Wifi Reference to access Wifi via P/Invoke.
For example, in order to get the list of available Wifi networks, use WlanGetAvailableNetworkList Function.
我在 google 上搜索了这些:
希望它会有所帮助。
I've googled these ones:
Hope it'll help.