ReactOS 0.4.16-dev-1481-ga753f34
|
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winnls.h"
#include "winerror.h"
#include "wincon.h"
#include "winternl.h"
#include "wine/condrv.h"
#include "wine/exception.h"
#include "wine/debug.h"
#include "kernelbase.h"
Go to the source code of this file.
Classes | |
struct | ctrl_handler |
Macros | |
#define | WIN32_NO_STATUS |
#define | CONSOLE_INPUT_HANDLE 0x01 |
#define | CONSOLE_OUTPUT_HANDLE 0x02 |
#define | CONSOLE_ERROR_HANDLE 0x04 |
Variables | |
static CRITICAL_SECTION | console_section = { &critsect_debug, -1, 0, 0, 0, 0 } |
static CRITICAL_SECTION_DEBUG | critsect_debug |
static HANDLE | console_connection |
static unsigned int | console_flags |
static WCHAR | input_exe [MAX_PATH+1] |
static struct ctrl_handler | default_handler = { default_ctrl_handler, NULL } |
static struct ctrl_handler * | ctrl_handlers = &default_handler |
Definition at line 396 of file console.c.
Referenced by AllocConsole(), and init_console().
Definition at line 492 of file console.c.
Referenced by _tWinMain(), cmd_ctty(), CONSOLE_Init(), DoTest(), InitRappsConsole(), main(), START_TEST(), test_Console(), TUIInitialize(), and wWinMain().
BOOL WINAPI DECLSPEC_HOTPATCH AttachConsole | ( | DWORD | pid | ) |
Definition at line 360 of file console.c.
Definition at line 145 of file console.c.
Referenced by ReadConsoleOutputA().
Definition at line 2309 of file console.c.
Referenced by CreatePseudoConsole().
|
static |
Definition at line 85 of file console.c.
Referenced by AttachConsole(), Beep(), FillConsoleOutputAttribute(), FillConsoleOutputCharacterW(), FlushConsoleInputBuffer(), GenerateConsoleCtrlEvent(), get_console_title(), get_largest_console_window_size(), GetConsoleCP(), GetConsoleCursorInfo(), GetConsoleMode(), GetConsoleOutputCP(), GetConsoleScreenBufferInfo(), GetConsoleScreenBufferInfoEx(), GetNumberOfConsoleInputEvents(), PeekConsoleInputW(), ReadConsoleA(), ReadConsoleInputW(), ReadConsoleOutputAttribute(), ReadConsoleOutputCharacterW(), ReadConsoleOutputW(), ReadConsoleW(), ScrollConsoleScreenBufferW(), SetConsoleActiveScreenBuffer(), SetConsoleCP(), SetConsoleCursorInfo(), SetConsoleCursorPosition(), SetConsoleMode(), SetConsoleOutputCP(), SetConsoleScreenBufferInfoEx(), SetConsoleScreenBufferSize(), SetConsoleTextAttribute(), SetConsoleTitleW(), SetConsoleWindowInfo(), SetCurrentConsoleFontEx(), WriteConsoleA(), WriteConsoleOutputAttribute(), WriteConsoleOutputCharacterW(), WriteConsoleOutputW(), and WriteConsoleW().
Definition at line 265 of file console.c.
Referenced by alloc_console(), AttachConsole(), and init_console().
Definition at line 249 of file console.c.
Referenced by alloc_console(), AttachConsole(), and create_pseudo_console().
Definition at line 233 of file console.c.
Referenced by alloc_console(), and create_pseudo_console().
|
static |
Definition at line 2186 of file console.c.
Referenced by CreatePseudoConsole(), and init_console().
HANDLE WINAPI DECLSPEC_HOTPATCH CreateConsoleScreenBuffer | ( | DWORD | access, |
DWORD | share, | ||
SECURITY_ATTRIBUTES * | sa, | ||
DWORD | flags, | ||
void * | data | ||
) |
HRESULT WINAPI CreatePseudoConsole | ( | COORD | size, |
HANDLE | input, | ||
HANDLE | output, | ||
DWORD | flags, | ||
HPCON * | ret | ||
) |
Definition at line 2262 of file console.c.
Definition at line 531 of file console.c.
Referenced by IntAllocConsole(), and IntAttachConsole().
Definition at line 72 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH FillConsoleOutputAttribute | ( | HANDLE | handle, |
WORD | attr, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | written | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH FillConsoleOutputCharacterA | ( | HANDLE | handle, |
CHAR | ch, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | written | ||
) |
Definition at line 620 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH FillConsoleOutputCharacterW | ( | HANDLE | handle, |
WCHAR | ch, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | written | ||
) |
Definition at line 633 of file console.c.
Referenced by FillConsoleOutputCharacterA(), and test_FillConsoleOutputCharacterW().
BOOL WINAPI DECLSPEC_HOTPATCH FreeConsole | ( | void | ) |
Definition at line 663 of file console.c.
Referenced by alloc_console(), AttachConsole(), cmd_ctty(), CONSOLE_Init(), RunUSetup(), and START_TEST().
BOOL WINAPI DECLSPEC_HOTPATCH GenerateConsoleCtrlEvent | ( | DWORD | event, |
DWORD | group | ||
) |
Definition at line 187 of file console.c.
Referenced by GetConsoleFontSize().
Definition at line 208 of file console.c.
Referenced by GetConsoleOriginalTitleW(), and GetConsoleTitleW().
Definition at line 172 of file console.c.
Referenced by GetLargestConsoleWindowSize().
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleCP | ( | void | ) |
Definition at line 821 of file console.c.
Referenced by _getch_nolock(), _tmain(), cmd_start(), ConInString(), doChild(), Execute(), FileGetString(), input_records_AtoW(), input_records_WtoA(), SetConsoleCPState(), START_TEST(), test_Console(), and wmain().
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleCursorInfo | ( | HANDLE | handle, |
CONSOLE_CURSOR_INFO * | info | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleInputExeNameA | ( | DWORD | len, |
LPSTR | buffer | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleInputExeNameW | ( | DWORD | len, |
LPWSTR | buffer | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleMode | ( | HANDLE | handle, |
DWORD * | mode | ||
) |
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleA | ( | LPSTR | title, |
DWORD | size | ||
) |
Definition at line 929 of file console.c.
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleOriginalTitleW | ( | LPWSTR | title, |
DWORD | size | ||
) |
Definition at line 948 of file console.c.
Referenced by GetConsoleOriginalTitleA().
UINT WINAPI DECLSPEC_HOTPATCH GetConsoleOutputCP | ( | void | ) |
Definition at line 957 of file console.c.
Referenced by _tmain(), char_info_AtoW(), cmd_start(), ConPagerWorker(), ConWrite(), doChild(), doTest_CP_ThreadLang_(), Execute(), FillConsoleOutputCharacterA(), GetConsoleOriginalTitleA(), GetConsoleTitleA(), output_writeconsole(), print_string(), ReadConsoleOutputA(), ReadConsoleOutputCharacterA(), ScrollConsoleScreenBufferA(), SetConsoleTitleA(), ShowConsoleCPStatus(), ShowConsoleStatus(), START_TEST(), test_Console(), test_cp855(), test_cp932(), test_CP_ThreadLang(), testScreenBuffer(), wmain(), write_double_translated_ansi_nolock(), WriteConsoleOutputCharacterA(), and XCOPY_wprintf().
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleScreenBufferInfo | ( | HANDLE | handle, |
CONSOLE_SCREEN_BUFFER_INFO * | info | ||
) |
Definition at line 1007 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH GetConsoleScreenBufferInfoEx | ( | HANDLE | handle, |
CONSOLE_SCREEN_BUFFER_INFOEX * | info | ||
) |
Definition at line 1038 of file console.c.
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleTitleA | ( | LPSTR | title, |
DWORD | size | ||
) |
Definition at line 1074 of file console.c.
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleTitleW | ( | LPWSTR | title, |
DWORD | size | ||
) |
Definition at line 1102 of file console.c.
Referenced by ConsoleInitUI(), START_TEST(), test_GetConsoleFontSize(), and WaitWindows().
BOOL WINAPI GetCurrentConsoleFont | ( | HANDLE | handle, |
BOOL | maxwindow, | ||
CONSOLE_FONT_INFO * | info | ||
) |
Definition at line 1161 of file console.c.
BOOL WINAPI GetCurrentConsoleFontEx | ( | HANDLE | handle, |
BOOL | maxwindow, | ||
CONSOLE_FONT_INFOEX * | info | ||
) |
Definition at line 1116 of file console.c.
Referenced by GetCurrentConsoleFont().
COORD WINAPI DECLSPEC_HOTPATCH GetLargestConsoleWindowSize | ( | HANDLE | handle | ) |
BOOL WINAPI DECLSPEC_HOTPATCH GetNumberOfConsoleInputEvents | ( | HANDLE | handle, |
DWORD * | count | ||
) |
Definition at line 2339 of file console.c.
Referenced by DllMain().
Definition at line 280 of file console.c.
Referenced by alloc_console(), AttachConsole(), and init_console().
|
static |
Definition at line 130 of file console.c.
Referenced by WriteConsoleInputA().
|
static |
Definition at line 115 of file console.c.
Referenced by PeekConsoleInputA(), and ReadConsoleInputA().
BOOL WINAPI DECLSPEC_HOTPATCH PeekConsoleInputA | ( | HANDLE | handle, |
INPUT_RECORD * | buffer, | ||
DWORD | length, | ||
DWORD * | count | ||
) |
Definition at line 1228 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH PeekConsoleInputW | ( | HANDLE | handle, |
INPUT_RECORD * | buffer, | ||
DWORD | length, | ||
DWORD * | count | ||
) |
BOOL WINAPI ReadConsoleA | ( | HANDLE | handle, |
void * | buffer, | ||
DWORD | length, | ||
DWORD * | count, | ||
void * | reserved | ||
) |
Definition at line 2066 of file console.c.
Referenced by test_ReadConsole().
Definition at line 1801 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleOutputA | ( | HANDLE | handle, |
CHAR_INFO * | buffer, | ||
COORD | size, | ||
COORD | coord, | ||
SMALL_RECT * | region | ||
) |
Definition at line 1345 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleOutputAttribute | ( | HANDLE | handle, |
WORD * | attr, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | count | ||
) |
Definition at line 1257 of file console.c.
Referenced by test_ReadConsoleOutputAttribute(), testWriteNotWrappedProcessed(), and testWriteWrappedProcessed().
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleOutputCharacterA | ( | HANDLE | handle, |
LPSTR | buffer, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | count | ||
) |
Definition at line 1285 of file console.c.
Referenced by test_ReadConsoleOutputCharacterA(), and testScreenBuffer().
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleOutputCharacterW | ( | HANDLE | handle, |
LPWSTR | buffer, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | count | ||
) |
Definition at line 1317 of file console.c.
Referenced by ReadConsoleOutputCharacterA(), test_ReadConsoleOutputCharacterW(), and testScreenBuffer().
BOOL WINAPI DECLSPEC_HOTPATCH ReadConsoleOutputW | ( | HANDLE | handle, |
CHAR_INFO * | buffer, | ||
COORD | size, | ||
COORD | coord, | ||
SMALL_RECT * | region | ||
) |
Definition at line 1365 of file console.c.
Referenced by ReadConsoleOutputA().
BOOL WINAPI ReadConsoleW | ( | HANDLE | handle, |
void * | buffer, | ||
DWORD | length, | ||
DWORD * | count, | ||
void * | reserved | ||
) |
Definition at line 2081 of file console.c.
Referenced by test_ReadConsole().
BOOL WINAPI DECLSPEC_HOTPATCH ScrollConsoleScreenBufferA | ( | HANDLE | handle, |
const SMALL_RECT * | scroll, | ||
const SMALL_RECT * | clip, | ||
COORD | origin, | ||
const CHAR_INFO * | fill | ||
) |
Definition at line 1419 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH ScrollConsoleScreenBufferW | ( | HANDLE | handle, |
const SMALL_RECT * | scroll, | ||
const SMALL_RECT * | clip_rect, | ||
COORD | origin, | ||
const CHAR_INFO * | fill | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleActiveScreenBuffer | ( | HANDLE | handle | ) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCP | ( | UINT | cp | ) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCtrlHandler | ( | PHANDLER_ROUTINE | func, |
BOOL | add | ||
) |
Definition at line 1490 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCursorInfo | ( | HANDLE | handle, |
CONSOLE_CURSOR_INFO * | info | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCursorPosition | ( | HANDLE | handle, |
COORD | pos | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleInputExeNameA | ( | LPCSTR | name | ) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleInputExeNameW | ( | LPCWSTR | name | ) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleMode | ( | HANDLE | handle, |
DWORD | mode | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleOutputCP | ( | UINT | cp | ) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferInfoEx | ( | HANDLE | handle, |
CONSOLE_SCREEN_BUFFER_INFOEX * | info | ||
) |
Definition at line 1644 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleScreenBufferSize | ( | HANDLE | handle, |
COORD | size | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleTextAttribute | ( | HANDLE | handle, |
WORD | attr | ||
) |
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleTitleW | ( | LPCWSTR | title | ) |
Definition at line 1724 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleWindowInfo | ( | HANDLE | handle, |
BOOL | absolute, | ||
SMALL_RECT * | window | ||
) |
Definition at line 1736 of file console.c.
BOOL WINAPI SetCurrentConsoleFontEx | ( | HANDLE | handle, |
BOOL | maxwindow, | ||
CONSOLE_FONT_INFOEX * | info | ||
) |
Definition at line 1765 of file console.c.
WINE_DEFAULT_DEBUG_CHANNEL | ( | console | ) |
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleA | ( | HANDLE | handle, |
const void * | buffer, | ||
DWORD | length, | ||
DWORD * | written, | ||
void * | reserved | ||
) |
Definition at line 2135 of file console.c.
Referenced by testEmptyWrite(), testScreenBuffer(), testWriteNotWrappedNotProcessed(), testWriteNotWrappedProcessed(), testWriteSimple(), testWriteWrappedNotProcessed(), and testWriteWrappedProcessed().
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleInputA | ( | HANDLE | handle, |
const INPUT_RECORD * | buffer, | ||
DWORD | count, | ||
DWORD * | written | ||
) |
Definition at line 1828 of file console.c.
Referenced by test_WriteConsoleInputA().
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleInputW | ( | HANDLE | handle, |
const INPUT_RECORD * | buffer, | ||
DWORD | count, | ||
DWORD * | written | ||
) |
Definition at line 1858 of file console.c.
Referenced by test_WriteConsoleInputW(), testWaitForConsoleInput(), and WriteConsoleInputA().
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputA | ( | HANDLE | handle, |
const CHAR_INFO * | buffer, | ||
COORD | size, | ||
COORD | coord, | ||
SMALL_RECT * | region | ||
) |
Definition at line 1885 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputAttribute | ( | HANDLE | handle, |
const WORD * | attr, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | written | ||
) |
Definition at line 1967 of file console.c.
Referenced by resetContent(), and test_WriteConsoleOutputAttribute().
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterA | ( | HANDLE | handle, |
LPCSTR | str, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | written | ||
) |
Definition at line 1999 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputCharacterW | ( | HANDLE | handle, |
LPCWSTR | str, | ||
DWORD | length, | ||
COORD | coord, | ||
DWORD * | written | ||
) |
Definition at line 2034 of file console.c.
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleOutputW | ( | HANDLE | handle, |
const CHAR_INFO * | buffer, | ||
COORD | size, | ||
COORD | coord, | ||
SMALL_RECT * | region | ||
) |
Definition at line 1920 of file console.c.
Referenced by WriteConsoleOutputA().
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleW | ( | HANDLE | handle, |
const void * | buffer, | ||
DWORD | length, | ||
DWORD * | written, | ||
void * | reserved | ||
) |
|
static |
Definition at line 57 of file console.c.
Referenced by AttachConsole(), create_console_connection(), and FreeConsole().
Definition at line 58 of file console.c.
Referenced by FreeConsole(), and init_console_std_handles().
|
static |
Definition at line 48 of file console.c.
Referenced by alloc_console(), AttachConsole(), CtrlRoutine(), FreeConsole(), GetConsoleInputExeNameA(), GetConsoleInputExeNameW(), SetConsoleCtrlHandler(), SetConsoleInputExeNameA(), and SetConsoleInputExeNameW().
|
static |
|
static |
Definition at line 83 of file console.c.
Referenced by CtrlRoutine(), and SetConsoleCtrlHandler().
|
static |
Definition at line 82 of file console.c.
Referenced by SetConsoleCtrlHandler().
Definition at line 64 of file console.c.
Referenced by GetConsoleInputExeNameA(), GetConsoleInputExeNameW(), SetConsoleInputExeNameA(), SetConsoleInputExeNameW(), and test_GetSetConsoleInputExeName().