>That explains some of my results; thanks, Rick. I can understand why the API call mis-IDs the connection type if I'm providing DNS inside the Proxy Server, but I don't understand the misqueues in status with AutoDialing enabled and dialing in progress or failed due to busy signals. Any clues other than 'the API wrappers are flaky'? Do the RAS functions like RASGetConnectStatus() return the detail properly in the RASCONNSTATUS structure? If so, and the connection details, other than a live connection exists, are needed, would it be better to use RasEnumConnections() to get a handle, and then examine the RASCONNSTATUS structure from RASGetConnectStatus()?
The RAS APIs aren't the problem - they should work fine. It's the WinInet
wrappers. I have briefly played with those a while back and they just didn't
work right. I tried both my own VFP implementations, some C++ code and some
SDK samples I downloaded. None reported the right connection status. It's
also been mentioned in some MIND articles...
Also, I don't think RAS is the right way to handle this. What if you
have a network connection to the Internet? No RAS, no connection handle
to check...
+++ Rick ---