- Home
·
- Internet/HTML
·
- Check for a connection to the internet using the InternetCheckConnection API call.
Check for a connection to the internet using the InternetCheckConnection API call.
Check for a connection to the internet using the InternetCheckConnection API call.
API Declarations
Private Declare Function InternetCheckConnection Lib "wininet.dll" Alias "InternetCheckConnectionA" (ByVal lpszUrl As String, ByVal dwFlags As Long, ByVal dwReserved As Long) As Long
Rate Check for a connection to the internet using the InternetCheckConnection API call.
(2(2 Vote))
Private Sub Form_Load()
If InternetCheckConnection("http://www.microsoft.com", FLAG_ICC_FORCE_CONNECTION, 0&) = 0 Then
MsgBox "No internet connection detected...", vbInformation
Else
MsgBox "Internet connection detected!!", vbInformation
End If
End Sub
Check for a connection to the internet using the InternetCheckConnection API call. Comments
No comments yet — be the first to post one!
Post a Comment