|
PeanutButter
|
Provides a mechanism for controlling windows services. More...
Public Member Functions | |
| IDictionary< string, string > | QueryAll (string serviceName) |
| Query all information (queryex and config) about a service by name. | |
| IDictionary< string, string > | QueryEx (string serviceName) |
| Perform a queryex for a service by name. | |
| IDictionary< string, string > | QueryConfiguration (string serviceName) |
| Query service configuration by service name. | |
| IDictionary< string, string > | RunServiceControl (params string[] args) |
| Run a raw sc.exe command with the provided arguments and get back the raw-ish key-value pairs of information. | |
| IEnumerable< string > | ListAllServices () |
| List all known services on the local machine. | |
| string | FindServiceByPid (int pid) |
| Attempt to identify the service associated with the provided process id. If the process id is not for a service, the return value will be null. | |
Provides a mechanism for controlling windows services.
| string PeanutButter.WindowsServiceManagement.IServiceControlInterface.FindServiceByPid | ( | int | pid | ) |
Attempt to identify the service associated with the provided process id. If the process id is not for a service, the return value will be null.
| pid |
Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.
| IEnumerable< string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.ListAllServices | ( | ) |
List all known services on the local machine.
Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.
| IDictionary< string, string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.QueryAll | ( | string | serviceName | ) |
Query all information (queryex and config) about a service by name.
| serviceName |
Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.
| IDictionary< string, string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.QueryConfiguration | ( | string | serviceName | ) |
Query service configuration by service name.
| serviceName |
Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.
| IDictionary< string, string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.QueryEx | ( | string | serviceName | ) |
Perform a queryex for a service by name.
| serviceName |
Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.
| IDictionary< string, string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.RunServiceControl | ( | params string[] | args | ) |
Run a raw sc.exe command with the provided arguments and get back the raw-ish key-value pairs of information.
| args |
Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.