ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / WLanguage functions / Standard functions / Service functions
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
The following constants are used to manage services:
ConstantDescriptionUsed by the functions
AccountLocalServiceLocal account that has the recommended rights to run a service. On the network, this account will be considered as guest.Service variable
AccountNetworkServiceLocal 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
AccountLocalSystemLocal 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
esStopThe service stops properly, without triggering any error. The different ending processes are run and the service stops.EndService
esFailureThe service stops and triggers a failure. The different ending processes are not run.EndService
elWarningWarning eventServiceWriteEventLog
elErrorError eventServiceWriteEventLog
elInformationInformation eventServiceWriteEventLog
serviceCmdStopStops the service (equivalent to ServiceStop).ServiceControl
serviceCmdPausePauses the service (equivalent to ServicePause).ServiceControl
serviceCmdRestartRestarts a service (equivalent to ServiceContinue).ServiceControl
serviceCmdRereadConfigAsks the service to re-read its configuration settings (equivalent to ServiceRefresh).ServiceControl
serviceStartupAutomaticStart automatically once the system is initializedService variable
serviceStartupDisabledThe service is disabled. Any attempt to start it triggers an error.Service variable
serviceStartupManualManual startupService variable
serviceStartupSystemAutomatic start at the same time as the operating system (used by the drivers). Service variable
serviceErrorCriticalThe system writes the failure for starting the service into the log of event observer and restarts in "Last proper configuration known" mode.Service variable
serviceErrorSeriousThe 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
serviceErrorIgnoreThe system performs no action if the service does not start.Service variable
serviceErrorLogThe system writes the failure for starting the service into the log of event observer.Service variable
serviceStatusStoppedThe service is stopped.ServiceWaitStatus, ServiceStatus
serviceStatusStoppingThe service received a command to stop but it has not been stopped yet.ServiceWaitStatus, ServiceStatus
serviceStatusStartingThe service received a command to start but it has not been started yet.ServiceWaitStatus, ServiceStatus
serviceStatusPausingThe service received a command to pause but it has not been paused yet.ServiceWaitStatus, ServiceStatus
serviceStatusRestartingThe service received a command to restart but it has not been restarted yet.ServiceWaitStatus, ServiceStatus
serviceStatusStartedThe service is currently operating.ServiceWaitStatus, ServiceStatus
serviceStatusPausedThe service is paused.ServiceWaitStatus, ServiceStatus
serviceStatusTimeoutThe service has not reached the requested status at the end of the timeout.ServiceWaitStatus
serviceTypeInteractiveSharedService allowed to interact with the desktop and sharing its process with other services.Service variable
serviceTypeInteractiveSimpleService allowed to interact with the desktop and operating on its own in its process.Service variable
serviceTypeSharedStandard service sharing its process with other services.Service variable
serviceTypeDriverKernelDriver of the kernel.Service variable
serviceTypeDriverFileSystemDriver of file system.Service variable
serviceTypeSimpleStandard service operating on its own in its process.Service variable
Minimum version required
  • Version 11
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help