$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.
Copyright © 2001 O'Reilly & Associates. All rights reserved.