mirror of
https://github.com/reactos/reactos.git
synced 2025-07-06 19:41:23 +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
|
else
|
||||||
ServiceStatus.dwWaitHint = 0;
|
ServiceStatus.dwWaitHint = 0;
|
||||||
|
|
||||||
|
if (dwState == SERVICE_RUNNING)
|
||||||
|
ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN;
|
||||||
|
|
||||||
SetServiceStatus(ServiceStatusHandle,
|
SetServiceStatus(ServiceStatusHandle,
|
||||||
&ServiceStatus);
|
&ServiceStatus);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue