Detect windows shutdown

Chris Lambacher lambacck at
Thu Jun 23 03:18:03 CEST 2005

There is an event that win32 sends to each thread to tell it to shut
down.  You can grab that with the win32all extension (I am not on
windows right now so I can't look it up in the documentation).


On 6/22/05, Konstantin Veretennicov <kveretennicov at> wrote:
> On 6/22/05, Austin <austin at> wrote:
> > My program is running on windows and it is wrritten by Python and wxPython,
> ...
> > Is there any way to dectect windows shutdown or reboot?
> - kv
> --

Christopher Lambacher
lambacck at

More information about the Python-list mailing list