Robbert Dam
Robbert Dam

Reputation: 4107

Add/delete wireless networks from c#

It there a way I can access the list of stored wireless connections in C# (Window Vista)

I mean the list found in: "Control Panel" -> "Network and Sharing Center" -> "Manage Wireless Networks"

Upvotes: 4

Views: 1052

Answers (2)

Steve Townsend
Steve Townsend

Reputation: 54148

You can do some of this using Managed Wifi, which wraps the Native Wifi API.

Upvotes: 2

Aliostad
Aliostad

Reputation: 81660

 NetworkInterface.GetAllNetworkInterfaces()
    .Where(x=>x.NetworkInterfaceType == NetworkInterfaceType.Wireless80211)

Upvotes: 3

Related Questions