[SRVSVC][WKSSVC] Server and workstation service set their service bit when they are...
authorEric Kohl <eric.kohl@reactos.org>
Tue, 1 May 2018 14:37:48 +0000 (16:37 +0200)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 1 May 2018 14:37:48 +0000 (16:37 +0200)
base/services/srvsvc/precomp.h
base/services/srvsvc/srvsvc.c
base/services/wkssvc/precomp.h
base/services/wkssvc/wkssvc.c

index c933646..a0fbcbc 100644 (file)
@@ -9,6 +9,7 @@
 #include <winbase.h>
 #include <winreg.h>
 #include <winsvc.h>
+#include <lmserver.h>
 
 #include <srvsvc_s.h>
 
index c37072f..5182987 100644 (file)
@@ -127,6 +127,12 @@ ServiceInit(VOID)
     else
         CloseHandle(hThread);
 
+    /* Report a running server service */
+    SetServiceBits(ServiceStatusHandle,
+                   SV_TYPE_SERVER,
+                   TRUE,
+                   TRUE);
+
     return ERROR_SUCCESS;
 }
 
index 1724117..6e66ec7 100644 (file)
@@ -9,6 +9,7 @@
 #include <winbase.h>
 #include <winreg.h>
 #include <winsvc.h>
+#include <lmserver.h>
 
 #include <wkssvc_s.h>
 
index 198ce5a..5200570 100644 (file)
@@ -127,6 +127,12 @@ ServiceInit(VOID)
     else
         CloseHandle(hThread);
 
+    /* Report a running workstation service */
+    SetServiceBits(ServiceStatusHandle,
+                   SV_TYPE_WORKSTATION,
+                   TRUE,
+                   TRUE);
+
     return ERROR_SUCCESS;
 }