Search code examples
c#apiwireless

API to check wireless connections


Possible Duplicate:
How to find a list of wireless networks (SSID's) in Java, C#, and/or C?

I want to display all currently available networks in my app. Similar to the wireless network configuration screen in Windows, I want to show which one is secured and which one is public. Is there an API in C# I can use?


Solution

  • C# does not provide an API to access the wireless networking. You should use Native Wifi Reference to access Wifi via P/Invoke.

    For example, in order to get the list of available Wifi networks, use WlanGetAvailableNetworkList Function.