win32_set_service_pause_resume_state
win32_set_service_pause_resume_state
Define or return the pause/resume capability for the current running service
bool **win32_set_service_pause_resume_state** bool $state
If parameter is provided, the pause/resume capability
is changed.
state
Let op: > This function work only in "cli" SAPI and in the Windows service running context. On other SAPI this function is disabled.
statetrue for enable the service pause/resume capability. false for disable the service pause/resume capability.
Return the current or old pause/resume capability state.
Prior to version 1.0.0, if the SAPI is not , this function emits an
level error.
"cli"``E_ERROR
As of version 1.0.0, will throw a
if SAPI is not
Win32ServiceException``"cli"
win32_start_service_ctrl_dispatcher``win32_set_service_status``win32_set_service_exit_code