连接和断开移动宽带连接 [英] Connect And Disconnect Mobile Broadband Connection
本文介绍了连接和断开移动宽带连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我如何使用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#.
这篇关于连接和断开移动宽带连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文