16#include "../../concfg/font.h"
32 return (
Console->State == ExpectedState);
112 DPRINT1(
"ConDrvInitInputBuffer: failed, Status = 0x%08lx\n",
Status);
140 DPRINT1(
"ConDrvCreateScreenBuffer: failed, Status = 0x%08lx\n",
Status);
146 Console->ActiveBuffer = NewBuffer;
149 DPRINT(
"Console initialized\n");
174 Console->TermIFace = *Terminal;
178 DPRINT(
"Finish initialization of terminal\n");
182 DPRINT1(
"Terminal initialization failed, Status = 0x%08lx\n",
Status);
185 Terminal->Console =
NULL;
193 DPRINT(
"Terminal initialization done\n");
213 DPRINT(
"Terminal unregistered\n");
256 DPRINT(
"Deregister terminal\n");
258 DPRINT(
"Terminal deregistered\n");
291 DPRINT(
"ConDrvDeleteConsole - Unlocking\n");
293 DPRINT(
"ConDrvDeleteConsole - Destroying lock\n");
295 DPRINT(
"ConDrvDeleteConsole - Lock destroyed\n");
297 DPRINT(
"ConDrvDeleteConsole - Console destroyed\n");
307 if (
Console->ConsolePaused)
return;
317 if (!
Console->ConsolePaused)
return;
346 *ConsoleMode =
Buffer->Mode;
361#define CONSOLE_VALID_INPUT_MODES ( ENABLE_PROCESSED_INPUT | ENABLE_LINE_INPUT | \
362 ENABLE_ECHO_INPUT | ENABLE_WINDOW_INPUT | \
364#define CONSOLE_VALID_OUTPUT_MODES ( ENABLE_PROCESSED_OUTPUT | ENABLE_WRAP_AT_EOL_OUTPUT )
418 *CodePage = (OutputCP ?
Console->OutputCodePage :
Console->InputCodePage);
443 Console->InputCodePage = CodePage;
VOID NTAPI ConDrvDeleteScreenBuffer(PCONSOLE_SCREEN_BUFFER Buffer)
NTSTATUS ConDrvCreateScreenBuffer(OUT PCONSOLE_SCREEN_BUFFER *Buffer, IN PCONSOLE Console, IN HANDLE ProcessHandle OPTIONAL, IN ULONG BufferType, IN PVOID ScreenBufferInfo)
#define NT_SUCCESS(StatCode)
BOOL WINAPI IsValidCodePage(UINT codepage)
#define IsListEmpty(ListHead)
#define InitializeListHead(ListHead)
CONSOLE_SCREEN_BUFFER_INFO ScreenBufferInfo
#define ASSERTMSG(msg, exp)
#define STATUS_INVALID_HANDLE
static CONSOLE_SCREEN_BUFFER_INFO ConsoleInfo
VOID WINAPI InitializeCriticalSection(OUT LPCRITICAL_SECTION lpCriticalSection)
#define TermSetCodePage(Console, CodePage)
#define RtlZeroMemory(Destination, Length)
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
_Must_inspect_result_ _In_ WDFCOLLECTION _In_ WDFOBJECT Object
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
BOOLEAN NTAPI ConDrvValidateConsoleState(IN PCONSOLE Console, IN CONSOLE_STATE ExpectedState)
VOID NTAPI ConDrvUnpause(PCONSOLE Console)
BOOLEAN NTAPI ConDrvValidateConsoleUnsafe(IN PCONSOLE Console, IN CONSOLE_STATE ExpectedState, IN BOOLEAN LockConsole)
VOID NTAPI ConDrvDeleteConsole(IN PCONSOLE Console)
NTSTATUS NTAPI ConDrvGetConsoleCP(IN PCONSOLE Console, OUT PUINT CodePage, IN BOOLEAN OutputCP)
#define CONSOLE_VALID_INPUT_MODES
NTSTATUS NTAPI ConDrvSetConsoleMode(IN PCONSOLE Console, IN PCONSOLE_IO_OBJECT Object, IN ULONG ConsoleMode)
#define CONSOLE_VALID_OUTPUT_MODES
NTSTATUS NTAPI ConDrvAttachTerminal(IN PCONSOLE Console, IN PTERMINAL Terminal)
VOID ResetTerminal(IN PCONSOLE Console)
NTSTATUS NTAPI ConDrvSetConsoleCP(IN PCONSOLE Console, IN UINT CodePage, IN BOOLEAN OutputCP)
NTSTATUS NTAPI ConDrvDetachTerminal(IN PCONSOLE Console)
NTSTATUS NTAPI ConDrvGetConsoleMode(IN PCONSOLE Console, IN PCONSOLE_IO_OBJECT Object, OUT PULONG ConsoleMode)
NTSTATUS NTAPI ConDrvInitConsole(IN OUT PCONSOLE Console, IN PCONSOLE_INFO ConsoleInfo)
VOID NTAPI ConDrvPause(PCONSOLE Console)
struct _CONSOLE_INPUT_BUFFER * PCONSOLE_INPUT_BUFFER
#define CON_SET_OUTPUT_CP(Console, CodePage)
struct _CONSOLE_SCREEN_BUFFER * PCONSOLE_SCREEN_BUFFER
void WINAPI LeaveCriticalSection(LPCRITICAL_SECTION)
void WINAPI EnterCriticalSection(LPCRITICAL_SECTION)
void WINAPI DeleteCriticalSection(PCRITICAL_SECTION)
#define CONSOLE_TEXTMODE_BUFFER