Sunshine master
Self-hosted game stream host for Moonlight.
service_ctrl::service_controller Class Reference

Owns Windows service-manager handles for the Sunshine service. More...

Public Member Functions

bool query_service_status (SERVICE_STATUS &status)
 Query the service status.
 
 service_controller (DWORD service_desired_access)
 Open the Windows service manager and Sunshine service handle.
 
bool start_service ()
 Asynchronously starts the Sunshine service.
 

Detailed Description

Owns Windows service-manager handles for the Sunshine service.

Constructor & Destructor Documentation

◆ service_controller()

service_ctrl::service_controller::service_controller ( DWORD service_desired_access)
inline

Open the Windows service manager and Sunshine service handle.

Parameters
service_desired_accessSERVICE_* desired access flags.

Member Function Documentation

◆ query_service_status()

bool service_ctrl::service_controller::query_service_status ( SERVICE_STATUS & status)
inline

Query the service status.

Parameters
statusThe SERVICE_STATUS struct to populate.
Returns
True when the Windows service API call succeeds.

◆ start_service()

bool service_ctrl::service_controller::start_service ( )
inline

Asynchronously starts the Sunshine service.

Returns
True when the Windows service API call succeeds.

The documentation for this class was generated from the following file: