mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 22:52:54 +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
|
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