#define FLAG_ICC_FORCE_CONNECTION 1 Declare Integer InternetCheckConnection in Wininet.dll String Url, Long dwFlags, Long Reserved If InternetCheckConnection("http://www.microsoft.com", FLAG_ICC_FORCE_CONNECTION, 0) != 0 Msg = "Connected!" Else Msg = "Not connected!" EndIf MessageBox(msg)