mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 05:58:13 +00:00
[SRVSVC] Make the server service stoppable.
This commit is contained in:
parent
4073a8c58d
commit
eab73ad1a4
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,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