#include "precomp.h"
Go to the source code of this file.
Functions | |
HANDLE APIENTRY | GetConsoleInputWaitHandle (VOID) |
HANDLE APIENTRY | OpenConsoleWInternal (IN ULONG HandleType, IN ULONG DesiredAccess, IN BOOL InheritHandle, IN ULONG ShareMode) |
defined(BUILD_WOW64) | |
HANDLE APIENTRY | OpenConsoleW (IN LPWSTR lpConsoleDevice, IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwShareMode) |
BOOL APIENTRY | ReadConsoleInternal (IN HANDLE hConsoleInput, OUT LPVOID lpBuffer, IN DWORD nNumberOfCharsToRead, OUT LPDWORD lpNumberOfCharsRead, IN OUT LPVOID lpReserved, IN BOOLEAN Unicode, IN USHORT ExeNameLength, IN LPWSTR ExeName) |
BOOL APIENTRY | ReadConsoleA (IN HANDLE hConsoleInput, OUT LPVOID lpBuffer, IN DWORD nNumberOfCharsToRead, OUT LPDWORD lpNumberOfCharsRead, IN OUT LPVOID lpReserved) |
defined(BUILD_WOW6432) | |
BOOL APIENTRY | ReadConsoleW (IN HANDLE hConsoleInput, OUT LPVOID lpBuffer, IN DWORD nNumberOfCharsToRead, OUT LPDWORD lpNumberOfCharsRead, IN OUT LPVOID lpReserved) |
BOOL APIENTRY | WriteConsoleInternal (IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | WriteConsoleA (IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, IN OUT LPVOID lpReserved) |
defined(BUILD_WOW6432) | |
BOOL APIENTRY | WriteConsoleW (IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, IN OUT LPVOID lpReserved) |
BOOL APIENTRY | CloseConsoleHandle (IN HANDLE hConsole) |
defined(BUILD_WOW64) | |
HANDLE APIENTRY | DuplicateConsoleHandle (IN HANDLE hSourceHandle, IN DWORD dwDesiredAccess, IN BOOL bInheritHandle, IN DWORD dwOptions) |
BOOL APIENTRY | GetConsoleHandleInformation (IN HANDLE hObject, OUT LPDWORD lpdwFlags) |
BOOL APIENTRY | SetConsoleHandleInformation (IN HANDLE hObject, IN DWORD dwMask, IN DWORD dwFlags) |
BOOL APIENTRY | VerifyConsoleIoHandle (IN HANDLE hIoHandle) |
Variables | |
HANDLE | InputWaitHandle = (HANDLE)-1 |
|
defined(BUILD_WOW64)
Definition at line 553 of file client/stream.c. References _CONSOLE_CLOSEHANDLE_MSG::ConsoleHandle, ConsolepCloseHandle, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, _CONSOLE_CLOSEHANDLE_MSG::Handle, NT_SUCCESS, NULL, PCONSOLE_CLOSEHANDLE_MSG, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 597 of file client/stream.c. References _CONSOLE_DUPHANDLE_MSG::ConsoleHandle, ConsolepDupHandle, CsrClientCallServer(), _CONSOLE_DUPHANDLE_MSG::DesiredAccess, GET_CONSOLE_HANDLE, _CONSOLE_DUPHANDLE_MSG::InheritHandle, INVALID_HANDLE_VALUE, NT_SUCCESS, NULL, _CONSOLE_DUPHANDLE_MSG::Options, PCONSOLE_DUPHANDLE_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_DUPHANDLE_MSG::SourceHandle, _CONSOLE_API_MSG::u, VALID_ACCESSES, and VALID_DUP_OPTIONS.
|
|
Definition at line 680 of file client/stream.c. References _CONSOLE_GETHANDLEINFORMATION_MSG::ConsoleHandle, ConsolepGetHandleInformation, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, _CONSOLE_GETHANDLEINFORMATION_MSG::Handle, NT_SUCCESS, NULL, PCONSOLE_GETHANDLEINFORMATION_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 33 of file client/stream.c. References InputWaitHandle.
|
|
Definition at line 98 of file client/stream.c. References CONSOLE_INPUT_HANDLE, CONSOLE_OUTPUT_HANDLE, EXCEPTION_EXECUTE_HANDLER, INVALID_HANDLE_VALUE, OpenConsoleWInternal(), SET_LAST_ERROR, VALID_ACCESSES, and VALID_SHARE_ACCESSES.
|
|
defined(BUILD_WOW64)
Definition at line 44 of file client/stream.c. References _CONSOLE_OPENCONSOLE_MSG::ConsoleHandle, ConsolepOpenConsole, CsrClientCallServer(), _CONSOLE_OPENCONSOLE_MSG::DesiredAccess, GET_CONSOLE_HANDLE, _CONSOLE_OPENCONSOLE_MSG::HandleType, _CONSOLE_OPENCONSOLE_MSG::InheritHandle, INVALID_HANDLE_VALUE, NT_SUCCESS, NULL, PCONSOLE_OPENCONSOLE_MSG, SET_LAST_NT_ERROR, _CONSOLE_OPENCONSOLE_MSG::ShareMode, and _CONSOLE_API_MSG::u. Referenced by OpenConsoleW().
|
|
defined(BUILD_WOW6432)
Definition at line 349 of file client/stream.c. References BUFFER_SIZE, ExeNameLength, FALSE, GetCurrentExeName(), NULL, ReadConsoleInternal(), and USHORT.
|
|
Definition at line 191 of file client/stream.c. References _CONSOLE_READCONSOLE_MSG::Buffer, BUFFER_SIZE, _CONSOLE_READCONSOLE_MSG::BufPtr, _CONSOLE_READCONSOLE_MSG::CaptureBufferSize, _CONSOLE_READCONSOLE_MSG::ConsoleHandle, ConsolepReadConsole, _CONSOLE_READCONSOLE_MSG::ControlKeyState, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), _CONSOLE_READCONSOLE_MSG::CtrlWakeupMask, EXCEPTION_EXECUTE_HANDLER, ExeNameLength, _CONSOLE_READCONSOLE_MSG::ExeNameLength, FALSE, GET_CONSOLE_HANDLE, _CONSOLE_READCONSOLE_MSG::InitialNumBytes, _CONSOLE_READCONSOLE_MSG::InputHandle, NT_SUCCESS, NTSTATUS(), NtYieldExecution(), NULL, _CONSOLE_READCONSOLE_MSG::NumBytes, PCONSOLE_READCONSOLE_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, Status, TRUE, _CONSOLE_API_MSG::u, Unicode, and _CONSOLE_READCONSOLE_MSG::Unicode. Referenced by ReadConsoleA(), and ReadConsoleW().
|
|
Definition at line 377 of file client/stream.c. References BUFFER_SIZE, ExeNameLength, GetCurrentExeName(), ReadConsoleInternal(), TRUE, and USHORT.
|
|
Definition at line 734 of file client/stream.c. References _CONSOLE_SETHANDLEINFORMATION_MSG::ConsoleHandle, ConsolepSetHandleInformation, CsrClientCallServer(), dwFlags, FALSE, _CONSOLE_SETHANDLEINFORMATION_MSG::Flags, GET_CONSOLE_HANDLE, _CONSOLE_SETHANDLEINFORMATION_MSG::Handle, _CONSOLE_SETHANDLEINFORMATION_MSG::Mask, NT_SUCCESS, NULL, PCONSOLE_SETHANDLEINFORMATION_MSG, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 787 of file client/stream.c. References _CONSOLE_VERIFYIOHANDLE_MSG::ConsoleHandle, ConsolepVerifyIoHandle, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, _CONSOLE_VERIFYIOHANDLE_MSG::Handle, NT_SUCCESS, NULL, PCONSOLE_VERIFYIOHANDLE_MSG, SET_LAST_NT_ERROR, and _CONSOLE_API_MSG::u.
|
|
defined(BUILD_WOW6432)
Definition at line 511 of file client/stream.c. References FALSE, and WriteConsoleInternal(). Referenced by PrintPair().
|
|
defined(BUILD_WOW64)
Definition at line 408 of file client/stream.c. References _CONSOLE_WRITECONSOLE_MSG::Buffer, BUFFER_SIZE, _CONSOLE_WRITECONSOLE_MSG::BufferInMessage, _CONSOLE_WRITECONSOLE_MSG::BufPtr, _CONSOLE_WRITECONSOLE_MSG::ConsoleHandle, ConsolepWriteConsole, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_WRITECONSOLE_MSG::NumBytes, _CONSOLE_WRITECONSOLE_MSG::OutputHandle, PCONSOLE_WRITECONSOLE_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, _CONSOLE_API_MSG::u, _CONSOLE_WRITECONSOLE_MSG::Unicode, and Unicode. Referenced by WriteConsoleA(), and WriteConsoleW().
|
|
Definition at line 530 of file client/stream.c. References TRUE, and WriteConsoleInternal(). Referenced by main(), and PrintPair().
|
|
Definition at line 29 of file client/stream.c. Referenced by AllocConsole(), ConDllInitialize(), FreeConsole(), and GetConsoleInputWaitHandle(). |