ConsoleControl

Function ConsoleControl 

Source
pub unsafe extern "C" fn ConsoleControl(
    Command: CONSOLECONTROL,
    ConsoleInformation: PVOID,
    ConsoleInformationLength: ULONG,
) -> NTSTATUS
Expand description

Performs special kernel operations for console host applications. (user32.dll) This includes reparenting the console window, allowing the console to pass foreground rights on to launched console subsystem applications and terminating attached processes.

§Arguments

  • Command - One of the CONSOLECONTROL values indicating which console control function should be executed.
  • ConsoleInformation - A pointer to one of the structures specifying additional data for the requested console control function.
  • ConsoleInformationLength - The size of the structure pointed to by the ConsoleInformation parameter.

§Returns

Successful or errant status.