Méthode | Description | |
---|---|---|
GetServiceStatus ( [ serviceName ) : ServiceControllerStatus |
Gets the service status.
|
|
Install ( [ serviceName, [ displayName, [ description, [ fileName, [ userName = null, [ password = null ) : void |
Installs the specified service name.
|
|
ServiceIsInstalled ( [ serviceName ) : bool |
Whether the specified service is installed.
|
Méthode | Description | |
---|---|---|
ChangeServiceConfig2 ( |
||
CloseServiceHandle ( |
||
CommandService ( [ serviceName, int command, |
||
ContinueService ( [ serviceName, |
||
CreateService ( |
||
DeleteService ( |
||
OpenSCManager ( ScmAccessRights rights ) : |
Opens the sc manager.
|
|
OpenSCManager ( string machineName, string databaseName, ScmAccessRights dwDesiredAccess ) : |
||
OpenService ( |
||
PauseService ( [ serviceName, |
||
StartService ( [ serviceName, [ args = null, |
||
StopService ( [ serviceName, |
||
Uninstall ( [ serviceName, |
||
WaitForAsync ( [ serviceController, ServiceControllerStatus status, |
public static GetServiceStatus ( [ serviceName ) : ServiceControllerStatus | ||
serviceName | [ | Name of the service. |
Résultat | ServiceControllerStatus |
public static Install ( [ serviceName, [ displayName, [ description, [ fileName, [ userName = null, [ password = null ) : void | ||
serviceName | [ | Name of the service. |
displayName | [ | The display name. |
description | [ | The description. |
fileName | [ | Name of the file. |
userName | [ | Name of the user. |
password | [ | The password. |
Résultat | void |
public static ServiceIsInstalled ( [ serviceName ) : bool | ||
serviceName | [ | Name of the service. |
Résultat | bool |