[DllImport("wininet.dll", SetLastError = true)]
static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved);
Declare Function InternetCheckConnection Lib "wininet.dll" (ByVal lpszUrl As String, ByVal dwFlags As Integer, ByVal dwReserved As Integer) As Boolean
None.
Do you know one? Please contribute it!
There are noted problems from some users using this function when the computer is behind a proxy.
Please add some!
[DllImport("wininet.dll", SetLastError = true)]
private static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved);
bool connectivity;
if (InternetCheckConnection("http://www.google.com/", 1, 0))
{
connectivity = true;
}