daemon app in win32

Steve Purcell stephen_purcell at yahoo.com
Mon Mar 26 10:08:35 EST 2001


Michael Bauer wrote:
> i am writing a daemon application that runs both under windows and unix.  
> Since i am not very experienced in win32 - programming, i really would 
> appreciate some hints how to register my app in win32 that i can do some 
> cleanup-functions when windows is shut down.
> 
> At the moment it is just a standard console application that simply gets 
> killed when windows shuts down. The app does not have/need a GUI, it should 
> just run in the background.


If you're using NT, take a look at the win32service API. I think it provides
hooks like SvcStop that Windows will call for you (if you ask it nicely).

-Steve

-- 
Steve Purcell, Pythangelist
Get testing at http://pyunit.sourceforge.net/
Any opinions expressed herein are my own and not necessarily those of Yahoo




More information about the Python-list mailing list