Detect windows shutdown

Chris Lambacher lambacck at gmail.com
Wed Jun 22 21:18:03 EDT 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).

-Chris

On 6/22/05, Konstantin Veretennicov <kveretennicov at gmail.com> wrote:
> On 6/22/05, Austin <austin at maxtronic.com.tw> 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?
> 
> Will wx.EVT_END_SESSION or wx.EVT_QUERY_END_SESSION help?
> 
> - kv
> --
> http://mail.python.org/mailman/listinfo/python-list
> 


-- 
Christopher Lambacher
lambacck at computer.org



More information about the Python-list mailing list