not sure if wininet.dll would be of assistance in this case but you could check
to see if the connection is alive by using
[DllImport("wininet.dll", SetLastError = true)]
private static extern bool InternetCheckConnection(string lpszUrl, int dwFlags, int dwReserved);
private bool Connected;
if (InternetCheckConnection("http://www.google.com",1,0))
{
Connected = true;
}
if (!Connected)
{
}