win32_send_custom_control
win32_send_custom_control
Send a custom control to the service
void **win32_send_custom_control** string $servicename int $control string $machine
See for more details Microsoft ControlService function
servicenameThe short name of the service.
controlThe custom contole value between 128 and 255.
machineOptional machine name. If omitted, the local machine is used.
return.void
Prior to version 1.0.0, win32service.noerror.false.error
Prior to version 1.0.0, if the control value is not between 128 and 255, this function emits an
level error.
E_ERROR
A is thrown if the
value of parameter is empty.
ValueError``servicename
A is thrown if the
value of parameter is not between 128 and 255.
ValueError``control
A is thrown on error.
Win32ServiceException
win32_start_service``win32_stop_service``win32_pause_service``win32_continue_serviceWin32 Error Codes