]> git.meshlink.io Git - meshlink/commitdiff
Handle SERVICE_CONTROL_INTERROGATE requests. Thanks to Carsten Ralle for noticing...
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 17 Aug 2007 22:09:00 +0000 (22:09 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 17 Aug 2007 22:09:00 +0000 (22:09 +0000)
src/process.c

index 30ff82ad5ec700d86de5af753a65cbc388d4f00e..4e779532efdc7c48b53ff55064309c6be978adfc 100644 (file)
@@ -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;