✅ Which API to use to manage wifi networks in console app. Currently trying ManagedNativeWifi.
Hey I was trying to scan for wifi networks and connect, disconnect to them from console app. I am currently trying out ManagedNativeWifi.
The only issue is it does not provide any way to create wifi profile from scratch. So it would be awesome if there is an API which does that or I have to make my own implementation.
4 Replies
I haven't looked at this at all, but do the classes in this namespace help? https://learn.microsoft.com/en-us/uwp/api/windows.devices.wifi?view=winrt-26100
Windows.Devices.WiFi Namespace - Windows apps
Note Some information relates to pre-released product, which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here. Important These API will be affected by upcoming changes to operating system behavior, planned for fall 2024. For more i...
Although you might need to have a UWP app to use those. You can certainly access them with a console application, but you get access denied, and I can't find a way around that
Changes to API behavior for Wi-Fi access and location - Win32 apps
In order to better manage which apps have access to location, Windows is adding new privacy controls.
Thanks for suggestion. I'll look into it. I'll try my best to not go the UWP route, because changing the entire project type from console to UWP just for one functionality is a bit too much.