https://git.reactos.org/?p=reactos.git;a=commitdiff;h=eab73ad1a4613c79af7f8e...
commit eab73ad1a4613c79af7f8eed45d3b4497ec08dfe Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sat Jul 20 22:48:17 2019 +0200 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sat Jul 20 22:48:17 2019 +0200
[SRVSVC] Make the server service stoppable. --- base/services/srvsvc/srvsvc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/base/services/srvsvc/srvsvc.c b/base/services/srvsvc/srvsvc.c index 1c3710547b1..a4e77f2c8f8 100644 --- a/base/services/srvsvc/srvsvc.c +++ b/base/services/srvsvc/srvsvc.c @@ -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); }