From d7ca0300a3f004e9dc7d97ffb6fa6bdeda890fda Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 17 Aug 2007 22:09:00 +0000 Subject: [PATCH] Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing this. --- src/process.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/process.c b/src/process.c index 30ff82a..4e77953 100644 --- a/src/process.c +++ b/src/process.c @@ -154,6 +154,9 @@ bool remove_service(void) { DWORD WINAPI controlhandler(DWORD request, DWORD type, LPVOID boe, LPVOID bah) { switch(request) { + case SERVICE_CONTROL_INTERROGATE: + SetServiceStatus(statushandle, &status); + return NO_ERROR; case SERVICE_CONTROL_STOP: logger(LOG_NOTICE, _("Got %s request"), "SERVICE_CONTROL_STOP"); break; -- 2.25.1