Managing wireless network connection in C#

只谈情不闲聊 提交于 2019-11-27 19:30:45
MusiGenesis

Managed Wifi API should work.

This might not be ideal - you have XP, which is good, but you would have to deploy a hotfix. I'd go for it, because all the wifi code I've dealt with (for the Compact Framework) is hideous. This code is as simple as could be.

Their sample code doesn't include reading the signal strength, though, and I'm not sure if the Native wifi API provides that. I have written C# code that gets the wireless signal strength, but it did this by PInvoking into a manufacturer-specific DLL available only on their devices. It may be that you'll have to do something similar to get the wireless strength from your PC's wireless card (and that may be why that functionality is not available in an all-purpose API).

It is possible to connect available wireless networks using native wifi.

http://www.codeproject.com/KB/gadgets/SignalStrenghth.aspx

Check the link, Which was developed by me.

Robin Andersson

I wrote a library which is a layer of abstraction above Managed Wifi, it is a bit more convenient to use. You can find it on GitHub.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!