How can I tell if a computer has an active Internet connection. Regardless if it is connected with a RAS or a LAN connection.
This I have tried but it is not satisfactory
1) Using ICMP PING to see if it gets through. - Can lock the computer during certain conditions.
2) Using winet control to retrieve an URL.: - Wininet is really unstable and crashes to often if there is no connection.
3) Using wininet.dll API’s. - Works fine if you have Internet Explorer 4-5 installed. I can not presume the users have that.
Can this be solved ? Is there any activex or dll out there implementing the ”InternetGetConnectedState” as implemented in the latest wininet.dll that I can use. Any other ideas ???