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: release-1.0.9~17 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=d7ca0300a3f004e9dc7d97ffb6fa6bdeda890fda;p=tinc 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;