ReactOS 0.4.16-dev-455-g37b0646
|
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | EXENAME_LENGTH (255 + 1) |
Variables | |
RTL_CRITICAL_SECTION | ConsoleLock |
BOOLEAN | ConsoleInitialized |
static LPCWSTR | BaseConFileName = CONSOLE_FILE_NAME |
static LPCWSTR | BaseConInputFileName = CONSOLE_INPUT_FILE_NAME |
static LPCWSTR | BaseConOutputFileName = CONSOLE_OUTPUT_FILE_NAME |
static PHANDLER_ROUTINE | InitialHandler [1] |
static PHANDLER_ROUTINE * | CtrlHandlers |
static ULONG | NrCtrlHandlers |
static ULONG | NrAllocatedHandlers |
static BOOLEAN | LastCloseNotify = FALSE |
HANDLE | InputWaitHandle = INVALID_HANDLE_VALUE |
static RTL_CRITICAL_SECTION | ExeNameLock |
static BOOLEAN | ExeNameInitialized |
static WCHAR | ExeNameBuffer [EXENAME_LENGTH] |
static USHORT | ExeNameLength |
static WCHAR | StartDirBuffer [MAX_PATH+1] |
static USHORT | StartDirLength |
|
static |
Definition at line 2034 of file console.c.
Referenced by SetConsoleCtrlHandler().
BOOL WINAPI DECLSPEC_HOTPATCH AllocConsole | ( | VOID | ) |
Definition at line 1363 of file console.c.
Definition at line 2676 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH CloseConsoleHandle | ( | HANDLE | hHandle | ) |
Definition at line 1142 of file console.c.
Referenced by CloseHandle().
Definition at line 89 of file console.c.
Referenced by AllocConsole(), AttachConsole(), and ConDllInitialize().
HMENU WINAPI DECLSPEC_HOTPATCH ConsoleMenuControl | ( | HANDLE | hConsoleOutput, |
DWORD | dwCmdIdLow, | ||
DWORD | dwCmdIdHigh | ||
) |
Definition at line 396 of file console.c.
Referenced by CreateVdmMenu().
HANDLE WINAPI CreateConsoleScreenBuffer | ( | DWORD | dwDesiredAccess, |
DWORD | dwShareMode, | ||
CONST SECURITY_ATTRIBUTES * | lpSecurityAttributes, | ||
DWORD | dwFlags, | ||
LPVOID | lpScreenBufferData | ||
) |
Definition at line 2313 of file console.c.
Referenced by GetInputOutputHandles(), testScreenBuffer(), VgaConsoleCreateGraphicsScreen(), and wmain().
Definition at line 53 of file console.c.
Referenced by ConsoleControlDispatcher(), and InitializeCtrlHandling().
HANDLE WINAPI DECLSPEC_HOTPATCH DuplicateConsoleHandle | ( | HANDLE | hConsole, |
DWORD | dwDesiredAccess, | ||
BOOL | bInheritHandle, | ||
DWORD | dwOptions | ||
) |
Definition at line 424 of file console.c.
Referenced by DuplicateHandle().
BOOL WINAPI DECLSPEC_HOTPATCH FlushConsoleInputBuffer | ( | HANDLE | hConsoleInput | ) |
Definition at line 1827 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH FreeConsole | ( | VOID | ) |
Definition at line 1444 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH GenerateConsoleCtrlEvent | ( | DWORD | dwCtrlEvent, |
DWORD | dwProcessGroupId | ||
) |
Definition at line 2132 of file console.c.
Referenced by TerminateShell(), testCtrlHandler(), CConsole::Write(), and WriteToPipeThread().
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP | ( | VOID | ) |
Definition at line 2391 of file console.c.
Referenced by _tmain(), cmd_start(), ConInString(), doChild(), Execute(), FileGetString(), SetConsoleCPState(), START_TEST(), test_Console(), and wmain().
BOOL WINAPI GetConsoleCursorInfo | ( | HANDLE | hConsoleOutput, |
PCONSOLE_CURSOR_INFO | lpConsoleCursorInfo | ||
) |
Definition at line 1702 of file console.c.
Referenced by testCursorInfo(), and VgaConsoleInitialize().
Definition at line 526 of file console.c.
Referenced by NotifySoundSentry().
DWORD WINAPI GetConsoleFontInfo | ( | IN HANDLE | hConsoleOutput, |
IN BOOL | bMaximumWindow, | ||
IN DWORD | nFontCount, | ||
OUT PCONSOLE_FONT_INFO | lpConsoleFontInfo | ||
) |
Definition at line 561 of file console.c.
Definition at line 613 of file console.c.
Referenced by test_GetConsoleFontInfo(), test_GetConsoleFontSize(), test_GetCurrentConsoleFont(), and test_GetLargestConsoleWindowSize().
Definition at line 465 of file console.c.
Referenced by GetHandleInformation().
Definition at line 643 of file console.c.
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleInputExeNameA | ( | IN DWORD | nBufferLength, |
OUT LPSTR | lpExeName | ||
) |
Definition at line 2944 of file console.c.
Referenced by init_function_pointers().
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleInputExeNameW | ( | IN DWORD | nBufferLength, |
OUT LPWSTR | lpExeName | ||
) |
Definition at line 2905 of file console.c.
Referenced by GetConsoleInputExeNameA().
Definition at line 683 of file console.c.
Referenced by ConsoleEventThread(), RegisterWaitForSingleObject(), RegisterWaitForSingleObjectEx(), SignalObjectAndWait(), WaitForMultipleObjectsEx(), and WaitForSingleObjectEx().
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleKeyboardLayoutNameA | ( | OUT LPSTR | pszLayoutName | ) |
Definition at line 3258 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleKeyboardLayoutNameW | ( | OUT LPWSTR | pszLayoutName | ) |
Definition at line 1569 of file console.c.
Referenced by _getch(), _kbhit(), _tmain(), cfgets(), Confirm(), ConInDisable(), ConInEnable(), ConInString(), ConsoleAttach(), ConsolePager(), doChild(), EnableExtraHardware(), getpass(), CConsole::Init(), IsConsoleHandle(), PagePrompt(), ReadFile(), ReadFromConsole(), SetInsert(), test_Console(), test_WriteConsoleInputA(), test_WriteConsoleInputW(), testWriteNotWrappedNotProcessed(), testWriteNotWrappedProcessed(), testWriteWrappedNotProcessed(), and testWriteWrappedProcessed().
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleNlsMode | ( | HANDLE | hConsole, |
LPDWORD | lpMode | ||
) |
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleOutputCP | ( | VOID | ) |
Definition at line 2451 of file console.c.
Referenced by _tmain(), cmd_start(), ConPagerWorker(), ConWrite(), doChild(), doTest_CP_ThreadLang_(), Execute(), output_writeconsole(), print_string(), ShowConsoleCPStatus(), ShowConsoleStatus(), START_TEST(), taskkill_vprintfW(), test_Console(), test_cp855(), test_cp932(), test_CP_ThreadLang(), testScreenBuffer(), wmain(), and XCOPY_wprintf().
Definition at line 2513 of file console.c.
Referenced by init_function_pointers().
BOOL WINAPI GetConsoleScreenBufferInfo | ( | HANDLE | hConsoleOutput, |
PCONSOLE_SCREEN_BUFFER_INFO | lpConsoleScreenBufferInfo | ||
) |
Definition at line 1496 of file console.c.
BOOL WINAPI GetConsoleSelectionInfo | ( | PCONSOLE_SELECTION_INFO | lpConsoleSelectionInfo | ) |
Definition at line 2569 of file console.c.
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleTitleA | ( | LPSTR | lpConsoleTitle, |
DWORD | nSize | ||
) |
Definition at line 2235 of file console.c.
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleTitleW | ( | LPWSTR | lpConsoleTitle, |
DWORD | nSize | ||
) |
HWND WINAPI DECLSPEC_HOTPATCH GetConsoleWindow | ( | VOID | ) |
Definition at line 2729 of file console.c.
Referenced by ConsoleInitUI(), START_TEST(), test_GetConsoleFontSize(), and WaitWindows().
BOOL WINAPI GetCurrentConsoleFont | ( | IN HANDLE | hConsoleOutput, |
IN BOOL | bMaximumWindow, | ||
OUT PCONSOLE_FONT_INFO | lpConsoleCurrentFont | ||
) |
Definition at line 694 of file console.c.
Referenced by test_GetConsoleFontInfo(), test_GetConsoleFontSize(), test_GetCurrentConsoleFont(), and test_GetLargestConsoleWindowSize().
Definition at line 316 of file console.c.
Referenced by IntReadConsole().
COORD WINAPI DECLSPEC_HOTPATCH GetLargestConsoleWindowSize | ( | HANDLE | hConsoleOutput | ) |
Definition at line 1673 of file console.c.
Referenced by test_GetLargestConsoleWindowSize().
DWORD WINAPI DECLSPEC_HOTPATCH GetNumberOfConsoleFonts | ( | VOID | ) |
Definition at line 729 of file console.c.
Definition at line 1635 of file console.c.
Referenced by _kbhit(), _tmain(), InputWait(), ProcessKeys(), test_GetNumberOfConsoleInputEvents(), test_WriteConsoleInputA(), and test_WriteConsoleInputW().
Definition at line 1771 of file console.c.
HANDLE WINAPI DECLSPEC_HOTPATCH GetStdHandle | ( | DWORD | nStdHandle | ) |
Definition at line 1170 of file console.c.
Definition at line 216 of file console.c.
Referenced by AllocConsole(), and ConDllInitialize().
Definition at line 204 of file console.c.
Referenced by AllocConsole(), AttachConsole(), and ConDllInitialize().
|
static |
Definition at line 1255 of file console.c.
Referenced by AllocConsole().
|
static |
Definition at line 2603 of file console.c.
Referenced by AttachConsole().
Definition at line 345 of file console.c.
Referenced by CreateFileW().
Definition at line 3210 of file console.c.
Referenced by GetConsoleKeyboardLayoutNameA(), and GetConsoleKeyboardLayoutNameW().
|
static |
Definition at line 2163 of file console.c.
Referenced by GetConsoleTitleA(), and GetConsoleTitleW().
|
static |
Definition at line 3034 of file console.c.
Referenced by RegisterConsoleIME().
|
static |
Definition at line 1881 of file console.c.
Referenced by ScrollConsoleScreenBufferA(), and ScrollConsoleScreenBufferW().
Definition at line 2243 of file console.c.
Referenced by SetConsoleTitleA(), and SetConsoleTitleW().
Definition at line 3101 of file console.c.
Referenced by UnregisterConsoleIME().
Definition at line 756 of file console.c.
Referenced by __InvalidateConsoleDIBits().
Definition at line 580 of file debugger.c.
HANDLE WINAPI OpenConsoleW | ( | LPCWSTR | wsName, |
DWORD | dwDesiredAccess, | ||
BOOL | bInheritHandle, | ||
DWORD | dwShareMode | ||
) |
Definition at line 791 of file console.c.
Referenced by CreateFileW(), and init_function_pointers().
BOOL WINAPI DECLSPEC_HOTPATCH RegisterConsoleIME | ( | _In_ HWND | hWnd, |
_Out_opt_ LPDWORD | pdwAttachToThreadId | ||
) |
Definition at line 3127 of file console.c.
Referenced by IntRegisterConsoleIME().
BOOL WINAPI DECLSPEC_HOTPATCH RegisterConsoleOS2 | ( | BOOL | bUnknown | ) |
|
static |
Definition at line 2072 of file console.c.
Referenced by SetConsoleCtrlHandler().
BOOL WINAPI DECLSPEC_HOTPATCH ScrollConsoleScreenBufferA | ( | HANDLE | hConsoleOutput, |
CONST SMALL_RECT * | lpScrollRectangle, | ||
CONST SMALL_RECT * | lpClipRectangle, | ||
COORD | dwDestinationOrigin, | ||
CONST CHAR_INFO * | lpFill | ||
) |
Definition at line 1929 of file console.c.
Referenced by testScroll().
BOOL WINAPI DECLSPEC_HOTPATCH ScrollConsoleScreenBufferW | ( | HANDLE | hConsoleOutput, |
CONST SMALL_RECT * | lpScrollRectangle, | ||
CONST SMALL_RECT * | lpClipRectangle, | ||
COORD | dwDestinationOrigin, | ||
CONST CHAR_INFO * | lpFill | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleActiveScreenBuffer | ( | HANDLE | hConsoleOutput | ) |
Definition at line 1799 of file console.c.
Referenced by GetInputOutputHandles(), RestoreConsole(), SetActiveScreenBuffer(), testScreenBuffer(), and wmain().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCP | ( | UINT | wCodePageID | ) |
Definition at line 2420 of file console.c.
Referenced by doChild(), SetConsoleCPState(), START_TEST(), test_Console(), and wmain().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCtrlHandler | ( | PHANDLER_ROUTINE | HandlerRoutine, |
BOOL | Add | ||
) |
Definition at line 2109 of file console.c.
Referenced by AddBreakHandler(), Telnet::Close(), CmdDebugService(), ConsoleInit(), CtrlCIntercept(), InputWait(), InteractiveConsole(), kickoff_telnetd(), main(), msvcrt_free_signals(), msvcrt_init_signals(), Telnet::Open(), PagePrompt(), RemoveBreakHandler(), Setup(), testCtrlHandler(), wmain(), and wWinMain().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCursor | ( | HANDLE | hConsoleOutput, |
HCURSOR | hCursor | ||
) |
Definition at line 848 of file console.c.
BOOL WINAPI SetConsoleCursorInfo | ( | HANDLE | hConsoleOutput, |
CONST CONSOLE_CURSOR_INFO * | lpConsoleCursorInfo | ||
) |
Definition at line 1742 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCursorPosition | ( | HANDLE | hConsoleOutput, |
COORD | dwCursorPosition | ||
) |
Definition at line 1540 of file console.c.
BOOL WINAPI SetConsoleDisplayMode | ( | HANDLE | hConsoleOutput, |
DWORD | dwFlags, | ||
PCOORD | lpNewScreenBufferDimensions | ||
) |
Definition at line 877 of file console.c.
Definition at line 915 of file console.c.
Definition at line 495 of file console.c.
Referenced by SetHandleInformation().
Definition at line 944 of file console.c.
Referenced by CON_API().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleIcon | ( | HICON | hIcon | ) |
Definition at line 2756 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleInputExeNameA | ( | IN LPCSTR | lpExeName | ) |
Definition at line 2829 of file console.c.
Referenced by init_function_pointers().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleInputExeNameW | ( | IN LPCWSTR | lpExeName | ) |
Definition at line 2789 of file console.c.
Referenced by SetConsoleInputExeNameA().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleKeyShortcuts | ( | DWORD | Unknown0, |
DWORD | Unknown1, | ||
DWORD | Unknown2, | ||
DWORD | Unknown3 | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMenuClose | ( | BOOL | bEnable | ) |
Definition at line 1011 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode | ( | HANDLE | hConsoleHandle, |
DWORD | dwMode | ||
) |
Definition at line 1606 of file console.c.
Referenced by _getch(), _kbhit(), _tmain(), cfgets(), Cleanup(), Confirm(), ConInDisable(), ConInEnable(), ConInString(), ConsoleAttach(), ConsoleDetach(), ConsolePager(), doChild(), EnableExtraHardware(), Execute(), getpass(), CConsole::Init(), Initialize(), main(), PagePrompt(), ReadFromConsole(), ReadString(), RestoreConsole(), SetInsert(), telProcessConsole(), test_Console(), test_WriteConsoleInputA(), test_WriteConsoleInputW(), testWriteNotWrappedNotProcessed(), testWriteNotWrappedProcessed(), testWriteWrappedNotProcessed(), testWriteWrappedProcessed(), and CConsole::~CConsole().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleNlsMode | ( | HANDLE | hConsole, |
DWORD | dwMode | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleOS2OemFormat | ( | BOOL | bUnknown | ) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleOutputCP | ( | UINT | wCodePageID | ) |
Definition at line 2480 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetConsolePalette | ( | HANDLE | hConsoleOutput, |
HPALETTE | hPalette, | ||
UINT | dwUsage | ||
) |
Definition at line 1041 of file console.c.
Referenced by VgaConsoleCreateGraphicsScreen(), and VgaConsoleCreateTextScreen().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferSize | ( | HANDLE | hConsoleOutput, |
COORD | dwSize | ||
) |
Definition at line 1855 of file console.c.
Referenced by main(), ResizeTextConsole(), TConsole::SetWindowSize(), START_TEST(), and test_GetConsoleFontInfo().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleTextAttribute | ( | HANDLE | hConsoleOutput, |
WORD | wAttributes | ||
) |
Definition at line 2008 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleTitleA | ( | LPCSTR | lpConsoleTitle | ) |
Definition at line 2302 of file console.c.
Referenced by CmdStartProcess().
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleTitleW | ( | LPCWSTR | lpConsoleTitle | ) |
BOOL WINAPI SetConsoleWindowInfo | ( | HANDLE | hConsoleOutput, |
BOOL | bAbsolute, | ||
CONST SMALL_RECT * | lpConsoleWindow | ||
) |
Definition at line 1970 of file console.c.
Referenced by main(), ResizeTextConsole(), TConsole::SetWindowSize(), START_TEST(), and TConsole::WriteStringFast().
Definition at line 3279 of file console.c.
Referenced by ConsoleInit().
BOOL WINAPI DECLSPEC_HOTPATCH SetStdHandle | ( | DWORD | nStdHandle, |
HANDLE | hHandle | ||
) |
Definition at line 1213 of file console.c.
Referenced by ExecutePipeline(), msvcrt_free_fd(), msvcrt_set_fd(), SetHandle(), test_close(), test_DetachStdHandles(), test_GetSetStdHandle(), test_Handles(), and test_stdin().
Internal helper function used to synchronize the current thread's language ID with the one from the console.
Definition at line 3171 of file console.c.
Referenced by AllocConsole(), AttachConsole(), ConDllInitialize(), and SetConsoleOutputCP().
VOID SetUpAppName | ( | IN BOOLEAN | CaptureStrings, |
IN OUT LPDWORD | CurDirLength, | ||
IN OUT LPWSTR * | CurDir, | ||
IN OUT LPDWORD | AppNameLength, | ||
IN OUT LPWSTR * | AppName | ||
) |
Definition at line 264 of file console.c.
Referenced by AllocConsole(), and ConDllInitialize().
INT WINAPI DECLSPEC_HOTPATCH ShowConsoleCursor | ( | HANDLE | hConsoleOutput, |
BOOL | bShow | ||
) |
Definition at line 1073 of file console.c.
Referenced by CaptureMousePointer().
BOOL WINAPI DECLSPEC_HOTPATCH UnregisterConsoleIME | ( | VOID | ) |
Definition at line 3160 of file console.c.
Referenced by IntUnregisterConsoleIME().
BOOL WINAPI DECLSPEC_HOTPATCH VerifyConsoleIoHandle | ( | HANDLE | hIoHandle | ) |
Definition at line 1110 of file console.c.
Referenced by GetFileType(), init_function_pointers(), RegisterWaitForSingleObject(), RegisterWaitForSingleObjectEx(), SignalObjectAndWait(), WaitForMultipleObjectsEx(), and WaitForSingleObjectEx().
|
static |
Definition at line 24 of file console.c.
Referenced by IntCheckForConsoleFileName().
|
static |
Definition at line 25 of file console.c.
Referenced by IntCheckForConsoleFileName(), and OpenConsoleW().
|
static |
Definition at line 26 of file console.c.
Referenced by IntCheckForConsoleFileName(), and OpenConsoleW().
|
extern |
Definition at line 25 of file init.c.
Referenced by ConDllInitialize(), ConsoleControlDispatcher(), and PropDialogHandler().
|
extern |
Definition at line 24 of file init.c.
Referenced by AllocConsole(), AttachConsole(), ConDllInitialize(), ConsoleControlDispatcher(), FreeConsole(), and SetConsoleCtrlHandler().
|
static |
Definition at line 30 of file console.c.
Referenced by AddConsoleCtrlHandler(), ConsoleControlDispatcher(), InitializeCtrlHandling(), and RemoveConsoleCtrlHandler().
|