June 2002
Beginner
759 pages
80h 42m
English
GenerateCtrlEvent
$cons->GenerateCtrlEvent([type,processgroup])
Sends a break signal of the specified type to the
specified process group. type can be
one of CTRL_BREAK_EVENT or
CTRL_C_EVENT, signaling,
respectively, the pressing of Ctrl + Break and Ctrl-C. If not
specified, type defaults to CTRL_C_EVENT.
processgroup is the PID of a process
sharing the same console. If omitted, it defaults to 0 (the current process), which is also
the only meaningful value that you can pass to this function.
Returns undef on error, a
nonzero value on success.