title: block internet using wininet
body: <p>currently i am using wininet in my c# application to check internet connection it is working fine </p>
  
  <pre><code>[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,
      }
  </code></pre>
  
  <p>but the problem is i want to block internet but it is not successful how to achieve this using wininet?</p>
  
  <p>Thanks in advance</p>