#include "precomp.h"
Go to the source code of this file.
Functions | |
NTSTATUS | TranslateInputToOem (IN PCONSOLE_INFORMATION Console, IN OUT PINPUT_RECORD InputRecords, IN ULONG NumRecords) |
NTSTATUS | TranslateInputToUnicode (IN PCONSOLE_INFORMATION Console, IN OUT PINPUT_RECORD InputRecords, IN ULONG NumRecords) |
BOOLEAN | DirectReadWaitRoutine (IN PLIST_ENTRY WaitQueue, IN PCSR_THREAD WaitingThread, IN PCSR_API_MSG WaitReplyMessage, IN PVOID WaitParameter, IN PVOID SatisfyParameter1, IN PVOID SatisfyParameter2, IN ULONG WaitFlags) |
ULONG | SrvGetConsoleInput (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvWriteConsoleInput (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
NTSTATUS | SB_TranslateOutputToOem (IN PCONSOLE_INFORMATION Console, IN OUT PCHAR_INFO OutputBuffer, IN COORD Size) |
NTSTATUS | SB_TranslateOutputToOemUnicode (IN PCONSOLE_INFORMATION Console, IN OUT PCHAR_INFO OutputBuffer, IN COORD Size) |
NTSTATUS | SB_TranslateOutputToUnicode (IN PCONSOLE_INFORMATION Console, IN OUT PCHAR_INFO OutputBuffer, IN COORD Size) |
NTSTATUS | SB_TranslateOutputToAnsiUnicode (IN PCONSOLE_INFORMATION Console, IN OUT PCHAR_INFO OutputBuffer, IN COORD Size) |
NTSTATUS | FE_TranslateOutputToAnsiUnicodeInternal (IN PCONSOLE_INFORMATION Console, IN OUT PCHAR_INFO OutputBuffer, IN COORD Size, IN OUT PCHAR_INFO OutputBufferR, IN BOOL fRealUnicodeToFalseUnicode) |
NTSTATUS | FE_TranslateOutputToAnsiUnicode (IN PCONSOLE_INFORMATION Console, IN OUT PCHAR_INFO OutputBuffer, IN COORD Size, IN OUT PCHAR_INFO OutputBufferR) |
NTSTATUS | TranslateOutputToPaddingUnicode (IN PCONSOLE_INFORMATION Console, IN OUT PCHAR_INFO OutputBuffer, IN COORD Size, IN OUT PCHAR_INFO OutputBufferR) |
ULONG | SrvReadConsoleOutput (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvWriteConsoleOutput (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvReadConsoleOutputString (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvWriteConsoleOutputString (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvFillConsoleOutput (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvCreateConsoleScreenBuffer (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
|
Definition at line 267 of file directio.c. References ASSERT, _HANDLE_DATA::Buffer, Buffer, _CONSOLE_GETCONSOLEINPUT_MSG::BufPtr, _DIRECT_READ_DATA::Console, CONSOLE_CTRL_BREAK_SEEN, CONSOLE_CTRL_C_SEEN, CONSOLE_STATUS_WAIT, ConsoleHeapFree, ConsoleLocked, DereferenceIoHandleNoCheck(), DirectReadWaitRoutine(), FALSE, FE_TranslateInputToOem(), _CONSOLE_GETCONSOLEINPUT_MSG::Flags, HANDLE_CLOSING, _DIRECT_READ_DATA::HandleIndex, INPUT_RECORD_BUFFER_SIZE, _INPUT_READ_HANDLE_DATA::InputHandleFlags, _DIRECT_READ_DATA::InputInfo, _HANDLE_DATA::InputReadData, LockReadCount, NT_SUCCESS, NTSTATUS(), NULL, _CONSOLE_GETCONSOLEINPUT_MSG::NumRecords, PDIRECT_READ_DATA, _DIRECT_READ_DATA::ProcessData, _INPUT_READ_HANDLE_DATA::ReadCount, ReadInputBuffer(), _CONSOLE_GETCONSOLEINPUT_MSG::Record, Status, TranslateInputToOem(), TRUE, _CONSOLE_GETCONSOLEINPUT_MSG::Unicode, and UnlockReadCount. Referenced by DirectReadWaitRoutine(), and SrvGetConsoleInput().
|
|
Definition at line 1174 of file directio.c. References FE_TranslateOutputToAnsiUnicodeInternal(), Size, and TRUE. Referenced by SrvWriteConsoleOutput().
|
|
Definition at line 1115 of file directio.c. References DBGCHARS, RealUnicodeToFalseUnicode(), SHORT, Size, UNICODE_DBCS_PADDING, and UNICODE_SPACE. Referenced by FE_TranslateOutputToAnsiUnicode(), and TranslateOutputToPaddingUnicode().
|
|
Definition at line 1093 of file directio.c. References DBGCHARS, RealUnicodeToFalseUnicode(), SHORT, and Size. Referenced by SrvWriteConsoleOutput().
|
|
Definition at line 801 of file directio.c. References CONSOLE_IS_DBCS_ENABLED, CONSOLE_OEMFONT_DISPLAY, DBGCHARS, SHORT, Size, UINT, USACP, WcharToChar(), and WINDOWSCP.
|
|
Definition at line 924 of file directio.c. References DBGCHARS, FalseUnicodeToRealUnicode(), SHORT, and Size.
|
|
Definition at line 976 of file directio.c. References CharToWchar(), CONSOLE_IS_DBCS_ENABLED, CONSOLE_OEMFONT_DISPLAY, DBGCHARS, SHORT, Size, UINT, USACP, and WINDOWSCP.
|
|
Definition at line 1607 of file directio.c. References AllocateIoHandle(), ApiPreamble(), ASSERT, _SCREEN_INFORMATION::Attributes, _HANDLE_DATA::Buffer, BYTE, CON_FACENAME, CON_FAMILY, CON_FONTCODEPAGE, CON_FONTSIZE, CON_FONTWEIGHT, CONSOLE_GRAPHICS_BUFFER, CONSOLE_GRAPHICS_OUTPUT_HANDLE, CONSOLE_INHERITABLE, CONSOLE_OUTPUT_HANDLE, CONSOLE_PERPROCESSDATA, CONSOLE_WINDOW_SIZE_X, CONSOLE_WINDOW_SIZE_Y, ConsoleAddShare(), _CONSOLE_CREATESCREENBUFFER_MSG::ConsoleHandle, CreateScreenBuffer(), _CONSOLE_INFORMATION::CurrentScreenBuffer, CURSOR_SMALL_SIZE, DBGOUTPUT, DereferenceIoHandleNoCheck(), _CONSOLE_CREATESCREENBUFFER_MSG::DesiredAccess, FindCreateFont(), _CONSOLE_CREATESCREENBUFFER_MSG::Flags, FreeIoHandle(), FreeScreenBuffer(), _CONSOLE_CREATESCREENBUFFER_MSG::GraphicsBufferInfo, _CONSOLE_CREATESCREENBUFFER_MSG::Handle, Handle, _CONSOLE_CREATESCREENBUFFER_MSG::hMutex, INDEX_TO_HANDLE, _CONSOLE_CREATESCREENBUFFER_MSG::InheritHandle, InitializeOutputHandle(), InsertScreenBuffer(), _CONSOLE_CREATESCREENBUFFER_MSG::lpBitmap, NT_SUCCESS, NTSTATUS(), NULL, _SCREEN_INFORMATION::ShareAccess, _CONSOLE_CREATESCREENBUFFER_MSG::ShareMode, SHORT, Status, and UnlockConsole().
|
|
|
Definition at line 556 of file directio.c. References ApiPreamble(), _HANDLE_DATA::Buffer, Buffer, _CONSOLE_GETCONSOLEINPUT_MSG::BufPtr, _DIRECT_READ_DATA::Console, CONSOLE_INPUT_HANDLE, CONSOLE_PERPROCESSDATA, CONSOLE_STATUS_WAIT, _CONSOLE_GETCONSOLEINPUT_MSG::ConsoleHandle, DereferenceIoHandle(), DIRECT_READ_DATA, DirectReadWaitRoutine(), FALSE, _CONSOLE_GETCONSOLEINPUT_MSG::Flags, HANDLE_TO_INDEX, _DIRECT_READ_DATA::HandleIndex, INPUT_RECORD_BUFFER_SIZE, _CONSOLE_GETCONSOLEINPUT_MSG::InputHandle, _DIRECT_READ_DATA::InputInfo, NT_SUCCESS, NTSTATUS(), NULL, _CONSOLE_GETCONSOLEINPUT_MSG::NumRecords, _DIRECT_READ_DATA::ProcessData, ReadInputBuffer(), _CONSOLE_GETCONSOLEINPUT_MSG::Record, Status, TranslateInputToOem(), TRUE, _CONSOLE_GETCONSOLEINPUT_MSG::Unicode, and UnlockConsole().
|
|
Definition at line 1207 of file directio.c. References ApiPreamble(), _HANDLE_DATA::Buffer, Buffer, BufferSize, _CONSOLE_READCONSOLEOUTPUT_MSG::BufPtr, _CONSOLE_READCONSOLEOUTPUT_MSG::Char, _CONSOLE_READCONSOLEOUTPUT_MSG::CharRegion, CONSOLE_OEMFONT_DISPLAY, CONSOLE_OUTPUT_HANDLE, CONSOLE_PERPROCESSDATA, _CONSOLE_READCONSOLEOUTPUT_MSG::ConsoleHandle, _CONSOLE_INFORMATION::CurrentScreenBuffer, DBGOUTPUT, DereferenceIoHandle(), _SCREEN_INFORMATION::Flags, _CONSOLE_INFORMATION::FullScreenFlags, NT_SUCCESS, NTSTATUS(), _CONSOLE_READCONSOLEOUTPUT_MSG::OutputHandle, ReadScreenBuffer(), SHORT, Status, TranslateOutputToOem(), TranslateOutputToOemUnicode(), TRUE, _CONSOLE_READCONSOLEOUTPUT_MSG::Unicode, UnlockConsole(), and USHORT.
|
|
Definition at line 1448 of file directio.c. References ApiPreamble(), _HANDLE_DATA::Buffer, Buffer, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::BufPtr, CHAR, CONSOLE_ASCII, CONSOLE_OUTPUT_HANDLE, CONSOLE_PERPROCESSDATA, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::ConsoleHandle, DereferenceIoHandle(), NT_SUCCESS, NTSTATUS(), _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::NumRecords, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::OutputHandle, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::ReadCoord, ReadOutputString(), Status, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::String, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::StringType, and UnlockConsole().
|
|
Definition at line 730 of file directio.c. References ApiPreamble(), _CONSOLE_WRITECONSOLEINPUT_MSG::Append, _HANDLE_DATA::Buffer, Buffer, _CONSOLE_WRITECONSOLEINPUT_MSG::BufPtr, CONSOLE_INPUT_HANDLE, CONSOLE_PERPROCESSDATA, _CONSOLE_WRITECONSOLEINPUT_MSG::ConsoleHandle, DereferenceIoHandle(), INPUT_RECORD_BUFFER_SIZE, _CONSOLE_WRITECONSOLEINPUT_MSG::InputHandle, NT_SUCCESS, NTSTATUS(), _CONSOLE_WRITECONSOLEINPUT_MSG::NumRecords, PrependInputBuffer(), _CONSOLE_WRITECONSOLEINPUT_MSG::Record, Status, TranslateInputToUnicode(), _CONSOLE_WRITECONSOLEINPUT_MSG::Unicode, UnlockConsole(), and WriteInputBuffer().
|
|
Definition at line 1284 of file directio.c. References ApiPreamble(), _HANDLE_DATA::Buffer, Buffer, _SCREEN_INFORMATION::BufferInfo, BufferSize, _CONSOLE_WRITECONSOLEOUTPUT_MSG::BufPtr, BYTE, _CONSOLE_WRITECONSOLEOUTPUT_MSG::Char, _CONSOLE_WRITECONSOLEOUTPUT_MSG::CharRegion, CONSOLE_CLIENTPROCESSHANDLE, CONSOLE_OEMFONT_DISPLAY, CONSOLE_OUTPUT_HANDLE, CONSOLE_PERPROCESSDATA, _CONSOLE_WRITECONSOLEOUTPUT_MSG::ConsoleHandle, ConsoleHeapAlloc, ConsoleHeapFree, _CONSOLE_INFORMATION::CurrentScreenBuffer, DBGOUTPUT, DereferenceIoHandle(), FE_TranslateOutputToAnsiUnicode(), _CONSOLE_INFORMATION::Flags, _SCREEN_INFORMATION::Flags, _CONSOLE_INFORMATION::FullScreenFlags, _CONSOLE_INFORMATION::InputBuffer, _INPUT_INFORMATION::InputMode, MAKE_TAG, NT_SUCCESS, NtReadVirtualMemory(), NTSTATUS(), NULL, _CONSOLE_WRITECONSOLEOUTPUT_MSG::OutputHandle, _CONSOLE_WRITECONSOLEOUTPUT_MSG::ReadVM, SB_TranslateOutputToAnsiUnicode(), SHORT, Status, TEXT_VALID_HINT, TMP_TAG, TranslateOutputToAnsiUnicode(), TranslateOutputToUnicode, _CONSOLE_WRITECONSOLEOUTPUT_MSG::Unicode, UnlockConsole(), USHORT, WriteScreenBuffer(), and WriteToScreen.
|
|
Definition at line 1508 of file directio.c. References ApiPreamble(), _HANDLE_DATA::Buffer, Buffer, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::BufPtr, CHAR, CONSOLE_ASCII, CONSOLE_OUTPUT_HANDLE, CONSOLE_PERPROCESSDATA, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::ConsoleHandle, DereferenceIoHandle(), NT_SUCCESS, NTSTATUS(), NULL, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::NumRecords, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::OutputHandle, Status, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::String, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::StringType, UnlockConsole(), _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::WriteCoord, and WriteOutputString.
|
|
Definition at line 45 of file directio.c. References DBGCHARS, and WcharToChar().
|
|
Definition at line 165 of file directio.c. References CharToWchar(), and DBGCHARS.
|
|
Definition at line 1191 of file directio.c. References FALSE, FE_TranslateOutputToAnsiUnicodeInternal(), and Size.
|