[][src]Function winconsole::console::generate_ctrl_event

pub fn generate_ctrl_event(
    break_event: bool,
    process_group_id: impl Into<Option<u32>>
) -> WinResult<()>

Sends a ctrl signal to a process group which shares the console.

Arguments

Examples

Generates a CTRL event.

console::generate_ctrl_event(false, None).unwrap();

Errors