PeanutButter
Loading...
Searching...
No Matches
PeanutButter.WindowsServiceManagement.IServiceControlInterface Interface Reference

Provides a mechanism for controlling windows services. More...

Inheritance diagram for PeanutButter.WindowsServiceManagement.IServiceControlInterface:
PeanutButter.WindowsServiceManagement.ServiceControlInterface

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.

Detailed Description

Provides a mechanism for controlling windows services.

Member Function Documentation

◆ FindServiceByPid()

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.

Parameters
pid
Returns

Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.

◆ ListAllServices()

IEnumerable< string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.ListAllServices ( )

List all known services on the local machine.

Returns

Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.

◆ QueryAll()

IDictionary< string, string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.QueryAll ( string serviceName)

Query all information (queryex and config) about a service by name.

Parameters
serviceName
Returns

Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.

◆ QueryConfiguration()

IDictionary< string, string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.QueryConfiguration ( string serviceName)

Query service configuration by service name.

Parameters
serviceName
Returns

Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.

◆ QueryEx()

IDictionary< string, string > PeanutButter.WindowsServiceManagement.IServiceControlInterface.QueryEx ( string serviceName)

Perform a queryex for a service by name.

Parameters
serviceName
Returns

Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.

◆ RunServiceControl()

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.

Parameters
args
Returns

Implemented in PeanutButter.WindowsServiceManagement.ServiceControlInterface.


The documentation for this interface was generated from the following file:
  • source/Win32Service/PeanutButter.WindowsServiceManagement/ServiceControlInterface.cs