Detecting Internet Connection

  • Thread starter Thread starter Adam Tibi
  • Start date Start date
A

Adam Tibi

Is there any way to detect Dial-up Internet connection using .NET libraries
or do I have to use Win APIs for that?
 
* "Adam Tibi said:
Is there any way to detect Dial-up Internet connection using .NET libraries
or do I have to use Win APIs for that?

There is currently no managed way to do that available in the Framework.
 
Hai Adam

There is an API to check whether you have the internet connection are not. But i dont' remember it right now. I have used that in some part of my project. I will mail u that.

Sadha Sivam
Malleable Minds Software Pvt Ltd.
(e-mail address removed)
 
Hi Adam

Check with this api

'API method to check for the internet connectio
Public Declare Function InternetCheckConnection Lib "wininet.dll" Alias "InternetCheckConnectionA" (ByVal lpszUrl As String, ByVal dwFlags As Integer, ByVal dwReserved As Integer) As Intege
Public Const FLAG_ICC_FORCE_CONNECTION As Short = &H1

Where it takes the URL you want to check

Sadha Sivam
Malleable Minds Software Pvt Ltd.
 
if lpszUrl is null and the flag is false can this be used to see if there
is any connection at all ??


Excuse for butting in!


Sadha Sivam S said:
Hi Adam,

Check with this api,

'API method to check for the internet connection
Public Declare Function InternetCheckConnection Lib "wininet.dll" Alias
"InternetCheckConnectionA" (ByVal lpszUrl As String, ByVal dwFlags As
Integer, ByVal dwReserved As Integer) As Integer
 
Back
Top