using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AutoUpdater { public class WindowsAPI { [System.Runtime.InteropServices.DllImport("wininet.dll")] public extern static bool InternetGetConnectedState(out int description , int reservedValue); } }