>>On WinXP with ADSL, InternetGetConnectedStateEx returns 0 only before the first time I dail in to the ASDL service. After that, it doesn't matter if I'm signed in or not, it always returns 1, until I reboot windows. The ADSL service is always connected or "running" but not really signed in. How do I know if someone is running ADSL but not signed in?
>
>Actually, InternetGetConnectedStateEx is incredibly unreliable - not only in the situation you note, but in all cases, at all times it will show a connected state if a proxy is in use and the proxy can be contacted, even if the proxy itself is disconnected from the net. Rick Strahl has some code that is more reliable than the WinInet stuff (I believe that he pings a known network address to determine connected state, about the best way to ensure that connectivity is achievable.) I'd try out Rick's wwIPStuff instead.
Sheez. I already have a wwIPStuff object available 3 lines above my WinInet call. Doi!
Eric Kleeman - EDS Consulting Services
MCP Visual FoxPro
MCSD C#.NET
Hua Hin Thailand
Los Angeles California