X-Git-Url: http://git.iain.cx/?a=blobdiff_plain;f=service.cpp;h=d4d023bf77d0569eb162e377b54d46b99150b489;hb=5b00b82065af2dd87facc881f6a430b0050dfc3f;hp=81e46efec92e2ca227466a5e58f7210e05adfe44;hpb=9884e231415258809dfb1ef117b6bc9a5b011514;p=nssm.git diff --git a/service.cpp b/service.cpp index 81e46ef..d4d023b 100644 --- a/service.cpp +++ b/service.cpp @@ -319,6 +319,10 @@ void log_service_control(char *service_name, unsigned long control, bool handled /* Service control handler */ unsigned long WINAPI service_control_handler(unsigned long control, unsigned long event, void *data, void *context) { switch (control) { + case SERVICE_CONTROL_INTERROGATE: + /* We always keep the service status up-to-date so this is a no-op. */ + return NO_ERROR; + case SERVICE_CONTROL_SHUTDOWN: case SERVICE_CONTROL_STOP: log_service_control(service_name, control, true);