sapi_windows_generate_ctrl_event
PHP 7 >= 7.4.0, PHP 8
sapi_windows_generate_ctrl_event - Send a CTRL event to another process
Manual
sapi_windows_generate_ctrl_event(
int$event,
[int$pid = 0] ): bool
Sends a CTRL event to another process in the same process group.
Parameters
- event
-
The CTRL even to send; either PHP_WINDOWS_EVENT_CTRL_C or PHP_WINDOWS_EVENT_CTRL_BREAK.
- pid
-
The ID of the process to which to send the event to. If 0 is given, the event is sent to all processes of the process group.
Return Values
Returns true on success or false on failure.