NtUserConsoleControl - NtDoc

Native API online documentation, based on the System Informer (formerly Process Hacker) phnt headers
#ifndef _NTUSER_H

/**
 * The NtUserConsoleControl 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 win32u.dll.
 */
_Kernel_entry_
NTSYSCALLAPI
NTSTATUS
NTAPI
NtUserConsoleControl(
    _In_ CONSOLECONTROL Command,
    _In_reads_bytes_(ConsoleInformationLength) PVOID ConsoleInformation,
    _In_ ULONG ConsoleInformationLength
    );

#endif

View code on GitHub

NtDoc

No description available.