currently i am using wininet in my c# application to check internet connection it is working fine
[DllImport("wininet.dll", SetLastError = true)]
public extern static bool InternetGetConnectedState(out int lpdwFlags, int dwReserved);
[Flags]
public enum ConnectionStates
{
Modem = 0x1,
LAN = 0x2,
Proxy = 0x4,
RasInstalled = 0x10,
Offline = 0x20,
Configured = 0x40,
}
but the problem is i want to block internet but it is not successful how to achieve this using wininet?
Thanks in advance