|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include "consrv.h"#include <shlobj.h>#include "../concfg/font.h"#include <alias.h>#include <history.h>#include "procinit.h"#include <debug.h>
Go to the source code of this file.
Variables | |
| static ULONG | ConsoleListSize |
| static PCONSRV_CONSOLE * | ConsoleList |
| static RTL_RESOURCE | ListLock |
| #define CONSOLE_HANDLES_INCREMENT 2 * 3 |
| #define CONSOLE_VALID_CONTROL_MODES |
| #define ConSrvLockConsoleListExclusive | ( | ) | RtlAcquireResourceExclusive(&ListLock, TRUE) |
| #define ConSrvLockConsoleListShared | ( | ) | RtlAcquireResourceShared(&ListLock, TRUE) |
| #define ConSrvUnlockConsoleList | ( | ) | RtlReleaseResource(&ListLock) |
| CON_API | ( | SrvConsoleNotifyLastClose | , |
| CONSOLE_NOTIFYLASTCLOSE | , | ||
| NotifyLastCloseRequest | |||
| ) |
| CON_API | ( | SrvGenerateConsoleCtrlEvent | , |
| CONSOLE_GENERATECTRLEVENT | , | ||
| GenerateCtrlEventRequest | |||
| ) |
Definition at line 1924 of file console.c.
| CON_API | ( | SrvGetConsoleCP | , |
| CONSOLE_GETINPUTOUTPUTCP | , | ||
| GetConsoleCPRequest | |||
| ) |
Definition at line 1878 of file console.c.
| CON_API | ( | SrvGetConsoleKeyboardLayoutName | , |
| CONSOLE_GETKBDLAYOUTNAME | , | ||
| GetKbdLayoutNameRequest | |||
| ) |
Definition at line 1962 of file console.c.
| CON_API | ( | SrvGetConsoleLangId | , |
| CONSOLE_GETLANGID | , | ||
| LangIdRequest | |||
| ) |
ReactOS-specific: do nothing if the code page is UTF-8. This will allow programs to naturally output in whatever current language they are.
End ReactOS-specific
Definition at line 2017 of file console.c.
| CON_API | ( | SrvGetConsoleMode | , |
| CONSOLE_GETSETCONSOLEMODE | , | ||
| ConsoleModeRequest | |||
| ) |
Definition at line 1660 of file console.c.
| CON_API | ( | SrvGetConsoleMouseInfo | , |
| CONSOLE_GETMOUSEINFO | , | ||
| GetMouseInfoRequest | |||
| ) |
| CON_API | ( | SrvGetConsoleProcessList | , |
| CONSOLE_GETPROCESSLIST | , | ||
| GetProcessListRequest | |||
| ) |
Definition at line 1906 of file console.c.
| CON_API | ( | SrvGetConsoleTitle | , |
| CONSOLE_GETSETCONSOLETITLE | , | ||
| TitleRequest | |||
| ) |
Definition at line 1761 of file console.c.
| CON_API | ( | SrvSetConsoleCP | , |
| CONSOLE_SETINPUTOUTPUTCP | , | ||
| SetConsoleCPRequest | |||
| ) |
Definition at line 1894 of file console.c.
| CON_API | ( | SrvSetConsoleMode | , |
| CONSOLE_GETSETCONSOLEMODE | , | ||
| ConsoleModeRequest | |||
| ) |
Definition at line 1705 of file console.c.
| CON_API | ( | SrvSetConsoleTitle | , |
| CONSOLE_GETSETCONSOLETITLE | , | ||
| TitleRequest | |||
| ) |
Definition at line 1811 of file console.c.
| CON_API_NOCONSOLE | ( | SrvAllocConsole | , |
| CONSOLE_ALLOCCONSOLE | , | ||
| AllocConsoleRequest | |||
| ) |
Definition at line 1483 of file console.c.
| CON_API_NOCONSOLE | ( | SrvAttachConsole | , |
| CONSOLE_ATTACHCONSOLE | , | ||
| AttachConsoleRequest | |||
| ) |
Definition at line 1551 of file console.c.
| CON_API_NOCONSOLE | ( | SrvFreeConsole | , |
| CONSOLE_FREECONSOLE | , | ||
| FreeConsoleRequest | |||
| ) |
Definition at line 1639 of file console.c.
| NTSTATUS NTAPI ConDrvGetConsoleMode | ( | IN PCONSOLE | Console, |
| IN PCONSOLE_IO_OBJECT | Object, | ||
| OUT PULONG | ConsoleMode | ||
| ) |
Definition at line 324 of file console.c.
Referenced by CON_API().
| NTSTATUS NTAPI ConDrvSetConsoleMode | ( | IN PCONSOLE | Console, |
| IN PCONSOLE_IO_OBJECT | Object, | ||
| IN ULONG | ConsoleMode | ||
| ) |
Definition at line 357 of file console.c.
Referenced by CON_API().
| VOID ConioPause | ( | PCONSRV_CONSOLE | Console, |
| UCHAR | Flags | ||
| ) |
Definition at line 859 of file console.c.
Referenced by OnScroll(), PreprocessInput(), and UpdateSelection().
| VOID ConioUnpause | ( | PCONSRV_CONSOLE | Console, |
| UCHAR | Flags | ||
| ) |
Definition at line 866 of file console.c.
Referenced by OnScroll(), PreprocessInput(), and UpdateSelection().
|
static |
Definition at line 216 of file console.c.
Referenced by ConSrvInitConsole().
|
static |
Definition at line 234 of file console.c.
Referenced by CON_API(), and ConSrvDeleteConsole().
| NTSTATUS ConSrvAllocateConsole | ( | IN OUT PCONSOLE_PROCESS_DATA | ProcessData, |
| OUT PHANDLE | pInputHandle, | ||
| OUT PHANDLE | pOutputHandle, | ||
| OUT PHANDLE | pErrorHandle, | ||
| IN OUT PCONSOLE_INIT_INFO | ConsoleInitInfo | ||
| ) |
Definition at line 968 of file console.c.
Referenced by CON_API_NOCONSOLE(), and ConSrvConnect().
| NTSTATUS ConSrvConsoleCtrlEvent | ( | IN ULONG | CtrlEvent, |
| IN PCONSOLE_PROCESS_DATA | ProcessData | ||
| ) |
Definition at line 1356 of file console.c.
Referenced by ConSrvConsoleProcessCtrlEvent(), and ConSrvRemoveConsole().
| NTSTATUS ConSrvConsoleCtrlEventTimeout | ( | IN ULONG | CtrlEvent, |
| IN PCONSOLE_PROCESS_DATA | ProcessData, | ||
| IN ULONG | Timeout | ||
| ) |
Definition at line 1305 of file console.c.
Referenced by ConSrvConsoleCtrlEvent(), and NotifyConsoleProcessForShutdown().
| NTSTATUS NTAPI ConSrvConsoleProcessCtrlEvent | ( | IN PCONSRV_CONSOLE | Console, |
| IN ULONG | ProcessGroupId, | ||
| IN ULONG | CtrlEvent | ||
| ) |
Definition at line 1402 of file console.c.
Referenced by CON_API(), ConioProcessInputEvent(), and OnClose().
Definition at line 237 of file terminal.c.
Referenced by ConSrvInitConsole().
| VOID NTAPI ConSrvDeleteConsole | ( | PCONSRV_CONSOLE | Console | ) |
Definition at line 822 of file console.c.
Referenced by ConSrvAllocateConsole(), and ConSrvReleaseConsole().
| NTSTATUS ConSrvGetConsole | ( | IN PCONSOLE_PROCESS_DATA | ProcessData, |
| OUT PCONSRV_CONSOLE * | Console, | ||
| IN BOOLEAN | LockConsole | ||
| ) |
Definition at line 291 of file console.c.
Referenced by CON_API_NOCONSOLE(), and GetThreadConsoleDesktop().
| PCONSOLE_PROCESS_DATA NTAPI ConSrvGetConsoleLeaderProcess | ( | IN PCONSRV_CONSOLE | Console | ) |
Definition at line 1363 of file console.c.
Referenced by ConSrvRemoveConsole(), GuiApplyUserSettings(), GuiConsoleShowConsoleProperties(), and SetConWndConsoleLeaderCID().
| NTSTATUS NTAPI ConSrvGetConsoleProcessList | ( | IN PCONSRV_CONSOLE | Console, |
| IN OUT PULONG | ProcessIdsList, | ||
| IN ULONG | MaxIdListItems, | ||
| OUT PULONG | ProcessIdsTotal | ||
| ) |
Definition at line 1373 of file console.c.
Referenced by CON_API().
| NTSTATUS ConSrvInheritConsole | ( | IN OUT PCONSOLE_PROCESS_DATA | ProcessData, |
| IN HANDLE | ConsoleHandle, | ||
| IN BOOLEAN | CreateNewHandleTable, | ||
| OUT PHANDLE | pInputHandle, | ||
| OUT PHANDLE | pOutputHandle, | ||
| OUT PHANDLE | pErrorHandle, | ||
| IN OUT PCONSOLE_START_INFO | ConsoleStartInfo | ||
| ) |
Definition at line 1096 of file console.c.
Referenced by CON_API_NOCONSOLE(), and ConSrvConnect().
| NTSTATUS NTAPI ConSrvInitConsole | ( | OUT PHANDLE | NewConsoleHandle, |
| OUT PCONSRV_CONSOLE * | NewConsole, | ||
| IN OUT PCONSOLE_INIT_INFO | ConsoleInitInfo, | ||
| IN PCSR_PROCESS | ConsoleLeaderProcess | ||
| ) |
Definition at line 532 of file console.c.
Referenced by ConSrvAllocateConsole().
Definition at line 347 of file console.c.
Referenced by CSR_SERVER_DLL_INIT().
|
static |
Definition at line 890 of file console.c.
Referenced by ConSrvAllocateConsole(), and ConSrvInheritConsole().
| NTSTATUS NTAPI ConSrvInitTerminal | ( | IN OUT PTERMINAL | Terminal, |
| IN OUT PCONSOLE_STATE_INFO | ConsoleInfo, | ||
| IN OUT PCONSOLE_INIT_INFO | ConsoleInitInfo, | ||
| IN HANDLE | ConsoleLeaderProcessHandle | ||
| ) |
Definition at line 204 of file terminal.c.
Referenced by ConSrvInitConsole().
| VOID ConSrvReleaseConsole | ( | IN PCONSRV_CONSOLE | Console, |
| IN BOOLEAN | IsConsoleLocked | ||
| ) |
Definition at line 316 of file console.c.
Referenced by CON_API_NOCONSOLE(), ConSrvReleaseObject(), ConSrvRemoveConsole(), and GetThreadConsoleDesktop().
| NTSTATUS ConSrvRemoveConsole | ( | IN OUT PCONSOLE_PROCESS_DATA | ProcessData | ) |
Definition at line 1227 of file console.c.
Referenced by CON_API_NOCONSOLE(), and ConSrvDisconnect().
| NTSTATUS NTAPI ConSrvSetConsoleProcessFocus | ( | IN PCONSRV_CONSOLE | Console, |
| IN BOOLEAN | SetForeground | ||
| ) |
Definition at line 1453 of file console.c.
Referenced by OnFocus().
| VOID ConSrvSetProcessFocus | ( | IN PCSR_PROCESS | CsrProcess, |
| IN BOOLEAN | SetForeground | ||
| ) |
Definition at line 1440 of file console.c.
Referenced by ConSrvAllocateConsole(), ConSrvInheritConsole(), and ConSrvSetConsoleProcessFocus().
| BOOLEAN NTAPI ConSrvValidateConsole | ( | OUT PCONSRV_CONSOLE * | Console, |
| IN HANDLE | ConsoleHandle, | ||
| IN CONSOLE_STATE | ExpectedState, | ||
| IN BOOLEAN | LockConsole | ||
| ) |
Definition at line 247 of file console.c.
Referenced by ConSrvGetConsole(), ConSrvInheritConsole(), ConSrvNewProcess(), and ConSrvRemoveConsole().
|
static |
Definition at line 72 of file console.c.
Referenced by ConSrvInitConsole().
|
static |
Definition at line 370 of file console.c.
Referenced by ConSrvInitConsole().
|
static |
Definition at line 168 of file console.c.
Referenced by ConSrvDeleteConsole().
|
static |
Definition at line 34 of file console.c.
Referenced by ConSrvInitConsoleSupport(), ConSrvValidateConsole(), InsertConsole(), and RemoveConsoleByPointer().
|
static |
Definition at line 33 of file console.c.
Referenced by ConSrvInitConsoleSupport(), ConSrvValidateConsole(), InsertConsole(), and RemoveConsoleByPointer().
|
static |
Definition at line 36 of file console.c.
Referenced by ConSrvInitConsoleSupport().