[WKSSVC] Make the workstation service stoppable.

This commit is contained in:
Eric Kohl 2019-07-20 22:43:39 +02:00
parent 8a631c8455
commit 4073a8c58d

View file

@ -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);
}