CONSOLECONTROL - NtDoc

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

//
// Console Host Control
//

/**
 * The CONSOLECONTROL enumeration is the class selector for NtUserConsoleControl(Command, ConsoleInformation, ConsoleInformationLength).
 * The outer syscall guard enforces "cmp class,6 / ja" (classes 0..6 only) plus "cbInfo <= 0x18";
 * the dispatcher is a sub/jz
 * ladder over classes 0..6, and any class > 6 returns STATUS_INVALID_INFO_CLASS.
 */
typedef enum _CONSOLECONTROL
{
    ConsoleSetVDMCursorBounds = 0,                          // s: RECT // not implemented (falls through to STATUS_INVALID_PARAMETER; NTVDM removed on x64)
    ConsoleNotifyConsoleApplication = 1,                    // s: CONSOLE_PROCESS_INFO (cb 8) -> xxxUserNotifyConsoleApplication
    ConsoleFullscreenSwitch = 2,                            // s: CONSOLE_FULLSCREEN_SWITCH (cb 0x18) // not supported (deprecated stub -> STATUS_NOT_SUPPORTED)
    ConsoleSetCaretInfo = 3,                                // s: CONSOLE_CARET_INFO (cb 0x18) -> xxxSetConsoleCaretInfo
    ConsoleSetReserveKeys = 4,                              // s: CONSOLE_SET_RESERVE_KEYS (cb 0x10)
    ConsoleSetForeground = 5,                               // s: CONSOLE_SET_FOREGROUND (cb 0x10)
    ConsoleSetWindowOwner = 6,                              // s: CONSOLE_WINDOW_OWNER (cb 0x10)
    ConsoleEndTask = 7,                                     // s: CONSOLE_END_TASK // deprecated
} CONSOLECONTROL;

#endif

View code on GitHub

NtDoc

No description available.