mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[SRVSVC][WKSSVC] Server and workstation service set their service bit when they are running
This commit is contained in:
parent
1362983bb7
commit
027904b441
4 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue