https://git.reactos.org/?p=reactos.git;a=commitdiff;h=4073a8c58db8441489f142...
commit 4073a8c58db8441489f142b65f088dfd28c9c2f7 Author: Eric Kohl eric.kohl@reactos.org AuthorDate: Sat Jul 20 22:43:39 2019 +0200 Commit: Eric Kohl eric.kohl@reactos.org CommitDate: Sat Jul 20 22:43:39 2019 +0200
[WKSSVC] Make the workstation service stoppable. --- base/services/wkssvc/wkssvc.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/base/services/wkssvc/wkssvc.c b/base/services/wkssvc/wkssvc.c index 5200570256b..eba9053e5e0 100644 --- a/base/services/wkssvc/wkssvc.c +++ b/base/services/wkssvc/wkssvc.c @@ -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); }