Method | Description | |
---|---|---|
ContinueService ( string serviceName ) : bool |
Pauses a service by name or descriptive name
|
|
InstallService ( string svcPath, string svcName, string svcDispName, bool autoStart = true ) : bool |
This method installs and runs the service in the service conrol manager.
|
|
IsServiceInstalled ( string serviceName ) : bool |
Determines whether a service exisits. Pass in the Service Name either by the ServiceName or the descriptive name
|
|
IsServiceRunning ( string serviceName ) : bool | ||
PauseService ( string serviceName ) : bool |
Pauses a service by name or descriptive name
|
|
StartService ( string serviceName ) : bool |
Starts a service by name or descriptive name
|
|
StopService ( string serviceName ) : bool |
Stops a service by name or descriptive name
|
|
UnInstallService ( string serviceName ) : bool |
This method uninstalls the service from the service conrol manager.
|
Method | Description | |
---|---|---|
CloseServiceHandle ( |
||
CreateService ( |
||
DeleteService ( |
||
GetLastError ( ) : int | ||
OpenSCManager ( string lpMachineName, string lpSCDB, int scParameter ) : |
||
OpenService ( |
||
StartService ( |
public ContinueService ( string serviceName ) : bool | ||
serviceName | string | |
return | bool |
public InstallService ( string svcPath, string svcName, string svcDispName, bool autoStart = true ) : bool | ||
svcPath | string | The complete path of the service. |
svcName | string | Name of the service. |
svcDispName | string | Display name of the service. |
autoStart | bool | |
return | bool |
public IsServiceInstalled ( string serviceName ) : bool | ||
serviceName | string | |
return | bool |
public IsServiceRunning ( string serviceName ) : bool | ||
serviceName | string | |
return | bool |
public PauseService ( string serviceName ) : bool | ||
serviceName | string | |
return | bool |
public StartService ( string serviceName ) : bool | ||
serviceName | string | |
return | bool |
public StopService ( string serviceName ) : bool | ||
serviceName | string | |
return | bool |
public UnInstallService ( string serviceName ) : bool | ||
serviceName | string | Name of the service to uninstall. |
return | bool |