[][src]Function fenestroj::wincon::attach_console

pub fn attach_console(process_id: u32) -> Result<(), ErrorCode>

Attaches your process to the console of the process you specify.

You can use the ATTACH_PARENT_PROCESS constant to pick your parent process without knowing its exact value.

A process can only be connected to one console at a time.

See AttachConsole, alloc_console, and free_console.