MCPcopy Create free account
hub / github.com/ClassicOldSong/Apollo / start_service

Method start_service

src/entry_handler.cpp:161–175  ·  view source on GitHub ↗

* @brief Asynchronously starts the Sunshine service. */

Source from the content-addressed store, hash-verified

159 * @brief Asynchronously starts the Sunshine service.
160 */
161 bool start_service() {
162 if (!service_handle) {
163 return false;
164 }
165
166 if (!StartServiceA(service_handle, 0, nullptr)) {
167 auto winerr = GetLastError();
168 if (winerr != ERROR_SERVICE_ALREADY_RUNNING) {
169 BOOST_LOG(error) << "StartService() failed: "sv << winerr;
170 return false;
171 }
172 }
173
174 return true;
175 }
176
177 /**
178 * @brief Query the service status.

Callers 1

start_serviceFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected