Search code examples
c#mobileconnectionbroadband

Connect And Disconnect Mobile Broadband Connection


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


Solution

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