Solved

Windows Shutdown Notification

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
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.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

726 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