views:

443

answers:

2

I need to query for a list of available Wireless Access points. I only need their SSIDs.

The App is currently .Net CF 2.0, but it's not a problem going with 3.5 if we have to.

+1  A: 

Well the core of this is in the Windows Zero Config .dll otherwise known as WZC. However from a managed app you'll want to go via OpenNETCF as they have a managed wrapper that can provide this information for you. The classes of interest are the Adapter or NetworkAdapter classes.

The obselete api was:

Networking.GetAdapters()

although this is now depreciated I think and I apologise but i've forgotten what they've replaced it with but there will be a new equivalent.

Quibblesome
+2  A: 

The list of "nearby" APs is retrived eitehr through NDIS or WZC, depending on what your NIC driver supports. Both are somewhat well documented in MSDN, but they aren't fun to wrap. OpenNETCF's SDF contains a wrapper that looks at both, depending on your NIC's support.

It's accessible via the OpenNETCF.Net.NetworkInformation.NetworkInterface's GetAllNetworkInterfaces method in the newest SDF 2.3 (actually it's been there since 2.2).

ctacke
nice one, a much better reply! +1
Quibblesome