mirror of
https://github.com/reactos/reactos.git
synced 2026-05-26 10:53:56 +08:00
[WMISVC] Accept stop and shutdown commands when the service is running.
This commit is contained in:
@@ -66,6 +66,9 @@ UpdateServiceStatus(DWORD dwState)
|
||||
else
|
||||
ServiceStatus.dwWaitHint = 0;
|
||||
|
||||
if (dwState == SERVICE_RUNNING)
|
||||
ServiceStatus.dwControlsAccepted = SERVICE_ACCEPT_STOP | SERVICE_ACCEPT_SHUTDOWN;
|
||||
|
||||
SetServiceStatus(ServiceStatusHandle,
|
||||
&ServiceStatus);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user