How to detect windows shutdown
- From: "Austin" <austin@xxxxxxxxxxxxxxxx>
- Date: Wed, 6 Apr 2005 15:38:43 +0800
I wrote a program running on windows.
I put the link of the program in "Start up" folder and let it executed
minimized.
Every time when I open the computer, my program will be running in system
tray.
But if the user would like to shutdown the computer, the OS will show an
error about exception.
At first, I think windows will terminate all processes when it shutdown.
So, if python has the way to dectect shutdown process, I can kill the
process in advance.
Thanks a lot.
.
- Follow-Ups:
- Re: How to detect windows shutdown
- From: Peter Hansen
- Re: How to detect windows shutdown
- From: Larry Bates
- Re: How to detect windows shutdown
- Prev by Date: Re: Decorator Base Class: Needs improvement.
- Next by Date: Re: Best editor?
- Previous by thread: fastcgi
- Next by thread: Re: How to detect windows shutdown
- Index(es):
Relevant Pages
|