Hi,
I am developing an windows application in that i want to check internet connection for that i am written the following code but it seems to be not working .
Can anybody help me......
[DllImport("wininet.dll")]
private extern static bool InternetGetConnectedState(out int Description, int ReservedValue);
public static bool IsConnectedToInternet()
{
int Desc;
return InternetGetConnectedState(out Desc, 0);
}