How to delay shutdown of an application when user logs off or shuts down Windows?
Posted
by badpanda
on Stack Overflow
See other posts from Stack Overflow
or by badpanda
Published on 2010-06-15T17:44:00Z
Indexed on
2010/06/15
18:12 UTC
Read the original article
Hit count: 204
I am writing an application that runs in the background from startup to shutdown, and in some circumstances I need the application to display a dialogue for the user to choose whether or not to continue shutting down. This application will only be running on Windows, but may be running on any version from 2000 onward.
While I have certainly done some research on the topic, the information regarding the way that windows handles application shut down (http://msdn.microsoft.com/en-us/library/ms700677(VS.85).aspx) seems to be a bit scattered. If anyone has an example of the best way to handle this, or additional knowledge regarding the topic, I would very much appreciate it (I have very little experience with C#).
Thanks!!
badPanda
© Stack Overflow or respective owner