连接和断开移动宽带连接

问题描述:

请告诉我如何使用C#或DOS连接和断开移动宽带连接?

Please tell me how to connect and disconnect mobile broadband connection using C# or DOS?

.NET中没有本机支持,您需要调用win api(特别是wininet.dll)并调用将其转换为c#.

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#.