Advertisement
ASP_Volume3 Internet/ HTML #55011

check internet connection

checks the internet connection

AI

AI Summary: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Source Code
original-source
Private Const FLAG_ICC_FORCE_CONNECTION = 1
Private Declare Function InternetCheckConnection Lib "wininet.dll" Alias "InternetCheckConnectionA" (ByVal lpszUrl As String, ByVal dwFlags As Long, ByVal dwReserved As Long) As Boolean
Private Sub Command1_Click()
Dim abc As String
 abc = InternetCheckConnection("http://www.microsoft.com", FLAG_ICC_FORCE_CONNECTION, 0)
 If abc = "True" Then
  MsgBox "Connected to the internet."
 Else
  MsgBox "Not connected to the internet."
 End If
End Sub
Original Comments (3)
Recovered from Wayback Machine