mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 08:50:24 +08:00
[SRVSVC][WKSSVC] Server and workstation service set their service bit when they are running
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <winbase.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
#include <lmserver.h>
|
||||
|
||||
#include <srvsvc_s.h>
|
||||
|
||||
|
||||
@@ -127,6 +127,12 @@ ServiceInit(VOID)
|
||||
else
|
||||
CloseHandle(hThread);
|
||||
|
||||
/* Report a running server service */
|
||||
SetServiceBits(ServiceStatusHandle,
|
||||
SV_TYPE_SERVER,
|
||||
TRUE,
|
||||
TRUE);
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
#include <winbase.h>
|
||||
#include <winreg.h>
|
||||
#include <winsvc.h>
|
||||
#include <lmserver.h>
|
||||
|
||||
#include <wkssvc_s.h>
|
||||
|
||||
|
||||
@@ -127,6 +127,12 @@ ServiceInit(VOID)
|
||||
else
|
||||
CloseHandle(hThread);
|
||||
|
||||
/* Report a running workstation service */
|
||||
SetServiceBits(ServiceStatusHandle,
|
||||
SV_TYPE_WORKSTATION,
|
||||
TRUE,
|
||||
TRUE);
|
||||
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user