Is RasGetConnectStatus sufficient to get online status of internet 
Author Message
 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/



Thu, 26 Jun 2003 08:17:01 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Pls answer me, I am online

2. Newbie: Detect online status

3. Find online status

4. online status without connect dialog

5. How to get online status

6. Determining Online Status

7. Find online status

8. Switching online/offline status of windows ce devices

9. ONLINE TRAINING for Professional Developers: Advanced Windows, Internet and Objects

10. ONLINE TRAINING for Professional Developers: Advanced Windows, Internet and Objects

11. ONLINE TRAINING for Professional Developers: Advanced Windows, Internet and Objects

12. ONLINE TRAINING for Professional Developers: Advanced Windows, Internet and Objects

 

 
Powered by phpBB® Forum Software