Build 1.01.318.0
[This is preliminary documentation and is subject to change.]
The ServiceManager type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
| GetAllServices |
Gets all installed Windows services.
| |
| GetNumberOfLogicalProcessors |
Gets the number of logical processors on the system.
| |
| GetNumberOfProcessors |
Gets the number of physical processors on the system.
| |
| GetService |
Gets the Service with the given name.
| |
| GetServiceProcessorAffinity |
Gets the affinity for the service with the given name.
| |
| GetServiceStartMode |
Gets the start mode of the service with the given name.
| |
| GetServiceStatus |
Gets the status of the service with the given name.
| |
| IsServicePaused |
Determine whther the service with the given name is paused.
| |
| IsServiceRunning |
Determine whther the service with the given name is running.
| |
| IsServiceStopped |
Determine whther the service with the given name is stopped.
| |
| PauseService(String) |
Pause the service with the given name. This method returns as soon as the Pause method on the service
is called and does not guarantee the paused status of the service.
| |
| PauseService(String, TimeSpan) |
Pause the service with the given name and wait until the service status is paused.
If the service status is not paused after the given timeout then the service is considered not paused.
| |
| ServiceExists |
Gets a value whteher the service with the given name is installed.
| |
| SetServiceProcessorAffinity |
Set the processor affinity for the service with the given name.
| |
| SetServiceStartMode |
Modifies the start mode of a Windows service.
| |
| StartService(String) |
Start the service with the given name.
This method returns as soon as the Start method on the service
is called and does not guarantee the running status of the service.
You can call this method after stop or pause the service in order to re-start it.
| |
| StartService(String, TimeSpan) |
Start the service with the given name and wait until the status of the service is running.
If the service status is not running after the given timeout then the service is considered not started.
You can call this method after stop or pause the service in order to re-start it.
| |
| StopService(String) |
Stop the service with the given name. This method returns as soon as the Stop method on the service
is called and does not guarantee the stopped status of the service.
| |
| StopService(String, TimeSpan) |
Stop the service with the given name and wait until the service status is stopped.
If the service status is not stopped after the given timeout then the service is considered not stopped.
|