You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I make custom Windows Service from example, register by "sc" cmd, run it.
Then when trying to stop this, Windows raise error message "failed to stop service ... this service did not return an error".
I have try to find some code in this repo, but cannot find example how to handle it.
P.S.
thanks for any help
The text was updated successfully, but these errors were encountered:
Ran into this myself earlier, the solution is to set the program state to ServiceState::Stopped either during the event handler or shortly after returning from the event handler.
See this example which spawns a thread to set the service to ServiceState::Stopped in response to a ServiceControl::Stop request:
I make custom Windows Service from example, register by "sc" cmd, run it.
Then when trying to stop this, Windows raise error message "failed to stop service ... this service did not return an error".
I have try to find some code in this repo, but cannot find example how to handle it.
P.S.
thanks for any help
The text was updated successfully, but these errors were encountered: