C# class to check for internet Connection

added by gsanthoshbe
3/26/2010 4:26:28 AM

1 Kicks, 95 Views

I found this piece of code on the internet, the author of this code is Tamer Oz. using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; namespace Coderbuddy { public class CheckInternetConnection { [DllImport("wininet.dll")] private extern static bool InternetGetConnectedState(out int Description, int ReservedValue);