
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