MCPcopy Create free account
hub / github.com/MonaSolutions/MonaServer / stop

Method stop

MonaBase/sources/WinService.cpp:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159
160bool WinService::stop(Exception& ex) {
161 if (!open(ex))
162 return false;
163 SERVICE_STATUS svcStatus;
164 if (!ControlService(_svcHandle, SERVICE_CONTROL_STOP, &svcStatus)) {
165 ex.set(Exception::SERVICE, "Cannot stop service ", _name);
166 return false;
167 }
168 return true;
169}
170
171
172bool WinService::setStartup(Exception& ex,Startup startup) {

Callers

nothing calls this directly

Calls 1

setMethod · 0.45

Tested by

no test coverage detected