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 ?
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 ?
1 if a connection is active, 0 otherwise...
It seems working well on win9x, but, is it reliable on other platforms ?
Hi Axial, I don't have that value in the registry, Winxp pro
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 .
amr
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 .
amr
Try to gethostbyname some server... if the result is successful, you are connected...