• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 751
  • Last Modified:

list of available wireless networks

I'm trying to create list of available wireless networks
I need to get their names
I use Windows XP, C# and DDK, so I have access to System.Management objects
I just started this project
3 Solutions
Use netstumbler to scan your area for wireless senders:

The Managed Wifi API wrapper for the Native Wifi API provided with Windows XP for C# can do this:

See the attached code for something that should get a list of available networks.

WlanClient client = new WlanClient();
foreach ( WlanClient.WlanInterface wlanIface in client.Interfaces )
    // Lists all available networks
    Wlan.WlanAvailableNetwork[] networks = wlanIface.GetAvailableNetworkList( 0 );
    foreach ( Wlan.WlanAvailableNetwork network in networks )
        Console.WriteLine( "Found network with SSID {0}.", GetStringForSSID(network.dot11Ssid));
static string GetStringForSSID(Wlan.Dot11Ssid ssid)
    return Encoding.ASCII.GetString( ssid.SSID, 0, (int) ssid.SSIDLength );

Open in new window

If you want source to give you ideas of different ways to do things, check out sourceforge.net e.g.

Be sure to read and understand the licensing included with a specific project before you just copy & paste routines to your own project, of course. Here's a simplified explanation of (some of) the different license levels - http://www.linux.com/news/biz-os/legal/26690-licensing-101-for-open-source-projects-choosing-an-open-source-license
C_sharp_beaverAuthor Commented:
The best solution was from alainbryden as question was about C#, .NET and XP development
Netstumbler is perfect product but no access to source code and output also should pass some corrections until uploaded for example into MapPoint. Even if I use it a lot, some data that I can see on screen not found in logs.
Many perfect ideas that arrive from Linux development require huge modification for Windows
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

7 new features that'll make your work life better

It’s our mission to create a product that solves the huge challenges you face at work every day. In case you missed it, here are 7 delightful things we've added recently to monday to make it even more awesome.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now