How to enable disable internet sharing of a virtual wireless adapter using C# programming
Youtube - https://www.youtube.com/watch?v=cU4CL0Av-1k&list=PLfj229q5dYilteQLlR_u7e1XXwHMkjS_U
- Must run the solution/exe as Administrator
Hotpost h = new Hotspot();
h.GetConnections(); // to List all network connections
// Basic usage
h.GetConnections().ForEach(conProp => { cmbConnection.Items.Add(conProp); });
h.Create(SSID , KEY); // create a virtual wifi adapter
h.Start(); // start the created virtual wifi adapter
h.ShareInternet("Ethernet", LOCAL AREA NETWORK NAME, true); // enable internet sharing from source connectiom
h.ShareInternet("Ethernet", LOCAL AREA NETWORK NAME, false); // disable internet sharing from source connectiom
h.Stop();