Declare Integer InternetGetConnectedState in Wininet.dll Long @dwFlags, Long Reserved lnConnectionState= 1 InternetGetConnectedState(@lnConnectionState, 0) ?lnConnectionState