mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[WKSSVC] Make the workstation service stoppable.
This commit is contained in:
parent
8a631c8455
commit
4073a8c58d
1 changed files with 3 additions and 0 deletions
|
@ -57,6 +57,9 @@ UpdateServiceStatus(DWORD dwState)
|
|||
else
|
||||
ServiceStatus.dwWaitHint = 0;
|
||||
|
||||
if (dwState == SERVICE_RUNNING)
|
||||
ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN;
|
||||
|
||||
SetServiceStatus(ServiceStatusHandle,
|
||||
&ServiceStatus);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue