online status without connect dialog 
Author Message
 online status without connect dialog

My app needs to periodically check to see if the user is online or not.  It
also must do this silently -- no connect dialog.  How would I do this using
MFC?


Fri, 07 May 2004 13:59:35 GMT  
 online status without connect dialog
Try InetIsOffline().

--
Ajay Kalra [MVP - VC++]

Note: Please post all replies to newsgroup only.


Quote:
> My app needs to periodically check to see if the user is online or not.
It
> also must do this silently -- no connect dialog.  How would I do this
using
> MFC?



Fri, 07 May 2004 14:33:15 GMT  
 online status without connect dialog


Quote:
> Try InetIsOffline().

> --
> Ajay Kalra [MVP - VC++]

> Note: Please post all replies to newsgroup only.



> > My app needs to periodically check to see if the user is online or not.
> It
> > also must do this silently -- no connect dialog.  How would I do this
> using
> > MFC?

I use InternetGetConnectedState. You need IE4 or later, but it works well.
You may also need the latest SDK for some of the constants.

(I don't want to cast doubts about Ajay's answer since I haven't tried the
function myself, but my searches through newsgroup postings seem to indicate
that InetIsOffline simply returns whether IE has been set to work "Offline"
or not. But don't make my word for it. :)

--
Jay



Fri, 07 May 2004 14:45:21 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Connect to webservice online

2. Connect to webservice online

3. Newbie: Detect online status

4. Find online status

5. How to get online status

6. Is RasGetConnectStatus sufficient to get online status of internet

7. Determining Online Status

8. Find online status

9. Switching online/offline status of windows ce devices

10. CFtpConnection connect status

11. online/offline switching without ISP - Software

12. Sending SYN without connect

 

 
Powered by phpBB® Forum Software