|
|
|
|
The following constants are used to manage services: | | | Constant | Description | Used by the functions |
---|
AccountLocalService | Local account that has the recommended rights to run a service. On the network, this account will be considered as guest. | Service variable | AccountNetworkService | Local account that has the recommended rights to run a service. On the network, this account will have the rights of the current computer. | Service variable | AccountLocalSystem | Local account representing the operating system. This account has all the rights. On the network, this account will have the rights of the current computer. | Service variable | esStop | The service stops properly, without triggering any error. The different ending processes are run and the service stops. | EndService | esFailure | The service stops and triggers a failure. The different ending processes are not run. | EndService | elWarning | Warning event | ServiceWriteEventLog | elError | Error event | ServiceWriteEventLog | elInformation | Information event | ServiceWriteEventLog | serviceCmdStop | Stops the service (equivalent to ServiceStop). | ServiceControl | serviceCmdPause | Pauses the service (equivalent to ServicePause). | ServiceControl | serviceCmdRestart | Restarts a service (equivalent to ServiceContinue). | ServiceControl | serviceCmdRereadConfig | Asks the service to re-read its configuration settings (equivalent to ServiceRefresh). | ServiceControl | serviceStartupAutomatic | Start automatically once the system is initialized | Service variable | serviceStartupDisabled | The service is disabled. Any attempt to start it triggers an error. | Service variable | serviceStartupManual | Manual startup | Service variable | serviceStartupSystem | Automatic start at the same time as the operating system (used by the drivers). | Service variable | serviceErrorCritical | The system writes the failure for starting the service into the log of event observer and restarts in "Last proper configuration known" mode. | Service variable | serviceErrorSerious | The system writes the failure for starting the service into the log of event observer and restarts in "Last proper configuration known" mode if this mode is not already used. | Service variable | serviceErrorIgnore | The system performs no action if the service does not start. | Service variable | serviceErrorLog | The system writes the failure for starting the service into the log of event observer. | Service variable | serviceStatusStopped | The service is stopped. | ServiceWaitStatus, ServiceStatus | serviceStatusStopping | The service received a command to stop but it has not been stopped yet. | ServiceWaitStatus, ServiceStatus | serviceStatusStarting | The service received a command to start but it has not been started yet. | ServiceWaitStatus, ServiceStatus | serviceStatusPausing | The service received a command to pause but it has not been paused yet. | ServiceWaitStatus, ServiceStatus | serviceStatusRestarting | The service received a command to restart but it has not been restarted yet. | ServiceWaitStatus, ServiceStatus | serviceStatusStarted | The service is currently operating. | ServiceWaitStatus, ServiceStatus | serviceStatusPaused | The service is paused. | ServiceWaitStatus, ServiceStatus | serviceStatusTimeout | The service has not reached the requested status at the end of the timeout. | ServiceWaitStatus | serviceTypeInteractiveShared | Service allowed to interact with the desktop and sharing its process with other services. | Service variable | serviceTypeInteractiveSimple | Service allowed to interact with the desktop and operating on its own in its process. | Service variable | serviceTypeShared | Standard service sharing its process with other services. | Service variable | serviceTypeDriverKernel | Driver of the kernel. | Service variable | serviceTypeDriverFileSystem | Driver of file system. | Service variable | serviceTypeSimple | Standard service operating on its own in its process. | Service variable |
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|