Solved

Windows Shutdown Notification

Posted on 2009-05-15
4
851 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
Viewers will learn how to maximize accessibility options in an Excel workbook for users with accessibility issues.
Viewers will learn the different options available in the Backstage view in Excel 2013.

778 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