Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27569

VS 2008 [RESOLVED] Check for internet connection

$
0
0
I found this code online quite a while ago and I use it to check for an internet connection. Understanding precisely what is going on eludes me. Checking the documentation is where I will head next, but I'm in search of succinct, candid insight from all of you on here I've grown to trust and respect over the last five years.

vb.net Code:
  1. ' Integer value if Internet connection is currently configured
  2.     Public Const InternetConnectionIsConfigured As Integer = &H40S
  3.  
  4.     ''' <summary>
  5.     ''' Found this on the internet, checks for an internet connection
  6.     ''' </summary>
  7.     ''' <param name="lpdwFlags">I have no idea</param>
  8.     ''' <param name="dwReserved">No clue</param>
  9.     ''' <returns></returns>
  10.     ''' <remarks></remarks>
  11.     Public Declare Function InternetGetConnectedState Lib "wininet.dll" (ByRef lpdwFlags As Integer, ByVal dwReserved As Integer) As Integer

Viewing all articles
Browse latest Browse all 27569

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>