Windows Shutdown Notification

Hi,

I need a notification mechanism for windows shutting / down or logging off, prefferably wthout polling. Also, it would need to hold off the shutdown for a moment while the application prepared itself.

Any ideas?
Thanks in advance.

Rich Marshall
LVL 1
rich3051Asked:
Who is Participating?
 
cookreConnect With a Mentor Commented:
Just listen for aWM_ENDSESSION message:

http://msdn.microsoft.com/en-us/library/aa376889(VS.85).aspx
0
 
bob_the_builderCommented:
Take a look at the following

http://msdn.microsoft.com/en-us/library/aa380588.aspx

Cheers,

Bob
0
 
bob_the_builderCommented:
Hi,

How did you get on with the above?

Many thanks,

Bob...
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.