
Is RasGetConnectStatus sufficient to get online status of internet
Hi everybody!
I'm currently trying to get a HTML page from the internet with my MFC
application (using Win98 and WinNT 4). The internet access must be done
silently so I'm using first a
::RasEnumConnections()
to enumerate the connections and a
::RasGetConnectStatus()
afterwards. Looking at the szDeviceType and szDeviceName members in the
enumeration I can't definitly see if this type of connection is really
one to the internet (i.e. could be a RAS connection to an NT server or
anything else).
So, how can I determine if one of those connections is an internet
connection (especially if there is more than one active connection)?
Currently I establish a CSocket object for each connection found,
Create() it and Connect() to my HTTP host on port 80. Is that the way
going to it?
Next question is: Will I get into problems when my app would run on an
environment that's using a proxy/firewall for the internet access? (I
retrieve my data with a CInternetSession object which has some proxy
specific parameters and I NEVER want any message boxes to prompt the
user to open a connection to the internet.)
Any help is very appreciated, thanks in advance.
Best regards,
Udo
--
Udo Gerber
EDV & Astro Service
Internet: http://www.*-*-*.com/ , http://www.*-*-*.com/