From: Guus Sliepen Date: Fri, 17 Aug 2007 22:09:00 +0000 (+0000) Subject: Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing... X-Git-Tag: import-tinc-1.1~596^2~35 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=d7ca0300a3f004e9dc7d97ffb6fa6bdeda890fda;p=meshlink Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing this. --- diff --git a/src/process.c b/src/process.c index 30ff82ad..4e779532 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;