如何从 C# Windows 应用程序控制 Windows 10 个移动热点设置

How to control Windows 10 Mobile Hotpot settings from C# Windows application

我正在用 C# 开发一个 Windows 应用程序,并将它与装有 Windows 家庭操作系统的 PC 一起分发给客户。我想把电脑变成无线热点

我尝试创建托管网络,但 NETSH WLAN show drivers 报告驱动程序不支持托管网络。我可以使用 Windows 手动设置移动热点来创建热点。在网上搜索我只能找到在 WinRT 上运行的代码。

有什么方法可以完成 Windows Settings Mobile Hotspot 控件在 C# 中的功能吗?

Is there a way to do what Windows Settings Mobile Hotspot control does in C#?

目前这方面的文献较少。我检查了 official code sample, it looks easy to understand. We use xml file to store hotspot configuration. And it contains SSID encryption protocol HotspotProfile etc. And then, we call ProvisionFromXmlDocumentAsync to load xml info and create hotspot. For more info please refer to this case reply