I found out that InternetGetConnectedState returned *sometimes* wrong value when I'm connected... Is there another way to determine if I am connected or not ?
Posted on 2002-10-25 20:55:32 by Axial
Ok... I found some info on registry at value "Remote Connection" from "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\RemoteAccess".
1 if a connection is active, 0 otherwise...
It seems working well on win9x, but, is it reliable on other platforms ?
Posted on 2002-10-25 22:21:50 by Axial
Hi Axial, I don't have that value in the registry, Winxp pro
Posted on 2002-10-26 19:35:00 by david
hi all,
If you want to see some other way to know if you on the net or not,
you see my code in a thread named ipaddress,

this is done by getting the ipaddress of the windows ,if you are not connected it gives 127.000.0 but if you are connected it gives another value.

This way doesn't work except for dialingup network .

Posted on 2002-10-29 00:34:41 by amr
Try to gethostbyname some server... if the result is successful, you are connected...
Posted on 2002-10-30 15:31:44 by JCP