>Declare Integer InternetGetConnectedState in WinINet.Dll Long @lpdwFlags, Long dwReserved >lnFlags = 0 >? InternetGetConnectedState(@lnFlags,0)>This function returns 0, if not connected, any other value if connected. The flags can be used to determine additional information, like connected via modem, LAN, Proxy, etc.