Hello out ther!
I am using this great API, i use it to check wireless sticks.
For that i needed my app to disconnect from network before the next stick can be tested.
And i found a way to disconnect:
Win7 includes an intuitive GUI that allowes you to take control of wlan networks:
I used the command to disconnect from my network:
System.Diagnostics.Process process = new System.Diagnostics.Process();
System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo();
startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden;
startInfo.FileName = "cmd.exe";
startInfo.Arguments = "/C netsh wlan disconnect";
process.StartInfo = startInfo;
Maybe someone can use it too.