Beispiel #1
0
        private static bool EqualConnectedState(SafeNativeMethods.InternetConnectionState expected)
        {
            SafeNativeMethods.InternetConnectionState state = 0;
            SafeNativeMethods.InternetGetConnectedState(ref state, 0);

            return((state & expected) != 0);
        }
Beispiel #2
0
 private static bool EqualConnectedState(SafeNativeMethods.InternetConnectionState expected)
 {
     SafeNativeMethods.InternetConnectionState lpdwFlags = (SafeNativeMethods.InternetConnectionState) 0;
     SafeNativeMethods.InternetGetConnectedState(ref lpdwFlags, 0);
     return((uint)(lpdwFlags & expected) > 0U);
 }
Beispiel #3
0
 internal static extern bool InternetGetConnectedState(
     ref SafeNativeMethods.InternetConnectionState lpdwFlags,
     int dwReserved);