Hello,
 
I need to do something when windows shuts down, as when someone presses the power button.
 
I believe this is a window message, WM_QUERYENDSESSION or WM_ENDSESSION.
 
I can't find any way to trap this in python.
 
atexit() does not work.
 
using the signal module to trap SIGBREAK or SIGTERM does not work either.
 
Any help? Thanks.
 
_______________________________________________
Python-win32 mailing list
Python-win32@python.org
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to