[python-win32] Guaranteed cleanup code execution?
Gabriel Genellina
gagsl-py2 at yahoo.com.ar
Wed Jan 13 17:56:21 CET 2010
En Mon, 11 Jan 2010 23:33:23 -0300, Mario Alejandro Vilas Jerez
<mvilas at gmail.com> escribió:
> But what I think you're really looking for is the Service Control
> Manager:
>
> http://msdn.microsoft.com/en-us/library/ms685150(VS.85).aspx
>
> The ControlService API lets you stop services (among other things):
>
> http://msdn.microsoft.com/en-us/library/ms682108(VS.85).aspx
>
> And the StartService API lets you start a service manually:
>
> http://msdn.microsoft.com/en-us/library/ms686321(VS.85).aspx
All of which are covered in the win32service and win32serviceutil modules
inside PyWin32. There are a couple demos too. It's quite easy to write a
service using the classes provided.
--
Gabriel Genellina
More information about the python-win32
mailing list