How to catch windows shutdown/reboot message
rechardchen at gmail.com
Mon Aug 2 14:31:04 CEST 2010
于 2010-8-2 16:00, Tim Golden 写道:
> On 02/08/2010 02:17, rechardchen wrote:
>> I'm writing a python script which runs as a windowsxp service.
>> The problem is how to catch the windows shutdown/reboot message and do
>> some cleaning job when system is going down?
>> The atexit module and signal module on windows dont seems to work. I
>> guess the python win32api may be of help, but I am not familiar with
>> Thank you
> Have a look at the SENS stuff:
Thanks, the extended handler functionality works. :)
More information about the Python-list