Sends a continue request to the specified windows service.

ContinueService(cServiceName | nServiceHandle [, nTimeout [, cServer [, cDatabase]]])

Parameters

cServiceName | nServiceHandle

Either the name of the service or a numeric handle returned from the OpenService function.

nTimeout (optional)

Maximum time in seconds to wait while the service is in SERVICE_START_PENDING state.

If you pass 0 as the timeout the function doesn't wait until the service is initiazed, instead it returns immediately after the start request has been sent.

If you omit this parameter or pass NULL the timeout is set to the default timeout reported by the service.
See MSDN help for SERVICE_STATUS_PROCESS structure's "dwWaitHint" member.

cServer (optional)

The server name on which the service is running.
See MSDN help for OpenSCManager.

cDatabase (optional)

The database under which the service is registered.
See MSDN help for OpenSCManager.

Return Value

If the service is already in the running state or continued within the specified timeout period 1 is returned, if the timeout expired 0 is returned.

See Also

Reference

ADependentServices
AServiceConfig
AServices
AServiceStatus
CloseServiceHandle
ControlService
CreateService
OpenService
PauseService
StartService
StopService
WaitForServiceStatus

Used WinApi functions

ControlService
QueryServiceStatus
OpenSCManager
OpenService
CloseServiceHandle