mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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 <winbase.h>
|
||||||
#include <winreg.h>
|
#include <winreg.h>
|
||||||
#include <winsvc.h>
|
#include <winsvc.h>
|
||||||
|
#include <lmserver.h>
|
||||||
|
|
||||||
#include <srvsvc_s.h>
|
#include <srvsvc_s.h>
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,12 @@ ServiceInit(VOID)
|
||||||
else
|
else
|
||||||
CloseHandle(hThread);
|
CloseHandle(hThread);
|
||||||
|
|
||||||
|
/* Report a running server service */
|
||||||
|
SetServiceBits(ServiceStatusHandle,
|
||||||
|
SV_TYPE_SERVER,
|
||||||
|
TRUE,
|
||||||
|
TRUE);
|
||||||
|
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@
|
||||||
#include <winbase.h>
|
#include <winbase.h>
|
||||||
#include <winreg.h>
|
#include <winreg.h>
|
||||||
#include <winsvc.h>
|
#include <winsvc.h>
|
||||||
|
#include <lmserver.h>
|
||||||
|
|
||||||
#include <wkssvc_s.h>
|
#include <wkssvc_s.h>
|
||||||
|
|
||||||
|
|
|
@ -127,6 +127,12 @@ ServiceInit(VOID)
|
||||||
else
|
else
|
||||||
CloseHandle(hThread);
|
CloseHandle(hThread);
|
||||||
|
|
||||||
|
/* Report a running workstation service */
|
||||||
|
SetServiceBits(ServiceStatusHandle,
|
||||||
|
SV_TYPE_WORKSTATION,
|
||||||
|
TRUE,
|
||||||
|
TRUE);
|
||||||
|
|
||||||
return ERROR_SUCCESS;
|
return ERROR_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue