?
Solved

Windows Shutdown Notification

Posted on 2009-05-15
4
Medium Priority
?
878 Views
Last Modified: 2012-05-07
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
0
Comment
Question by:rich3051
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 10

Expert Comment

by:bob_the_builder
ID: 24397023
Take a look at the following

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

Cheers,

Bob
0
 
LVL 10

Expert Comment

by:bob_the_builder
ID: 24573140
Hi,

How did you get on with the above?

Many thanks,

Bob...
0
 
LVL 22

Accepted Solution

by:
cookre earned 2000 total points
ID: 24585990
Just listen for aWM_ENDSESSION message:

http://msdn.microsoft.com/en-us/library/aa376889(VS.85).aspx
0

Featured Post

Get proactive database performance tuning online

At Percona’s web store you can order full Percona Database Performance Audit in minutes. Find out the health of your database, and how to improve it. Pay online with a credit card. Improve your database performance now!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question