views:

4976

answers:

1

We've got a WinForms app written in C# that has a very custom GUI. The user is not allowed to run any other applications and the user cannot go into the OS (WinXP Pro) at all. We're planning on allowing the user to connect to available wireless networks. We're going to have to create a configuration screen that displays available networks (by SSID) and allows the user to connect. While connected we want to display signal strength.

Are there any existing components that provide this capability? I haven't found anything but this: http://sysnet.ucsd.edu/pawn/wrapi/ .

I can set the TCP/IP settings using WMI, but it's the wireless stuff that I need a direction on.

Many thanks!

Matt

+2  A: 

This should work:

http://www.codeplex.com/managedwifi

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).

MusiGenesis
Native Wifi does give signal strength so I can add that to the Managed Wifi API if it's not there. Thanks for pointing me in the right direction!!
No prob. I was happy to find that myself, and I'm glad to know it works.
MusiGenesis