Solved

Windows Shutdown Notification

Posted on 2009-05-15
4
843 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
  • 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 500 total points
ID: 24585990
Just listen for aWM_ENDSESSION message:

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

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
This collection of functions covers all the normal rounding methods of just about any numeric value.
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

863 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now