Connect And Disconnect Mobile Broadband Connection
问题 Please tell me how to connect and disconnect mobile broadband connection using C# or DOS? 回答1: There is no native support in .NET, you need to invoke the win api, specifically wininet.dll and invoke InternetGetConnectedState function. You can use the following link for with a sample code. Code is in VB, but you can easily convert it to c#. How to determine the connection state of your local system and how to initiate or end an Internet connection 回答2: On the commandline (DOS) you can use the