#ifndef _NTUSER_H
/**
* The ConsoleControl routine performs special kernel operations for console host applications.
*
* This includes reparenting the console window, allowing the console to pass foreground rights
* on to launched console subsystem applications, and terminating attached processes.
*
* \param Command One of the CONSOLECONTROL values indicating which console control function should be executed.
* \param ConsoleInformation A pointer to a structure specifying additional data for the requested
* console control function.
* \param ConsoleInformationLength The size of the structure pointed to by the ConsoleInformation
* parameter in bytes.
* \returns NTSTATUS Successful or errant status.
* \remarks Exported via user32.dll.
*/
NTSYSAPI
NTSTATUS
NTAPI
ConsoleControl(
_In_ CONSOLECONTROL Command,
_In_reads_bytes_(ConsoleInformationLength) PVOID ConsoleInformation,
_In_ ULONG ConsoleInformationLength
);
View code on GitHubNo description available.