Jos,
Are you only using this on machines that use dial-up connections? For machines with a LAN connection to the internet, I think you need to successfully hit an IP address beyond the proxy/firewall to know you are actually connected.
>Hi Steve
>
>Thanks for that. I found another solution which works perfectly for me in that it does not pop up the Windows Dial Up Networking Dialog and correctly tells me whether I am connected or not. It is from Anatoliy Mogylevets at
www.news2news.com. He offers the following:
>
>InternetGetConnectedState
>
http://www.news2news.com/vfp/?group=92&function=99>
>a sample code with this function:
>
http://www.news2news.com/vfp/?example=68&function=99>
>Thanks again
>
>Jos
Steve Gibson