Reference: GenerateCtrlEvent
Author: Ellen Siever, Stephen Spainhour & Nathan Patwardhan
Date: 1999-07-02T01:59:15Z

#

| Chapter 19 Win32 Modules and Extensions |

## 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 of 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.

Reference: Free |  | Reference: GetEvents