PHP.nl

win32_pause_service

win32_pause_service

Pauses a service

void **win32_pause_service** string $servicename string $machine

Pauses a named service. Requires administrative privileges or an account with appropriate rights set in the service's ACL.

servicenameThe short name of the service.

machineOptional machine name. If omitted, the local machine is used.

return.void

Prior to version 1.0.0, win32service.noerror.false.error

A  is thrown if the
value of  parameter is empty.

ValueError``servicename

A  is thrown on error.

Win32ServiceException

win32_start_service``win32_stop_service``win32_continue_service``win32_send_custom_controlWin32 Error Codes