Re: Detecting Windows Shutting down or User Logout



Thanks Jeremy - that seems to do the job.

Roy.

"Jeremy Collins" <jd.collins@xxxxxxxxxxxxxxxx> wrote in message
news:hLK9e.41042$pA6.251@xxxxxxxxxxxxxxxxxxxxxxx
> Roy Coates wrote:
> > hi, I've a small systray app that is causing me some grief.
> >
> > Is there a way to detect that either the current user is logging out, or
if
>
> Add a message handler for WM_QUERYENDSESSION or WM_ENDSESSION.
>
> --
> jc
>
> Remove the -not from email


.