#include "precomp.h"
#include <cpl.h>
Go to the source code of this file.
Defines | |
#define | DEFAULT_WINDOW_TITLE (L"Command Prompt") |
#define | MAX_SESSION_PATH 256 |
#define | SESSION_ROOT L"\\Sessions" |
Functions | |
DWORD | CtrlRoutine (IN LPVOID lpThreadParameter) |
DWORD | PropRoutine (IN LPVOID lpThreadParameter) |
VOID | InitExeName (VOID) |
BOOLEAN | ConsoleApp (VOID) |
VOID | SetUpAppName (IN OUT LPDWORD CurDirLength, OUT LPWSTR CurDir, IN OUT LPDWORD AppNameLength, OUT LPWSTR AppName) |
ULONG | ParseReserved (WCHAR *pchReserved, WCHAR *pchFind) |
VOID | SetUpConsoleInfo (IN BOOL DllInit, OUT LPDWORD TitleLength, OUT LPWSTR Title OPTIONAL, OUT LPDWORD DesktopLength, OUT LPWSTR *Desktop OPTIONAL, OUT PCONSOLE_INFO ConsoleInfo) |
VOID | SetUpHandles (IN PCONSOLE_INFO ConsoleInfo) |
BOOL WINAPI | GetConsoleLangId (OUT LANGID *lpLangId) |
defined(BUILD_WOW64) | |
VOID | SetTEBLangID (VOID) |
defined(BUILD_WOW6432) | |
BOOL APIENTRY | ConnectConsoleInternal (IN PWSTR pObjectDirectory, IN OUT PCONSOLE_API_CONNECTINFO pConnectInfo, OUT PBOOLEAN pServerProcess) |
defined(BUILD_WOW64) | |
BOOLEAN | ConDllInitialize (IN PVOID DllHandle, IN ULONG Reason, IN PCONTEXT Context OPTIONAL) |
defined(BUILD_WOW6432) | |
BOOL APIENTRY | AllocConsoleInternal (IN LPWSTR lpTitle, IN DWORD dwTitleLength, IN LPWSTR lpDesktop, IN DWORD dwDesktopLength, IN LPWSTR lpCurDir, IN DWORD dwCurDirLength, IN LPWSTR lpAppName, IN DWORD dwAppNameLength, IN LPTHREAD_START_ROUTINE CtrlRoutine, IN LPTHREAD_START_ROUTINE PropRoutine, IN OUT PCONSOLE_INFO pConsoleInfo) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | AllocConsole (VOID) |
defined(BUILD_WOW6432) | |
BOOL APIENTRY | FreeConsoleInternal (VOID) |
defined(BUILD_WOW64) | |
BOOL APIENTRY | FreeConsole (VOID) |
defined(BUILD_WOW6432) | |
Variables | |
HANDLE | InputWaitHandle |
WCHAR | ExeNameBuffer [] |
USHORT | ExeNameLength |
WCHAR | StartDirBuffer [] |
USHORT | StartDirLength |
|
Definition at line 28 of file dllinit.c. Referenced by AllocConsole(), and SetUpConsoleInfo(). |
|
Definition at line 56 of file dllinit.c. Referenced by CleanupSessionObjectDirectories(), ConDllInitialize(), InitiateWin32kCleanup(), NotificationThread(), NtUserCreateWindowStation(), RawInputThread(), UserClientDllInitialize(), and xxxCreateWindowStation(). |
|
Definition at line 57 of file dllinit.c. Referenced by CleanupSessionObjectDirectories(), ConDllInitialize(), NotificationThread(), UserClientDllInitialize(), and UserInitialize(). |
|
defined(BUILD_WOW6432)
Definition at line 803 of file dllinit.c. References AllocConsoleInternal(), BOOL, CtrlRoutine, DEFAULT_WINDOW_TITLE, DWORD, FALSE, GET_CONSOLE_HANDLE, InitExeName(), InitializeCtrlHandling(), _CONSOLE_INFO::InputWaitHandle, InputWaitHandle, LockDll, MAX_APP_NAME_LENGTH, MAX_PATH, MAX_TITLE_LENGTH, min, NULL, PropRoutine(), SetTEBLangID(), SetUpAppName(), SetUpConsoleInfo(), SetUpHandles(), Status, TRUE, UnlockDll, and USHORT. Referenced by main().
|
|
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(), CtrlRoutine, _CONSOLE_ALLOC_MSG::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, PropRoutine(), _CONSOLE_ALLOC_MSG::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_WOW6432)
Definition at line 470 of file dllinit.c. References _CONSOLE_API_CONNECTINFO::AppName, _CONSOLE_API_CONNECTINFO::AppNameLength, BOOL, ConnectConsoleInternal(), ConsoleApp(), _CONSOLE_API_CONNECTINFO::ConsoleApp, _CONSOLE_INFO::ConsoleHandle, ConsoleIMERoutine, _CONSOLE_API_CONNECTINFO::ConsoleInfo, CtrlRoutine, _CONSOLE_API_CONNECTINFO::CtrlRoutine, _CONSOLE_API_CONNECTINFO::CurDir, _CONSOLE_API_CONNECTINFO::CurDirLength, _CONSOLE_API_CONNECTINFO::Desktop, _CONSOLE_API_CONNECTINFO::DesktopLength, DllLock, FALSE, GET_CONSOLE_HANDLE, InitExeName(), InitializeCtrlHandling(), _CONSOLE_INFO::InputWaitHandle, InputWaitHandle, L, MAX_SESSION_PATH, NT_SUCCESS, NTSTATUS(), NULL, PropRoutine(), _CONSOLE_API_CONNECTINFO::PropRoutine, RtlInitializeCriticalSection(), SESSION_ROOT, SET_CONSOLE_HANDLE, SetTEBLangID(), SetUpAppName(), SetUpConsoleInfo(), SetUpHandles(), Status, _CONSOLE_API_CONNECTINFO::Title, _CONSOLE_API_CONNECTINFO::TitleLength, TRUE, and _CONSOLE_API_CONNECTINFO::WindowVisible.
|
|
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().
|
|
Definition at line 63 of file dllinit.c. References FALSE, NULL, RtlImageNtHeader(), and TRUE. Referenced by ConDllInitialize().
|
|
Definition at line 93 of file ctrlc.c. References ASSERT, DefaultHandler(), DWORD, EXCEPTION_EXECUTE_HANDLER, HandlerList, HandlerListLength, IGNORE_CTRL_C, LastConsoleEventActive, LockDll, NULL, NUMBER_OF_CTRL_EVENTS, RtlRaiseException(), SYSTEM_CLOSE_EVENT, and UnlockDll.
|
|
defined(BUILD_WOW6432)
Definition at line 979 of file dllinit.c. References BOOL, FALSE, FreeConsoleInternal(), GET_CONSOLE_HANDLE, InputWaitHandle, LockDll, NULL, SET_LAST_ERROR, TRUE, and UnlockDll. Referenced by main().
|
|
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 296 of file dllinit.c. References _CONSOLE_LANGID_MSG::ConsoleHandle, ConsolepGetLangId, CsrClientCallServer(), EXCEPTION_EXECUTE_HANDLER, FALSE, GET_CONSOLE_HANDLE, NT_SUCCESS, NULL, TRUE, and _CONSOLE_API_MSG::u.
|
|
Definition at line 39 of file client/cmdline.c. References CONSOLE_NAME_PATH_TERMINATOR, ExeNameBuffer, ExeNameCriticalSection, ExeNameInitialized, ExeNameLength, RtlInitializeCriticalSection(), StartDirBuffer, StartDirLength, and TRUE. Referenced by AllocConsole(), and ConDllInitialize().
|
|
Definition at line 111 of file dllinit.c. References NULL, RtlInitUnicodeString(), and RtlUnicodeStringToInteger().
|
|
Definition at line 1019 of file dllinit.c. References BOOL, FALSE, L, NTSTATUS(), NULL, Status, and TRUE. Referenced by AllocConsole(), AllocConsoleInternal(), and ConDllInitialize().
|
|
defined(BUILD_WOW6432)
Definition at line 346 of file dllinit.c. References GetConsoleLangId(). Referenced by AllocConsole(), ConDllInitialize(), and SetConsoleOutputCP().
|
|
Definition at line 89 of file dllinit.c. References DWORD, ExeNameBuffer, ExeNameLength, StartDirBuffer, and StartDirLength. Referenced by AllocConsole(), and ConDllInitialize().
|
|
Definition at line 141 of file dllinit.c. References BOOL, DEFAULT_WINDOW_TITLE, DllInit(), ghInstance, L, MAX_TITLE_LENGTH, min, NULL, ParseReserved(), and USHORT. Referenced by AllocConsole(), and ConDllInitialize().
|
|
Definition at line 263 of file dllinit.c. References SET_CONSOLE_HANDLE, STD_ERROR_HANDLE, STD_INPUT_HANDLE, and STD_OUTPUT_HANDLE. Referenced by AllocConsole(), and ConDllInitialize().
|
|
Definition at line 31 of file dllinit.c. Referenced by GetConsoleAliasExesA(), GetConsoleAliasExesInternal(), GetConsoleAliasExesW(), GetConsoleInputExeNameW(), GetCurrentExeName(), InitExeName(), SetConsoleInputExeNameW(), and SetUpAppName(). |
|
Definition at line 32 of file dllinit.c. Referenced by GetConsoleInputExeNameW(), GetCurrentExeName(), InitExeName(), ReadChars(), ReadConsoleA(), ReadConsoleInternal(), ReadConsoleW(), SetConsoleInputExeNameW(), and SetUpAppName(). |
|
Definition at line 30 of file dllinit.c. Referenced by AllocConsole(), ConDllInitialize(), FreeConsole(), and GetConsoleInputWaitHandle(). |
|
Definition at line 33 of file dllinit.c. Referenced by InitExeName(), and SetUpAppName(). |
|
Definition at line 34 of file dllinit.c. Referenced by InitExeName(), and SetUpAppName(). |