#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <windows.h>
#include <winuserk.h>
#include <conroute.h>
#include "conapi.h"
#include "ntcsrdll.h"
#include "conmsg.h"
#include <string.h>
Go to the source code of this file.
Defines | |
#define | SET_CONSOLE_HANDLE(HANDLE) ((NtCurrentPeb())->ProcessParameters->ConsoleHandle = HANDLE) |
#define | GET_CONSOLE_HANDLE ((NtCurrentPeb())->ProcessParameters->ConsoleHandle) |
#define | SET_LAST_ERROR(ERROR) (SetLastError( ERROR ) ) |
#define | SET_LAST_NT_ERROR(ERROR) (SetLastError( RtlNtStatusToDosError( ERROR ) ) ) |
#define | VALID_ACCESSES (GENERIC_READ | GENERIC_WRITE) |
#define | VALID_SHARE_ACCESSES (FILE_SHARE_READ | FILE_SHARE_WRITE) |
#define | VALID_DUP_OPTIONS (DUPLICATE_CLOSE_SOURCE | DUPLICATE_SAME_ACCESS) |
#define | CONSOLE_RECT_SIZE_X(RECT) ((RECT)->Right - (RECT)->Left + 1) |
#define | CONSOLE_RECT_SIZE_Y(RECT) ((RECT)->Bottom - (RECT)->Top + 1) |
#define | LockDll() RtlEnterCriticalSection(&DllLock) |
#define | UnlockDll() RtlLeaveCriticalSection(&DllLock) |
Functions | |
NTSTATUS | InitializeCtrlHandling (VOID) |
USHORT | GetCurrentExeName (LPWSTR Buffer, ULONG BufferLength) |
HANDLE APIENTRY | OpenConsoleWInternal (IN ULONG HandleType, IN ULONG DesiredAccess, IN BOOL InheritHandle, IN ULONG ShareMode) |
defined(BUILD_WOW64) | |
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 | WriteConsoleInternal (IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | RegisterConsoleIMEInternal (IN HWND hWndConsoleIME, IN DWORD dwConsoleIMEThreadId, IN DWORD DesktopLength, IN LPWSTR Desktop, OUT DWORD *dwConsoleThreadId) |
BOOL APIENTRY | UnregisterConsoleIMEInternal (IN DWORD dwConsoleIMEThtreadId) |
BOOL APIENTRY | GetConsoleInput (IN HANDLE hConsoleInput, OUT PINPUT_RECORD lpBuffer, IN DWORD nLength, OUT LPDWORD lpNumberOfEventsRead, IN USHORT wFlags, IN BOOLEAN Unicode) |
BOOL APIENTRY | WriteConsoleInputInternal (IN HANDLE hConsoleInput, IN CONST INPUT_RECORD *lpBuffer, IN DWORD nLength, OUT LPDWORD lpNumberOfEventsWritten, IN BOOLEAN Unicode, IN BOOLEAN Append) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | ReadConsoleOutputInternal (IN HANDLE hConsoleOutput, OUT PCHAR_INFO lpBuffer, IN COORD dwBufferSize, IN COORD dwBufferCoord, IN OUT PSMALL_RECT lpReadRegion, IN BOOLEAN Unicode) |
BOOL APIENTRY | WriteConsoleOutputInternal (IN HANDLE hConsoleOutput, IN CONST CHAR_INFO *lpBuffer, IN COORD dwBufferSize, IN COORD dwBufferCoord, IN PSMALL_RECT lpWriteRegion, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | ReadConsoleOutputString (IN HANDLE hConsoleOutput, OUT LPVOID lpString, IN DWORD nLength, IN DWORD nSize, IN DWORD fFlags, IN COORD dwReadCoord, OUT LPDWORD lpNumberOfElementsRead) |
BOOL APIENTRY | WriteConsoleOutputString (IN HANDLE hConsoleOutput, IN CONST VOID *lpString, IN DWORD nLength, IN DWORD nSize, IN DWORD fFlags, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfElementsWritten) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | FillConsoleOutput (IN HANDLE hConsoleOutput, IN WORD Element, IN DWORD nLength, IN DWORD fFlags, IN COORD dwWriteCoord, OUT LPDWORD lpNumberOfElementsWritten) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | GetConsoleKeyboardLayoutNameWorker (OUT LPSTR pszLayout, IN BOOL bAnsi) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | SetConsolePaletteInternal (IN HANDLE hConsoleOutput, IN HPALETTE hPalette, IN UINT dwUsage) |
BOOL APIENTRY | ScrollConsoleScreenBufferInternal (IN HANDLE hConsoleOutput, IN CONST SMALL_RECT *lpScrollRectangle, IN CONST SMALL_RECT *lpClipRectangle, IN COORD dwDestinationOrigin, IN CONST CHAR_INFO *lpFill, IN BOOLEAN Unicode) |
NTSTATUS APIENTRY | SetConsoleOutputCPInternal (IN UINT wCodePageID) |
VOID APIENTRY | SetLastConsoleEventActiveInternal (VOID) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | ConnectConsoleInternal (IN PWSTR pObjectDirectory, IN OUT PCONSOLE_API_CONNECTINFO pConnectInfo, OUT PBOOLEAN pServerProcess) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | AllocConsoleInternal (IN LPWSTR lpTitle, IN DWORD dwTitleLength, IN LPWSTR lpDesktop, IN DWORD dwDesktopLength, IN LPWSTR lpCurDir, IN DWORD dwCurDirLength, IN LPWSTR AppName, IN DWORD dwAppNameLength, IN LPTHREAD_START_ROUTINE CtrlRoutine, IN LPTHREAD_START_ROUTINE PropRoutine, IN OUT PCONSOLE_INFO pConsoleInfo) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | FreeConsoleInternal (VOID) |
defined(BUILD_WOW64) | |
BOOL WINAPI | GetConsoleLangId (OUT LANGID *lpLangId) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | AddConsoleAliasInternal (IN LPVOID Source, IN UINT SourceLength, IN LPVOID Target, IN UINT TargetLength, IN LPVOID ExeName, IN BOOLEAN Unicode) |
DWORD APIENTRY | GetConsoleAliasInternal (IN LPVOID Source, IN UINT SourceLength, OUT LPVOID TargetBuffer, IN UINT TargetBufferLength, IN LPVOID ExeName, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
DWORD APIENTRY | GetConsoleAliasesLengthInternal (IN LPVOID ExeName, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
DWORD APIENTRY | GetConsoleAliasExesLengthInternal (IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
DWORD APIENTRY | GetConsoleAliasesInternal (OUT LPVOID AliasBuffer, IN DWORD AliasBufferLength, IN LPVOID ExeName, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
DWORD APIENTRY | GetConsoleAliasExesInternal (OUT LPVOID ExeNameBuffer, IN DWORD ExeNameBufferLength, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
VOID APIENTRY | ExpungeConsoleCommandHistoryInternal (IN LPVOID ExeName, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | SetConsoleNumberOfCommandsInternal (IN DWORD Number, IN LPVOID ExeName, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
DWORD APIENTRY | GetConsoleCommandHistoryLengthInternal (IN LPVOID ExeName, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
DWORD APIENTRY | GetConsoleCommandHistoryInternal (OUT LPVOID Commands, IN DWORD CommandBufferLength, IN LPVOID ExeName, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
DWORD APIENTRY | GetConsoleTitleInternal (OUT PVOID lpConsoleTitle, IN DWORD nSize, IN BOOLEAN Unicode) |
BOOL APIENTRY | SetConsoleTitleInternal (IN CONST VOID *lpConsoleTitle, IN DWORD TitleLength, IN BOOLEAN Unicode) |
defined(BUILD_WOW64) | |
VOID | SetTEBLangID (VOID) |
defined(BUILD_WOW6432) | |
Variables | |
CRITICAL_SECTION | DllLock |
|
Definition at line 58 of file condll.h. Referenced by CopyRectangle(), ReadConsoleOutputInternal(), and WriteConsoleOutputInternal(). |
|
Definition at line 59 of file condll.h. Referenced by CopyRectangle(), ReadConsoleOutputInternal(), and WriteConsoleOutputInternal(). |
|
|
Definition at line 68 of file condll.h. Referenced by AllocConsole(), CtrlRoutine(), FreeConsole(), and SetConsoleCtrlHandler(). |
|
Definition at line 46 of file condll.h. Referenced by AllocConsoleInternal(), ConDllInitialize(), ConnectConsoleInternal(), FreeConsoleInternal(), and SetUpHandles(). |
|
|
|
Definition at line 69 of file condll.h. Referenced by AllocConsole(), CtrlRoutine(), FreeConsole(), and SetConsoleCtrlHandler(). |
|
Definition at line 53 of file condll.h. Referenced by CreateConsoleScreenBuffer(), DuplicateConsoleHandle(), and OpenConsoleW(). |
|
Definition at line 56 of file condll.h. Referenced by DuplicateConsoleHandle(). |
|
Definition at line 54 of file condll.h. Referenced by CreateConsoleScreenBuffer(), and OpenConsoleW(). |
|
Definition at line 126 of file client/cmdline.c. References CONSOLE_API_MSG, _CONSOLE_ADDALIAS_MSG::ConsoleHandle, ConsolepAddAlias, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), _CONSOLE_ADDALIAS_MSG::Exe, _CONSOLE_ADDALIAS_MSG::ExeLength, FALSE, GET_CONSOLE_HANDLE, GetExeName(), NT_SUCCESS, NULL, PCONSOLE_ADDALIAS_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_ADDALIAS_MSG::Source, _CONSOLE_ADDALIAS_MSG::SourceLength, _CONSOLE_ADDALIAS_MSG::Target, _CONSOLE_ADDALIAS_MSG::TargetLength, TRUE, _CONSOLE_API_MSG::u, Unicode, _CONSOLE_ADDALIAS_MSG::Unicode, _CONSOLE_ADDALIAS_MSG::UnicodeExe, and USHORT. Referenced by AddConsoleAliasA(), and AddConsoleAliasW().
|
|
defined(BUILD_WOW64)
Definition at line 656 of file dllinit.c. References _CONSOLE_ALLOC_MSG::AppName, _CONSOLE_ALLOC_MSG::AppNameLength, BOOL, CONSOLE_INFO, _CONSOLE_ALLOC_MSG::ConsoleInfo, ConsolepAlloc, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), _CONSOLE_ALLOC_MSG::CtrlRoutine, CtrlRoutine, _CONSOLE_ALLOC_MSG::CurDir, _CONSOLE_ALLOC_MSG::CurDirLength, _CONSOLE_ALLOC_MSG::Desktop, _CONSOLE_ALLOC_MSG::DesktopLength, FALSE, INITIALIZATION_FAILED, INITIALIZATION_SUCCEEDED, NT_SUCCESS, NtClose(), NTSTATUS(), NtWaitForMultipleObjects(), NULL, NUMBER_OF_INITIALIZATION_EVENTS, _CONSOLE_ALLOC_MSG::PropRoutine, PropRoutine(), SET_CONSOLE_HANDLE, SET_LAST_ERROR, SET_LAST_NT_ERROR, Status, _CONSOLE_ALLOC_MSG::Title, _CONSOLE_ALLOC_MSG::TitleLength, TRUE, and _CONSOLE_API_MSG::u. Referenced by AllocConsole().
|
|
defined(BUILD_WOW64)
Definition at line 373 of file dllinit.c. References CsrClientConnectToServer(), FALSE, INITIALIZATION_FAILED, INITIALIZATION_SUCCEEDED, NT_SUCCESS, NtClose(), NTSTATUS(), NtWaitForMultipleObjects(), NULL, NUMBER_OF_INITIALIZATION_EVENTS, SET_CONSOLE_HANDLE, SET_LAST_NT_ERROR, Status, and TRUE. Referenced by ConDllInitialize().
|
|
|
defined(BUILD_WOW64)
Definition at line 1448 of file iostubs.c. References _CONSOLE_FILLCONSOLEOUTPUT_MSG::ConsoleHandle, ConsolepFillConsoleOutput, CsrClientCallServer(), _CONSOLE_FILLCONSOLEOUTPUT_MSG::Element, _CONSOLE_FILLCONSOLEOUTPUT_MSG::ElementType, EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, _CONSOLE_FILLCONSOLEOUTPUT_MSG::Length, NT_SUCCESS, NULL, _CONSOLE_FILLCONSOLEOUTPUT_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, _CONSOLE_API_MSG::u, and _CONSOLE_FILLCONSOLEOUTPUT_MSG::WriteCoord. Referenced by FillConsoleOutputAttribute(), FillConsoleOutputCharacterA(), and FillConsoleOutputCharacterW().
|
|
defined(BUILD_WOW64)
Definition at line 922 of file dllinit.c. References _CONSOLE_FREE_MSG::ConsoleHandle, ConsolepFree, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, SET_CONSOLE_HANDLE, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u. Referenced by FreeConsole().
|
|
defined(BUILD_WOW64)
Definition at line 550 of file client/cmdline.c. References _CONSOLE_GETALIASES_MSG::AliasesBuffer, _CONSOLE_GETALIASES_MSG::AliasesBufferLength, _CONSOLE_GETALIASES_MSG::ConsoleHandle, ConsolepGetAliases, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, _CONSOLE_GETALIASES_MSG::Exe, _CONSOLE_GETALIASES_MSG::ExeLength, FALSE, GET_CONSOLE_HANDLE, GetExeName(), NT_SUCCESS, NULL, PCONSOLE_GETALIASES_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_API_MSG::u, _CONSOLE_GETALIASES_MSG::Unicode, Unicode, and _CONSOLE_GETALIASES_MSG::UnicodeExe. Referenced by GetConsoleAliasesA(), and GetConsoleAliasesW().
|
|
defined(BUILD_WOW64)
Definition at line 425 of file client/cmdline.c. References _CONSOLE_GETALIASESLENGTH_MSG::ConsoleHandle, ConsolepGetAliasesLength, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), _CONSOLE_GETALIASESLENGTH_MSG::Exe, _CONSOLE_GETALIASESLENGTH_MSG::ExeLength, FALSE, GET_CONSOLE_HANDLE, GetExeName(), NT_SUCCESS, NULL, PCONSOLE_GETALIASESLENGTH_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_API_MSG::u, _CONSOLE_GETALIASESLENGTH_MSG::Unicode, Unicode, and _CONSOLE_GETALIASESLENGTH_MSG::UnicodeExe. Referenced by GetConsoleAliasesLengthA(), and GetConsoleAliasesLengthW().
|
|
defined(BUILD_WOW64)
Definition at line 647 of file client/cmdline.c. References _CONSOLE_GETALIASEXES_MSG::AliasExesBuffer, _CONSOLE_GETALIASEXES_MSG::AliasExesBufferLength, _CONSOLE_GETALIASEXES_MSG::ConsoleHandle, ConsolepGetAliasExes, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, ExeNameBuffer, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, PCONSOLE_GETALIASEXES_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_API_MSG::u, Unicode, and _CONSOLE_GETALIASEXES_MSG::Unicode. Referenced by GetConsoleAliasExesA(), and GetConsoleAliasExesW().
|
|
defined(BUILD_WOW64)
Definition at line 500 of file client/cmdline.c. References _CONSOLE_GETALIASEXESLENGTH_MSG::ConsoleHandle, ConsolepGetAliasExesLength, CsrClientCallServer(), GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, PCONSOLE_GETALIASEXESLENGTH_MSG, SET_LAST_NT_ERROR, _CONSOLE_API_MSG::u, Unicode, and _CONSOLE_GETALIASEXESLENGTH_MSG::Unicode. Referenced by GetConsoleAliasExesLengthA(), and GetConsoleAliasExesLengthW().
|
|
defined(BUILD_WOW64)
Definition at line 280 of file client/cmdline.c. References _CONSOLE_GETALIAS_MSG::ConsoleHandle, ConsolepGetAlias, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), _CONSOLE_GETALIAS_MSG::Exe, _CONSOLE_GETALIAS_MSG::ExeLength, FALSE, GET_CONSOLE_HANDLE, GetExeName(), NT_SUCCESS, NULL, PCONSOLE_GETALIAS_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_GETALIAS_MSG::Source, _CONSOLE_GETALIAS_MSG::SourceLength, _CONSOLE_GETALIAS_MSG::Target, _CONSOLE_GETALIAS_MSG::TargetLength, _CONSOLE_API_MSG::u, Unicode, _CONSOLE_GETALIAS_MSG::Unicode, _CONSOLE_GETALIAS_MSG::UnicodeExe, and USHORT. Referenced by GetConsoleAliasA(), and GetConsoleAliasW().
|
|
defined(BUILD_WOW64)
Definition at line 945 of file client/cmdline.c. References _CONSOLE_GETCOMMANDHISTORY_MSG::CommandBuffer, _CONSOLE_GETCOMMANDHISTORY_MSG::CommandBufferLength, Commands, _CONSOLE_GETCOMMANDHISTORY_MSG::ConsoleHandle, ConsolepGetCommandHistory, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, _CONSOLE_GETCOMMANDHISTORY_MSG::Exe, _CONSOLE_GETCOMMANDHISTORY_MSG::ExeLength, GET_CONSOLE_HANDLE, GetExeName(), NT_SUCCESS, NULL, PCONSOLE_GETCOMMANDHISTORY_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_API_MSG::u, _CONSOLE_GETCOMMANDHISTORY_MSG::Unicode, Unicode, and _CONSOLE_GETCOMMANDHISTORY_MSG::UnicodeExe. Referenced by GetConsoleCommandHistoryA(), and GetConsoleCommandHistoryW().
|
|
|
Definition at line 29 of file iostubs.c. References _CONSOLE_GETCONSOLEINPUT_MSG::BufPtr, CONSOLE_HANDLE, _CONSOLE_GETCONSOLEINPUT_MSG::ConsoleHandle, ConsolepGetConsoleInput, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, FALSE, _CONSOLE_GETCONSOLEINPUT_MSG::Flags, GET_CONSOLE_HANDLE, INPUT_RECORD_BUFFER_SIZE, _CONSOLE_GETCONSOLEINPUT_MSG::InputHandle, NT_SUCCESS, NULL, _CONSOLE_GETCONSOLEINPUT_MSG::NumRecords, _CONSOLE_GETCONSOLEINPUT_MSG::Record, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_API_MSG::u, _CONSOLE_GETCONSOLEINPUT_MSG::Unicode, and Unicode. Referenced by PeekConsoleInputA(), PeekConsoleInputW(), ReadConsoleInputA(), ReadConsoleInputExA(), ReadConsoleInputExW(), and ReadConsoleInputW().
|
|
defined(BUILD_WOW64) ++ Parameters: pszLayout - address of buffer of least 9 characters bAnsi - TRUE want ANSI (8-bit) chars FALSE want Unicode (16-bit) chars Return Value: TRUE - success FALSE - failure -- Definition at line 1543 of file ntcon/client/getset.c. References _CONSOLE_GETKEYBOARDLAYOUTNAME_MSG::bAnsi, _CONSOLE_GETKEYBOARDLAYOUTNAME_MSG::ConsoleHandle, ConsolepGetKeyboardLayoutName, CsrClientCallServer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, SET_LAST_NT_ERROR, TRUE, and _CONSOLE_API_MSG::u. Referenced by GetConsoleKeyboardLayoutNameA(), and GetConsoleKeyboardLayoutNameW().
|
|
defined(BUILD_WOW64)
Definition at line 296 of file dllinit.c.
|
|
Definition at line 1070 of file client/cmdline.c. References _CONSOLE_GETTITLE_MSG::ConsoleHandle, ConsolepGetTitle, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, PCONSOLE_GETTITLE_MSG, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_GETTITLE_MSG::Title, _CONSOLE_GETTITLE_MSG::TitleLength, _CONSOLE_API_MSG::u, Unicode, and _CONSOLE_GETTITLE_MSG::Unicode. Referenced by GetConsoleTitleA(), and GetConsoleTitleW().
|
|
Referenced by ReadConsoleA(), and ReadConsoleW(). |
|
Definition at line 68 of file ctrlc.c. References AllocatedHandlerListLength, DefaultHandler(), HandlerList, HandlerListLength, INITIAL_LIST_SIZE, and SingleHandler. Referenced by AllocConsole(), and ConDllInitialize().
|
|
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().
|
|
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, _CONSOLE_READCONSOLE_MSG::ExeNameLength, 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, _CONSOLE_READCONSOLE_MSG::Unicode, and Unicode. Referenced by ReadConsoleA(), and ReadConsoleW().
|
|
Definition at line 585 of file iostubs.c. References _CONSOLE_READCONSOLEOUTPUT_MSG::BufPtr, _CONSOLE_READCONSOLEOUTPUT_MSG::Char, _CONSOLE_READCONSOLEOUTPUT_MSG::CharRegion, CONSOLE_RECT_SIZE_X, CONSOLE_RECT_SIZE_Y, _CONSOLE_READCONSOLEOUTPUT_MSG::ConsoleHandle, ConsolepReadConsoleOutput, CopyRectangle(), CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_READCONSOLEOUTPUT_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, SHORT, TRUE, _CONSOLE_API_MSG::u, _CONSOLE_READCONSOLEOUTPUT_MSG::Unicode, and Unicode. Referenced by ReadConsoleOutputA(), and ReadConsoleOutputW().
|
|
Definition at line 974 of file iostubs.c. References _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::BufPtr, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::ConsoleHandle, ConsolepReadConsoleOutputString, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::NumRecords, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::OutputHandle, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::ReadCoord, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::String, _CONSOLE_READCONSOLEOUTPUTSTRING_MSG::StringType, and _CONSOLE_API_MSG::u. Referenced by ReadConsoleOutputAttribute(), ReadConsoleOutputCharacterA(), and ReadConsoleOutputCharacterW().
|
|
|
|
Definition at line 1036 of file ntcon/client/getset.c. References _CONSOLE_SCROLLSCREENBUFFER_MSG::Clip, _CONSOLE_SCROLLSCREENBUFFER_MSG::ClipRectangle, _CONSOLE_SCROLLSCREENBUFFER_MSG::ConsoleHandle, ConsolepScrollScreenBuffer, CsrClientCallServer(), _CONSOLE_SCROLLSCREENBUFFER_MSG::DestinationOrigin, EXCEPTION_EXECUTE_HANDLER, FALSE, _CONSOLE_SCROLLSCREENBUFFER_MSG::Fill, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_SCROLLSCREENBUFFER_MSG::OutputHandle, _CONSOLE_SCROLLSCREENBUFFER_MSG::ScrollRectangle, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, _CONSOLE_API_MSG::u, _CONSOLE_SCROLLSCREENBUFFER_MSG::Unicode, and Unicode. Referenced by ScrollConsoleScreenBufferA(), and ScrollConsoleScreenBufferW().
|
|
|
Definition at line 1469 of file ntcon/client/getset.c. References _CONSOLE_SETCP_MSG::ConsoleHandle, ConsolepSetCP, CsrClientCallServer(), GET_CONSOLE_HANDLE, NULL, _CONSOLE_SETCP_MSG::Output, TRUE, _CONSOLE_API_MSG::u, and _CONSOLE_SETCP_MSG::wCodePageID. Referenced by SetConsoleOutputCP().
|
|
Definition at line 191 of file client/private.c. References _CONSOLE_SETPALETTE_MSG::ConsoleHandle, ConsolepSetPalette, CsrClientCallServer(), _CONSOLE_SETPALETTE_MSG::dwUsage, FALSE, GET_CONSOLE_HANDLE, _CONSOLE_SETPALETTE_MSG::hPalette, NT_SUCCESS, NTSTATUS(), NULL, _CONSOLE_SETPALETTE_MSG::OutputHandle, PCONSOLE_SETPALETTE_MSG, SET_LAST_NT_ERROR, Status, TRUE, and _CONSOLE_API_MSG::u. Referenced by SetConsolePalette().
|
|
defined(BUILD_WOW64)
Definition at line 1170 of file client/cmdline.c. References _CONSOLE_SETTITLE_MSG::ConsoleHandle, ConsolepSetTitle, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, PCONSOLE_SETTITLE_MSG, SET_LAST_NT_ERROR, _CONSOLE_SETTITLE_MSG::Title, _CONSOLE_SETTITLE_MSG::TitleLength, TRUE, _CONSOLE_API_MSG::u, Unicode, and _CONSOLE_SETTITLE_MSG::Unicode. Referenced by SetConsoleTitleA(), and SetConsoleTitleW().
|
|
defined(BUILD_WOW64)
Definition at line 250 of file ctrlc.c. References _CONSOLE_NOTIFYLASTCLOSE_MSG::ConsoleHandle, ConsolepNotifyLastClose, CsrClientCallServer(), GET_CONSOLE_HANDLE, NULL, and _CONSOLE_API_MSG::u. Referenced by SetLastConsoleEventActive().
|
|
defined(BUILD_WOW6432)
Definition at line 346 of file dllinit.c. References GetConsoleLangId(). Referenced by AllocConsole(), ConDllInitialize(), and SetConsoleOutputCP().
|
|
|
|
defined(BUILD_WOW64)
Definition at line 335 of file iostubs.c. References _CONSOLE_WRITECONSOLEINPUT_MSG::Append, _CONSOLE_WRITECONSOLEINPUT_MSG::BufPtr, _CONSOLE_WRITECONSOLEINPUT_MSG::ConsoleHandle, ConsolepWriteConsoleInput, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, INPUT_RECORD_BUFFER_SIZE, _CONSOLE_WRITECONSOLEINPUT_MSG::InputHandle, NT_SUCCESS, NULL, _CONSOLE_WRITECONSOLEINPUT_MSG::NumRecords, _CONSOLE_WRITECONSOLEINPUT_MSG::Record, SET_LAST_ERROR, SET_LAST_NT_ERROR, TRUE, _CONSOLE_API_MSG::u, _CONSOLE_WRITECONSOLEINPUT_MSG::Unicode, and Unicode. Referenced by WriteConsoleInputA(), WriteConsoleInputVDMA(), WriteConsoleInputVDMW(), and WriteConsoleInputW().
|
|
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, Unicode, and _CONSOLE_WRITECONSOLE_MSG::Unicode. Referenced by WriteConsoleA(), and WriteConsoleW().
|
|
defined(BUILD_WOW64)
Definition at line 771 of file iostubs.c. References _CONSOLE_WRITECONSOLEOUTPUT_MSG::BufPtr, _CONSOLE_WRITECONSOLEOUTPUT_MSG::Char, _CONSOLE_WRITECONSOLEOUTPUT_MSG::CharRegion, CONSOLE_RECT_SIZE_X, CONSOLE_RECT_SIZE_Y, _CONSOLE_WRITECONSOLEOUTPUT_MSG::ConsoleHandle, ConsolepWriteConsoleOutput, CopyRectangle(), CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_WRITECONSOLEOUTPUT_MSG::OutputHandle, _CONSOLE_WRITECONSOLEOUTPUT_MSG::ReadVM, RtlAllocateHeap, RtlFreeHeap, SET_LAST_ERROR, SET_LAST_NT_ERROR, SHORT, TRUE, _CONSOLE_API_MSG::u, _CONSOLE_WRITECONSOLEOUTPUT_MSG::Unicode, and Unicode. Referenced by WriteConsoleOutputA(), and WriteConsoleOutputW().
|
|
defined(BUILD_WOW64)
Definition at line 1212 of file iostubs.c. References _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::BufPtr, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::ConsoleHandle, ConsolepWriteConsoleOutputString, CsrAllocateCaptureBuffer(), CsrCaptureMessageBuffer(), CsrClientCallServer(), CsrFreeCaptureBuffer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::NumRecords, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::OutputHandle, SET_LAST_ERROR, SET_LAST_NT_ERROR, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::String, _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::StringType, TRUE, _CONSOLE_API_MSG::u, and _CONSOLE_WRITECONSOLEOUTPUTSTRING_MSG::WriteCoord. Referenced by WriteConsoleOutputAttribute(), WriteConsoleOutputCharacterA(), and WriteConsoleOutputCharacterW().
|
|
Definition at line 67 of file condll.h. Referenced by ConDllInitialize(). |