Catch 'kill interrupt'
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, I've registered an application, under Windows XP, using 'instsrv.exe' and 'srvany.exe'. This all works fine, but when i stop the service i want to clean up any used resource, and this is where it gets 'tricky'. The service is completely shutdown, no destructors called or anything like that. I'm also not able to catch some kind of 'kill' interrupt using 'signal' (used to catch SIGINT (CTRL-C) interrupts). Does anyone know a solution or another 3rd party service registration tool that provides some method of catching a stop service command? Many thanks Er zit een korstje op mijn aars.