• 0

[Visual C#]Determine which wireless network


Question

Hi everyone,

I'm making an application in Visual C# in Visual Studio 2008, and I want to be able to do something like this:

if (wirelessnetwork == x)

{

do this

}

Basically, I want to be able to check which wireless network the computer is currently connected to.

Thanks,

Alex

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

I've not personally done anything to do with network connections in C#, but a quick Google search seems to point towards this...

http://www.codeplex.com/managedwifi

Its a managed library for working with 802.11 connections that works on versions of Windows from XP(SP2) and later (XP needs a hotfix in order to be able to use this library, but thats discussed on the site). It uses the Windows Native Wifi API, which is documented on the MSDN here.

Here are some StackOverflow articles that might be useful...

Get The SSID of the Currently Connected Wireless Network

Get Available Wireless Access Points and Their Signal Strength

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.