Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
AndromedaStar's answer is correct, but it needs to be clarified that this is a class from a third party library.
https://habr.com/en/post/181251/
Here is the library itself: https://github.com/consp1racy/NativeWifi
But I do not recommend using it, because it has not been updated for 8 years.
Instead, I advise you to use: https://www.nuget.org/packages/ManagedNativeWifi/
using ManagedNativeWifi;
var connections = NativeWifi.EnumerateInterfaceConnections();
var firstConnection = connections.First();
Console.WriteLine(firstConnection.ProfileName);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question