Esempio n. 1
0
        public static bool IsConnectedToInternet()
        {
            InternetConnectionState_E flags = 0;
            bool isConnected = InternetGetConnectedState(ref flags, 0);

            return(isConnected);
        }
Esempio n. 2
0
 private extern static bool InternetGetConnectedState(ref InternetConnectionState_E lpdwFlags, int dwReserved);