mirror of
https://github.com/reactos/reactos.git
synced 2025-07-24 17:53:43 +00:00
[WMISVC] Accept stop and shutdown commands when the service is running.
This commit is contained in:
parent
9efeefd506
commit
eb532bc641
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue