Created
May 9, 2013 00:44
-
-
Save ShaneGowland/5544763 to your computer and use it in GitHub Desktop.
Determine if an internet connection is available
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Declare Function InternetCheckConnection Lib "wininet.dll" _ | |
Alias "InternetCheckConnectionA" (ByVal lpszUrl As String, ByVal dwFlags As Long, ByVal dwReserved As Long) As Boolean | |
Private Function InternetConnectionAvailable() As Boolean | |
Return InternetCheckConnection("http://www.google.com", 1, 0) | |
End Function |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment