private bool is_automatic_service(ServiceController controller) { return controller.QueryStartMode() == ServiceStartMode.Automatic; }