0

I'm developing a Windows application in C# and distribute it with a PC with Windows Home operating system to customers. I'd like to make the PC a wireless hotspot.

I tried creating a hosted network, but NETSH WLAN show drivers reports that the driver does not support hosted network. I can create a hotspot using Windows settings Mobile hotspot manually. Searching online I can only find code that runs on WinRT.

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

  • 1
    *"I can only find code that runs on WinRT"* - What's the specific issue with that? You're on Windows 10, so just go ahead and use what's available on Windows 10. – IInspectable Nov 17 '21 at 17:25
  • The issue was that I was hoping to get code examples for Winform application to extend the business' main program. – Yaron Habot Nov 18 '21 at 19:08
  • You have full access to the Windows Runtime from a Windows Forms application. – IInspectable Nov 18 '21 at 21:52

1 Answers1

0

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

Currently, there is fewer documents on this. I checked 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.

Nico Zhu
  • 32,367
  • 2
  • 15
  • 36