C# Class TrakHound.Tools.Service_Functions

Exibir arquivo Open project: TrakHound/TrakHound-Community

Public Methods

Method Description
GetRunningServices ( ) : System.ServiceProcess.ServiceController[]
GetServiceController ( string serviceName ) : ServiceController
GetServiceStatus ( string serviceName ) : ServiceStatus
IsServiceInstalled ( string serviceName ) : bool
IsServiceRunning ( string serviceName ) : bool

Method Details

GetRunningServices() public static method

public static GetRunningServices ( ) : System.ServiceProcess.ServiceController[]
return System.ServiceProcess.ServiceController[]

GetServiceController() public static method

public static GetServiceController ( string serviceName ) : ServiceController
serviceName string
return System.ServiceProcess.ServiceController

GetServiceStatus() public static method

public static GetServiceStatus ( string serviceName ) : ServiceStatus
serviceName string
return ServiceStatus

IsServiceInstalled() public static method

public static IsServiceInstalled ( string serviceName ) : bool
serviceName string
return bool

IsServiceRunning() public static method

public static IsServiceRunning ( string serviceName ) : bool
serviceName string
return bool