#include "precomp.h"
Go to the source code of this file.
Defines | |
#define | COPY_TO_CHAR_PROMPT_LENGTH 26 |
#define | COPY_FROM_CHAR_PROMPT_LENGTH 28 |
#define | COMMAND_NUMBER_PROMPT_LENGTH 22 |
#define | COMMAND_NUMBER_LENGTH 5 |
#define | MINIMUM_COMMAND_PROMPT_SIZE COMMAND_NUMBER_LENGTH |
#define | CHAR_COUNT(cch) ((cch)/sizeof(WCHAR)) |
#define | ALT_PRESSED (RIGHT_ALT_PRESSED | LEFT_ALT_PRESSED) |
#define | CTRL_PRESSED (RIGHT_CTRL_PRESSED | LEFT_CTRL_PRESSED) |
#define | CTRL_BUT_NOT_ALT(n) |
#define | my_wcsncmpi(p1, p2, n) MyStringCompareW(p1, p2, n, TRUE) |
#define | my_wcsncmp(p1, p2, n) MyStringCompareW(p1, p2, n, FALSE) |
#define | MAX_ARGS 9 |
Functions | |
VOID | InitExtendedEditKeys (CONST ExtKeyDefBuf *pKeyDefBuf) |
CONST ExtKeySubst * | ParseEditKeyInfo (IN OUT PKEY_EVENT_RECORD pKeyEvent) |
BOOL | IsPauseKey (IN PKEY_EVENT_RECORD pKeyEvent) |
BOOL | IsWordDelim (WCHAR wch) |
PEXE_ALIAS_LIST | AddExeAliasList (IN PCONSOLE_INFORMATION Console, IN LPVOID ExeName, IN USHORT ExeLength, IN BOOLEAN UnicodeExe) |
int | MyStringCompareW (IN LPWSTR Str1, IN LPWSTR Str2, IN USHORT Length, IN BOOLEAN bCaseInsensitive) |
PEXE_ALIAS_LIST | FindExe (IN PCONSOLE_INFORMATION Console, IN LPVOID ExeName, IN USHORT ExeLength, IN BOOLEAN UnicodeExe) |
PALIAS | FindAlias (IN PEXE_ALIAS_LIST AliasList, IN LPWSTR AliasName, IN USHORT AliasLength) |
NTSTATUS | AddAlias (IN PEXE_ALIAS_LIST ExeAliasList, IN LPWSTR Source, IN USHORT SourceLength, IN LPWSTR Target, IN USHORT TargetLength) |
NTSTATUS | ReplaceAlias (IN PALIAS Alias, IN LPWSTR Target, IN USHORT TargetLength) |
NTSTATUS | RemoveAlias (IN PALIAS Alias) |
VOID | FreeAliasList (IN PEXE_ALIAS_LIST ExeAliasList) |
VOID | FreeAliasBuffers (IN PCONSOLE_INFORMATION Console) |
ULONG | SrvAddConsoleAlias (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvGetConsoleAlias (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
DWORD | SrvGetConsoleAliasesLength (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
VOID | ClearAliases (IN PCONSOLE_INFORMATION Console) |
DWORD | SrvGetConsoleAliases (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
DWORD | SrvGetConsoleAliasExesLength (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
DWORD | SrvGetConsoleAliasExes (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
NTSTATUS | MatchandCopyAlias (IN PCONSOLE_INFORMATION Console, IN PWCHAR Source, IN USHORT SourceLength, OUT PWCHAR TargetBuffer, IN OUT PUSHORT TargetLength, IN LPWSTR Exe, IN USHORT ExeLength, OUT PDWORD LineCount) |
DWORD | SrvExpungeConsoleCommandHistory (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
DWORD | SrvSetConsoleNumberOfCommands (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
DWORD | SrvGetConsoleCommandHistoryLength (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
DWORD | SrvGetConsoleCommandHistory (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
DWORD | SrvSetConsoleCommandHistoryMode (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
PCOMMAND_HISTORY | ReallocCommandHistory (IN PCONSOLE_INFORMATION Console, IN PCOMMAND_HISTORY CurrentCommandHistory, IN DWORD NumCommands) |
PCOMMAND_HISTORY | FindExeCommandHistory (IN PCONSOLE_INFORMATION Console, IN PVOID AppName, IN DWORD AppNameLength, IN BOOLEAN Unicode) |
PCOMMAND_HISTORY | AllocateCommandHistory (IN PCONSOLE_INFORMATION Console, IN DWORD AppNameLength, IN PWCHAR AppName, IN HANDLE ProcessHandle) |
NTSTATUS | BeginPopup (IN PSCREEN_INFORMATION ScreenInfo, IN PCOMMAND_HISTORY CommandHistory, IN COORD PopupSize) |
NTSTATUS | EndPopup (IN PSCREEN_INFORMATION ScreenInfo, IN PCOMMAND_HISTORY CommandHistory) |
VOID | CleanUpPopups (IN PCOOKED_READ_DATA CookedReadData) |
VOID | DeleteCommandLine (IN OUT PCOOKED_READ_DATA CookedReadData, IN BOOL UpdateFields) |
VOID | RedrawCommandLine (IN OUT PCOOKED_READ_DATA CookedReadData) |
NTSTATUS | RetrieveNthCommand (IN PCOMMAND_HISTORY CommandHistory, IN SHORT Index, IN PWCHAR Buffer, IN ULONG BufferSize, OUT PULONG CommandSize) |
VOID | SetCurrentCommandLine (IN PCOOKED_READ_DATA CookedReadData, IN SHORT Index) |
BOOL | IsCommandLinePopupKey (IN OUT PKEY_EVENT_RECORD KeyEvent) |
BOOL | IsCommandLineEditingKey (IN PKEY_EVENT_RECORD KeyEvent) |
NTSTATUS | ProcessCommandListInput (IN PVOID CookedReadDataPtr, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
NTSTATUS | ProcessCopyFromCharInput (IN PVOID CookedReadDataPtr, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
NTSTATUS | ProcessCopyToCharInput (IN PVOID CookedReadDataPtr, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
NTSTATUS | ProcessCommandNumberInput (IN PVOID CookedReadDataPtr, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
NTSTATUS | CommandListPopup (IN PCOOKED_READ_DATA CookedReadData, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
VOID | DrawPromptPopup (IN PCLE_POPUP Popup, IN PSCREEN_INFORMATION ScreenInfo, IN PWCHAR Prompt, IN ULONG PromptLength) |
NTSTATUS | CopyFromCharPopup (IN PCOOKED_READ_DATA CookedReadData, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
NTSTATUS | CopyToCharPopup (IN PCOOKED_READ_DATA CookedReadData, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
NTSTATUS | CommandNumberPopup (IN PCOOKED_READ_DATA CookedReadData, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
PCOMMAND | GetLastCommand (IN PCOMMAND_HISTORY CommandHistory) |
VOID | EmptyCommandHistory (IN PCOMMAND_HISTORY CommandHistory) |
BOOL | AtFirstCommand (IN PCOMMAND_HISTORY CommandHistory) |
BOOL | AtLastCommand (IN PCOMMAND_HISTORY CommandHistory) |
NTSTATUS | ProcessCommandLine (IN PCOOKED_READ_DATA CookedReadData, IN WCHAR Char, IN DWORD KeyState, IN PCSR_API_MSG WaitReplyMessage, IN PCSR_THREAD WaitingThread, IN BOOLEAN WaitRoutine) |
PCOMMAND | RemoveCommand (IN PCOMMAND_HISTORY CommandHistory, IN SHORT iDel) |
SHORT | FindMatchingCommand (IN PCOMMAND_HISTORY CommandHistory, IN PWCHAR pwszIn, IN ULONG cbIn, IN SHORT CommandIndex, IN DWORD Flags) |
VOID | DrawCommandListBorder (IN PCLE_POPUP Popup, IN PSCREEN_INFORMATION ScreenInfo) |
VOID | UpdateHighlight (IN PCLE_POPUP Popup, IN SHORT OldCurrentCommand, IN SHORT NewCurrentCommand, IN PSCREEN_INFORMATION ScreenInfo) |
VOID | DrawCommandListPopup (IN PCLE_POPUP Popup, IN SHORT CurrentCommand, IN PCOMMAND_HISTORY CommandHistory, IN PSCREEN_INFORMATION ScreenInfo) |
VOID | UpdateCommandListPopup (IN SHORT Delta, IN OUT PSHORT CurrentCommand, IN PCOMMAND_HISTORY CommandHistory, IN PCLE_POPUP Popup, IN PSCREEN_INFORMATION ScreenInfo, IN DWORD Flags) |
PCOMMAND_HISTORY | FindCommandHistory (IN PCONSOLE_INFORMATION Console, IN HANDLE ProcessHandle) |
VOID | FreeCommandHistory (IN PCONSOLE_INFORMATION Console, IN HANDLE ProcessHandle) |
VOID | FreeCommandHistoryBuffers (IN OUT PCONSOLE_INFORMATION Console) |
VOID | ResizeCommandHistoryBuffers (IN PCONSOLE_INFORMATION Console, IN UINT NumCommands) |
VOID | InitializeConsoleCommandData (IN PCONSOLE_INFORMATION Console) |
VOID | ResetCommandHistory (IN PCOMMAND_HISTORY CommandHistory) |
NTSTATUS | AddCommand (IN PCOMMAND_HISTORY CommandHistory, IN PWCHAR Command, IN USHORT Length, IN BOOL HistoryNoDup) |
NTSTATUS | RetrieveCommand (IN PCOMMAND_HISTORY CommandHistory, IN WORD VirtualKeyCode, IN PWCHAR Buffer, IN ULONG BufferSize, OUT PULONG CommandSize) |
ULONG | SrvGetConsoleTitle (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
ULONG | SrvSetConsoleTitle (IN OUT PCSR_API_MSG m, IN OUT PCSR_REPLY_STATUS ReplyStatus) |
int | LoadStringExW (IN HINSTANCE hModule, IN UINT wID, OUT LPWSTR lpBuffer, IN int cchBufferMax, IN WORD wLangId) |
Variables | |
ExtKeyDefTable | gaKeyDef |
CONST ExtKeyDefTable | gaDefaultKeyDef |
WCHAR | gaWordDelimChars [WORD_DELIM_MAX] |
CONST WCHAR | gaWordDelimCharsDefault [WORD_DELIM_MAX] = L"\\" L"+!:=/.<>;|&" |
|
Definition at line 75 of file server/cmdline.c. Referenced by ParseEditKeyInfo(). |
|
Definition at line 71 of file server/cmdline.c. Referenced by ProcessCommandListInput(), SrvGetConsoleAlias(), SrvGetConsoleAliases(), SrvGetConsoleAliasExes(), and SrvGetConsoleCommandHistory(). |
|
Definition at line 65 of file server/cmdline.c. Referenced by CommandNumberPopup(), ProcessCommandLine(), and ProcessCommandListInput(). |
|
Definition at line 64 of file server/cmdline.c. Referenced by ProcessCommandLine(), and ProcessCommandListInput(). |
|
Definition at line 62 of file server/cmdline.c. Referenced by ProcessCommandLine(). |
|
Definition at line 61 of file server/cmdline.c. Referenced by ProcessCommandLine(). |
|
Value: Definition at line 78 of file server/cmdline.c. Referenced by HandleKeyEvent(), and IsPauseKey(). |
|
Definition at line 76 of file server/cmdline.c. Referenced by ParseEditKeyInfo(), and ProcessCommandLine(). |
|
Definition at line 1102 of file server/cmdline.c. Referenced by MatchandCopyAlias(). |
|
Definition at line 66 of file server/cmdline.c. Referenced by CommandNumberPopup(), ProcessCommandLine(), and ProcessCommandListInput(). |
|
Definition at line 391 of file server/cmdline.c. Referenced by FindMatchingCommand(). |
|
Definition at line 390 of file server/cmdline.c. Referenced by AllocateCommandHistory(), FindAlias(), FindExe(), and FindExeCommandHistory(). |
|
Definition at line 483 of file server/cmdline.c. References ALIAS_TAG, ConsoleHeapAlloc, ConsoleHeapFree, _ALIAS::ListLink, MAKE_TAG, NULL, _ALIAS::Source, _ALIAS::SourceLength, _ALIAS::Target, and _ALIAS::TargetLength. Referenced by SrvAddConsoleAlias().
|
|
Definition at line 4744 of file server/cmdline.c. References ASSERT, CLE_ALLOCATED, CLE_RESET, COMMAND, COMMAND_IND_INC, COMMAND_IND_PREV, ConsoleHeapAlloc, ConsoleHeapFree, FindMatchingCommand(), FMCFL_EXACT_MATCH, HISTORY_TAG, MAKE_TAG, NULL, RemoveCommand(), ResetCommandHistory(), and SHORT. Referenced by CookedRead().
|
|
Definition at line 329 of file server/cmdline.c. References ALIAS_TAG, _EXE_ALIAS_LIST::AliasList, ConsoleHeapAlloc, ConsoleHeapFree, ConvertInputToUnicode(), EXE_ALIAS_LIST, _EXE_ALIAS_LIST::ExeLength, _EXE_ALIAS_LIST::ExeName, _EXE_ALIAS_LIST::ListLink, MAKE_TAG, NULL, and USHORT. Referenced by SrvAddConsoleAlias().
|
|
Definition at line 1683 of file server/cmdline.c. References ASSERT, BOOL, CLE_ALLOCATED, CLE_NO_POPUPS, ConsoleHeapAlloc, ConsoleHeapFree, DBGPRINT, FALSE, History, HISTORY_TAG, MAKE_TAG, my_wcsncmpi, NULL, SHORT, TRUE, and USHORT. Referenced by ConsoleClientConnectRoutine(), and SrvAllocConsole().
|
|
Definition at line 3245 of file server/cmdline.c. References CLE_RESET, FALSE, NULL, and SHORT. Referenced by ProcessCommandLine().
|
|
Definition at line 3262 of file server/cmdline.c. Referenced by ProcessCommandLine().
|
|
Definition at line 1817 of file server/cmdline.c. References _CLE_POPUP::Attributes, _CLE_POPUP::BottomIndex, CLE_POPUP, CLEPF_FALSE_UNICODE, COMMAND_INDEX_TO_NUM, CONSOLE_OEMFONT_DISPLAY, CONSOLE_WINDOW_SIZE_X, CONSOLE_WINDOW_SIZE_Y, ConsoleHeapAlloc, ConsoleHeapFree, DrawCommandListBorder(), _CLE_POPUP::Flags, _CLE_POPUP::ListLink, MAKE_TAG, NULL, _CLE_POPUP::OldContents, PCLE_POPUP, ReadScreenBuffer(), _CLE_POPUP::Region, SHORT, Size, and TMP_TAG. Referenced by ProcessCommandLine(), and ProcessCommandListInput().
|
|
Definition at line 1993 of file server/cmdline.c. References CLE_NO_POPUPS, and EndPopup(). Referenced by CookedReadWaitRoutine().
|
|
Definition at line 878 of file server/cmdline.c. References _EXE_ALIAS_LIST::AliasList, FindExe(), L, NULL, RemoveAlias(), and TRUE. Referenced by ProcessCommandLine().
|
|
Definition at line 2935 of file server/cmdline.c. References _CLE_POPUP::BottomIndex, COMMAND_INDEX_TO_NUM, _CLE_POPUP::CurrentCommand, DrawCommandListPopup(), _COMMAND_HISTORY::LastDisplayed, max, _COMMAND_HISTORY::NumberOfCommands, PCLE_POPUP_INPUT_ROUTINE, POPUP_SIZE_Y, _CLE_POPUP::PopupInputRoutine, _COMMAND_HISTORY::PopupList, ProcessCommandListInput(), and SHORT. Referenced by ProcessCommandLine().
|
|
Definition at line 3150 of file server/cmdline.c. References COMMAND_NUMBER_LENGTH, DrawPromptPopup(), GetConsoleLangId(), ghInstance, LoadStringEx, MINIMUM_COMMAND_PROMPT_SIZE, msgCmdLineF9, NT_SUCCESS, NTSTATUS(), _CLE_POPUP::NumberRead, PCLE_POPUP_INPUT_ROUTINE, POPUP_SIZE_X, _CLE_POPUP::PopupInputRoutine, _COMMAND_HISTORY::PopupList, ProcessCommandNumberInput(), _CLE_POPUP::Region, SetCursorPosition(), SHORT, Status, and TRUE. Referenced by ProcessCommandLine(), and ProcessCommandListInput().
|
|
Definition at line 3040 of file server/cmdline.c. References DrawPromptPopup(), GetConsoleLangId(), ghInstance, LoadStringEx, msgCmdLineF4, NT_SUCCESS, NTSTATUS(), PCLE_POPUP_INPUT_ROUTINE, _CLE_POPUP::PopupInputRoutine, _COMMAND_HISTORY::PopupList, ProcessCopyFromCharInput(), and Status. Referenced by ProcessCommandLine().
|
|
Definition at line 3096 of file server/cmdline.c. References DrawPromptPopup(), GetConsoleLangId(), ghInstance, LoadStringEx, msgCmdLineF2, NT_SUCCESS, NTSTATUS(), PCLE_POPUP_INPUT_ROUTINE, _CLE_POPUP::PopupInputRoutine, _COMMAND_HISTORY::PopupList, ProcessCopyToCharInput(), and Status. Referenced by ProcessCommandLine().
|
|
Definition at line 2009 of file server/cmdline.c. References CONSOLE_FALSE_UNICODE, DWORD, FillOutput, SetCursorPosition(), and TRUE. Referenced by ProcessCommandLine(), ProcessCommandNumberInput(), ProcessCookedReadInput(), ProcessCopyFromCharInput(), PropertiesUpdate(), and SetCurrentCommandLine().
|
|
Definition at line 4123 of file server/cmdline.c. References CONSOLE_ATTRIBUTE, CONSOLE_REAL_UNICODE, else, FillOutput, POPUP_SIZE_X, POPUP_SIZE_Y, and SHORT. Referenced by BeginPopup().
|
|
Definition at line 4346 of file server/cmdline.c. References CHAR, COMMAND_NUM_TO_INDEX, COMMAND_NUMBER_SIZE, CONSOLE_ASCII, CONSOLE_ATTRIBUTE, CONSOLE_FALSE_UNICODE, CONSOLE_OEMFONT_DISPLAY, CONSOLE_REAL_UNICODE, ConsoleHeapAlloc, ConsoleHeapFree, DWORD, FalseUnicodeToRealUnicode(), FillOutput, MAKE_TAG, max, NULL, POPUP_SIZE_X, POPUP_SIZE_Y, SHORT, and WriteOutputString. Referenced by CommandListPopup(), and UpdateCommandListPopup().
|
|
Definition at line 2986 of file server/cmdline.c. References CONSOLE_ATTRIBUTE, CONSOLE_FALSE_UNICODE, CONSOLE_REAL_UNICODE, FillOutput, NULL, POPUP_SIZE_X, POPUP_SIZE_Y, SHORT, and WriteOutputString. Referenced by CommandNumberPopup(), CopyFromCharPopup(), and CopyToCharPopup().
|
|
Definition at line 3227 of file server/cmdline.c. References CLE_RESET, ConsoleHeapFree, NULL, and SHORT. Referenced by ProcessCommandLine(), and SrvExpungeConsoleCommandHistory().
|
|
Definition at line 1910 of file server/cmdline.c. References ASSERT, CLE_NO_POPUPS, CLEPF_FALSE_UNICODE, CONSOLE_OEMFONT_DISPLAY, ConsoleHeapFree, ConsoleHideCursor(), ConsoleShowCursor(), FALSE, _CLE_POPUP::Flags, _CLE_POPUP::ListLink, NULL, _CLE_POPUP::OldContents, _CLE_POPUP::Region, SHORT, Size, TranslateOutputToAnsiUnicode(), TranslateOutputToOemUnicode(), WriteScreenBuffer(), and WriteToScreen. Referenced by CleanUpPopups(), ProcessCommandListInput(), ProcessCommandNumberInput(), ProcessCopyFromCharInput(), and ProcessCopyToCharInput().
|
|
Definition at line 447 of file server/cmdline.c. References ALIAS, my_wcsncmpi, NULL, _ALIAS::Source, and _ALIAS::SourceLength. Referenced by MatchandCopyAlias(), SrvAddConsoleAlias(), and SrvGetConsoleAlias().
|
|
Definition at line 4564 of file server/cmdline.c. References ASSERT, CLE_ALLOCATED, History, and NULL. Referenced by FreeCommandHistory(), and SrvReadConsole().
|
|
Definition at line 394 of file server/cmdline.c. References ConsoleHeapAlloc, ConsoleHeapFree, ConvertInputToUnicode(), _EXE_ALIAS_LIST::ExeLength, _EXE_ALIAS_LIST::ExeName, MAKE_TAG, my_wcsncmpi, NULL, TMP_TAG, and USHORT. Referenced by ClearAliases(), MatchandCopyAlias(), SrvAddConsoleAlias(), SrvGetConsoleAlias(), SrvGetConsoleAliases(), and SrvGetConsoleAliasesLength().
|
|
Definition at line 1637 of file server/cmdline.c. References CLE_ALLOCATED, ConsoleHeapAlloc, ConsoleHeapFree, ConvertInputToUnicode(), History, MAKE_TAG, my_wcsncmpi, NULL, TMP_TAG, Unicode, and USHORT. Referenced by SrvExpungeConsoleCommandHistory(), SrvGetConsoleCommandHistory(), SrvGetConsoleCommandHistoryLength(), and SrvSetConsoleNumberOfCommands().
|
|
Definition at line 4078 of file server/cmdline.c. References CLE_RESET, _COMMAND::Command, COMMAND_IND_PREV, _COMMAND::CommandLength, FMCFL_EXACT_MATCH, FMCFL_JUST_LOOKING, my_wcsncmp, SHORT, and USHORT. Referenced by AddCommand(), ProcessCommandLine(), and ProcessCommandListInput().
|
|
Definition at line 591 of file server/cmdline.c. References FreeAliasList(). Referenced by AbortCreateConsole(), and DestroyWindowsWindow().
|
|
Definition at line 571 of file server/cmdline.c. References ConsoleHeapFree, and RemoveAlias(). Referenced by FreeAliasBuffers().
|
|
Definition at line 4605 of file server/cmdline.c. References CLE_ALLOCATED, FindCommandHistory(), History, and NULL. Referenced by RemoveConsole().
|
|
Definition at line 4640 of file server/cmdline.c. References ConsoleHeapFree, History, and SHORT. Referenced by AbortCreateConsole(), and DestroyWindowsWindow().
|
|
Definition at line 3217 of file server/cmdline.c. References NULL. Referenced by ProcessCommandLine(), and ProcessCopyToCharInput().
|
|
Definition at line 186 of file server/cmdline.c. References BYTE, DbgPrint, DWORD, gaDefaultKeyDef, gaKeyDef, NULL, and VOID(). Referenced by GetRegistryValues().
|
|
Definition at line 4700 of file server/cmdline.c. Referenced by AllocateConsole().
|
|
Definition at line 2214 of file server/cmdline.c. References FALSE, gExtendedEditKey, ParseEditKeyInfo(), and TRUE.
|
|
Definition at line 2179 of file server/cmdline.c. References FALSE, gExtendedEditKey, ParseEditKeyInfo(), and TRUE. Referenced by GetChar().
|
|
Definition at line 289 of file server/cmdline.c. References BOOL, CTRL_BUT_NOT_ALT, gExtendedEditKey, L, NULL, and ParseEditKeyInfo(). Referenced by PreprocessInput().
|
|
Definition at line 309 of file server/cmdline.c. References ASSERT, BOOL, FALSE, gaWordDelimChars, L, TRUE, and WORD_DELIM_MAX.
|
|
Definition at line 4995 of file server/cmdline.c. References NULL, TRUE, USHORT, and UTCHAR.
|
|
Definition at line 1105 of file server/cmdline.c. References Buffer, ConsoleHeapAlloc, ConsoleHeapFree, FindAlias(), FindExe(), MAKE_TAG, MAX_ARGS, NTSTATUS(), NULL, Status, _ALIAS::Target, _ALIAS::TargetLength, TMP_TAG, TRUE, UNICODE_CARRIAGERETURN, UNICODE_LINEFEED, and USHORT. Referenced by CookedRead(), and ProcessCommandListInput().
|
|
Definition at line 369 of file server/cmdline.c. References RtlCompareUnicodeString(), String1, and String2. Referenced by SearchForString(), and TranslateConsoleTitle().
|
|
Definition at line 229 of file server/cmdline.c. References ALT_PRESSED, ASSERT, CTRL_PRESSED, gaKeyDef, gExtendedEditKey, and NULL. Referenced by IsCommandLineEditingKey(), IsCommandLinePopupKey(), and IsPauseKey().
|
|
Definition at line 3272 of file server/cmdline.c. References AdjustCursorPosition, ASSERT, AT_EOL, AtFirstCommand(), AtLastCommand(), BeginPopup(), BOOL, CLE_ALLOCATED, ClearAliases(), _COMMAND::Command, COMMAND_NUM_TO_INDEX, COMMAND_NUMBER_LENGTH, COMMAND_NUMBER_PROMPT_LENGTH, _COMMAND::CommandLength, CommandListPopup(), CommandNumberPopup(), CONSOLE_IS_DBCS_ENABLED, COPY_FROM_CHAR_PROMPT_LENGTH, COPY_TO_CHAR_PROMPT_LENGTH, CopyFromCharPopup(), CopyToCharPopup(), CTRL_PRESSED, DBGPRINT, DeleteCommandLine(), DWORD, EmptyCommandHistory(), FALSE, FindMatchingCommand(), GetLastCommand(), IS_WORD_DELIM, MINIMUM_COMMAND_PROMPT_SIZE, NT_SUCCESS, NTSTATUS(), NULL, PBYTE, RetrieveCommand(), RetrieveNthCommand(), RetrieveNumberOfSpaces(), RetrieveTotalNumberOfSpaces(), SetCursorMode(), SetCursorPosition(), SHORT, Status, TRUE, USHORT, WC_DESTRUCTIVE_BACKSPACE, WC_ECHO, WC_KEEP_CURSOR_VISIBLE, and WriteCharsFromInput(). Referenced by CookedRead(), and ProcessCookedReadInput().
|
|
Definition at line 2287 of file server/cmdline.c. References ASSERT, BeginPopup(), _INPUT_READ_HANDLE_DATA::BufPtr, _INPUT_READ_HANDLE_DATA::BytesAvailable, CHAR_COUNT, CloseOutputHandle(), COMMAND_NUMBER_LENGTH, COMMAND_NUMBER_PROMPT_LENGTH, _COOKED_READ_DATA::CommandHistory, CommandNumberPopup(), _COOKED_READ_DATA::Console, CONSOLE_FROMTHREADPERPROCESSDATA, CONSOLE_STATUS_READ_COMPLETE, CONSOLE_STATUS_WAIT, CONSOLE_STATUS_WAIT_NO_BLOCK, ConsoleHeapAlloc, ConsoleHeapFree, ConvertToOem(), CookedReadWaitRoutine(), _INPUT_READ_HANDLE_DATA::CurrentBufPtr, _CLE_POPUP::CurrentCommand, DereferenceIoHandleNoCheck(), DWORD, EndPopup(), FALSE, FindMatchingCommand(), FMCFL_JUST_LOOKING, GetChar(), HANDLE_INPUT_PENDING, HANDLE_MULTI_LINE_INPUT, _COOKED_READ_DATA::HandleIndex, Index, _INPUT_READ_HANDLE_DATA::InputHandleFlags, _COOKED_READ_DATA::InputInfo, _HANDLE_DATA::InputReadData, MAKE_TAG, MatchandCopyAlias(), MINIMUM_COMMAND_PROMPT_SIZE, NT_SUCCESS, NTSTATUS(), NULL, _COMMAND_HISTORY::NumberOfCommands, _CONSOLE_READCONSOLE_MSG::NumBytes, PBYTE, PCONSOLE_READCONSOLE_MSG, POPUP_SIZE_Y, _COMMAND_HISTORY::PopupList, ProcessCookedReadInput(), _COOKED_READ_DATA::ProcessData, PUSHORT, _INPUT_READ_HANDLE_DATA::ReadCount, SetCurrentCommandLine(), SHORT, Status, TMP_TAG, TRUE, UCLP_WRAP, _CONSOLE_READCONSOLE_MSG::Unicode, UNICODE_CARRIAGERETURN, UNICODE_LINEFEED, UpdateCommandListPopup(), and USHORT. Referenced by CommandListPopup().
|
|
Definition at line 2793 of file server/cmdline.c. References ASSERT, _CLE_POPUP::Attributes, CHAR, CLE_NO_POPUPS, COMMAND_NUM_TO_INDEX, _COOKED_READ_DATA::CommandHistory, _COOKED_READ_DATA::Console, CONSOLE_STATUS_WAIT, CONSOLE_STATUS_WAIT_NO_BLOCK, CookedReadWaitRoutine(), DeleteCommandLine(), DereferenceIoHandleNoCheck(), DWORD, EndPopup(), GetChar(), _COOKED_READ_DATA::HandleIndex, _COOKED_READ_DATA::InputInfo, _HANDLE_DATA::InputReadData, NT_SUCCESS, NTSTATUS(), NULL, _CLE_POPUP::NumberBuffer, _CLE_POPUP::NumberRead, _COMMAND_HISTORY::PopupList, _COOKED_READ_DATA::ProcessData, _INPUT_READ_HANDLE_DATA::ReadCount, SetCurrentCommandLine(), SHORT, Status, TRUE, UNICODE_BACKSPACE, UNICODE_CARRIAGERETURN, WC_DESTRUCTIVE_BACKSPACE, WC_ECHO, WC_KEEP_CURSOR_VISIBLE, and WriteCharsFromInput(). Referenced by CommandNumberPopup().
|
|
Definition at line 2546 of file server/cmdline.c. References ASSERT, _COOKED_READ_DATA::Console, CONSOLE_STATUS_WAIT, CONSOLE_STATUS_WAIT_NO_BLOCK, CookedReadWaitRoutine(), DeleteCommandLine(), DereferenceIoHandleNoCheck(), EndPopup(), FALSE, GetChar(), _COOKED_READ_DATA::HandleIndex, _COOKED_READ_DATA::InputInfo, _HANDLE_DATA::InputReadData, NT_SUCCESS, NTSTATUS(), NULL, _COOKED_READ_DATA::ProcessData, _INPUT_READ_HANDLE_DATA::ReadCount, SetCursorPosition(), Status, TRUE, WC_DESTRUCTIVE_BACKSPACE, WC_ECHO, WC_KEEP_CURSOR_VISIBLE, and WriteCharsFromInput(). Referenced by CopyFromCharPopup().
|
|
Definition at line 2677 of file server/cmdline.c. References ASSERT, _COMMAND::Command, _COMMAND::CommandLength, _COOKED_READ_DATA::Console, CONSOLE_STATUS_WAIT, CONSOLE_STATUS_WAIT_NO_BLOCK, CookedReadWaitRoutine(), DereferenceIoHandleNoCheck(), DWORD, EndPopup(), GetChar(), GetLastCommand(), _COOKED_READ_DATA::HandleIndex, _COOKED_READ_DATA::InputInfo, _HANDLE_DATA::InputReadData, NT_SUCCESS, NTSTATUS(), NULL, _COOKED_READ_DATA::ProcessData, _INPUT_READ_HANDLE_DATA::ReadCount, SHORT, Status, TRUE, USHORT, WC_DESTRUCTIVE_BACKSPACE, WC_ECHO, WC_KEEP_CURSOR_VISIBLE, and WriteCharsFromInput(). Referenced by CopyToCharPopup().
|
|
Definition at line 1597 of file server/cmdline.c. References CLE_RESET, COMMAND_HISTORY, COMMAND_NUM_TO_INDEX, ConsoleHeapAlloc, ConsoleHeapFree, History, HISTORY_TAG, MAKE_TAG, min, NULL, and SHORT. Referenced by ResizeCommandHistoryBuffers(), and SrvSetConsoleNumberOfCommands().
|
|
Definition at line 2061 of file server/cmdline.c. References AdjustCursorPosition, ASSERT, NT_SUCCESS, NTSTATUS(), NULL, RetrieveTotalNumberOfSpaces(), SHORT, Status, TRUE, WC_DESTRUCTIVE_BACKSPACE, WC_ECHO, WC_KEEP_CURSOR_VISIBLE, and WriteCharsFromInput().
|
|
Definition at line 552 of file server/cmdline.c. References ConsoleHeapFree. Referenced by ClearAliases(), FreeAliasList(), and SrvAddConsoleAlias().
|
|
Definition at line 4026 of file server/cmdline.c. References COMMAND_IND_DEC, COMMAND_IND_INC, COMMAND_INDEX_TO_NUM, NULL, and SHORT. Referenced by AddCommand().
|
|
Definition at line 524 of file server/cmdline.c. References ALIAS_TAG, ConsoleHeapAlloc, ConsoleHeapFree, MAKE_TAG, and NULL. Referenced by SrvAddConsoleAlias().
|
|
Definition at line 4726 of file server/cmdline.c. References CLE_RESET, and NULL. Referenced by AddCommand().
|
|
Definition at line 4665 of file server/cmdline.c. References CLE_ALLOCATED, _COOKED_READ_DATA::CommandHistory, History, ReallocCommandHistory(), and SHORT. Referenced by PropertiesUpdate().
|
|
Definition at line 4834 of file server/cmdline.c. References ASSERT, Buffer, BufferSize, CLE_ALLOCATED, CLE_RESET, COMMAND_IND_NEXT, COMMAND_IND_PREV, NULL, and RetrieveNthCommand(). Referenced by ProcessCommandLine().
|
|
Definition at line 2111 of file server/cmdline.c. References ASSERT, Buffer, BufferSize, _COMMAND::Command, _COMMAND::CommandLength, Index, and USHORT. Referenced by ProcessCommandLine(), RetrieveCommand(), and SetCurrentCommandLine().
|
|
Definition at line 2136 of file server/cmdline.c. References ASSERT, DeleteCommandLine(), DWORD, Index, NT_SUCCESS, NTSTATUS(), RetrieveNthCommand(), SHORT, Status, TRUE, WC_DESTRUCTIVE_BACKSPACE, WC_ECHO, WC_KEEP_CURSOR_VISIBLE, and WriteCharsFromInput(). Referenced by ProcessCommandListInput(), and ProcessCommandNumberInput().
|
|
Definition at line 608 of file server/cmdline.c. References AddAlias(), AddExeAliasList(), ApiPreamble(), BYTE, _CONSOLE_ADDALIAS_MSG::ConsoleHandle, ConsoleHeapAlloc, ConsoleHeapFree, ConvertInputToUnicode(), _CONSOLE_INFORMATION::CP, _CONSOLE_ADDALIAS_MSG::Exe, _CONSOLE_ADDALIAS_MSG::ExeLength, FindAlias(), FindExe(), MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, RemoveAlias(), ReplaceAlias(), _CONSOLE_ADDALIAS_MSG::Source, _CONSOLE_ADDALIAS_MSG::SourceLength, Status, _CONSOLE_ADDALIAS_MSG::Target, _CONSOLE_ADDALIAS_MSG::TargetLength, TMP_TAG, _CONSOLE_ADDALIAS_MSG::Unicode, _CONSOLE_ADDALIAS_MSG::UnicodeExe, UnlockConsole(), and USHORT.
|
|
|
Definition at line 731 of file server/cmdline.c. References ApiPreamble(), BYTE, CHAR_COUNT, _CONSOLE_GETALIAS_MSG::ConsoleHandle, ConsoleHeapAlloc, ConsoleHeapFree, ConvertInputToUnicode(), ConvertToOem(), _CONSOLE_INFORMATION::CP, _CONSOLE_GETALIAS_MSG::Exe, _CONSOLE_GETALIAS_MSG::ExeLength, FindAlias(), FindExe(), L, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, _CONSOLE_GETALIAS_MSG::Source, _CONSOLE_GETALIAS_MSG::SourceLength, Status, _CONSOLE_GETALIAS_MSG::Target, _ALIAS::Target, _CONSOLE_GETALIAS_MSG::TargetLength, _ALIAS::TargetLength, TMP_TAG, _CONSOLE_GETALIAS_MSG::Unicode, _CONSOLE_GETALIAS_MSG::UnicodeExe, UnlockConsole(), and USHORT.
|
|
Definition at line 903 of file server/cmdline.c. References _CONSOLE_GETALIASES_MSG::AliasesBuffer, _CONSOLE_GETALIASES_MSG::AliasesBufferLength, _EXE_ALIAS_LIST::AliasList, ApiPreamble(), BYTE, CHAR, CHAR_COUNT, _CONSOLE_GETALIASES_MSG::ConsoleHandle, ConvertToOem(), _CONSOLE_INFORMATION::CP, DWORD, _CONSOLE_GETALIASES_MSG::Exe, _CONSOLE_GETALIASES_MSG::ExeLength, FindExe(), NT_SUCCESS, NTSTATUS(), _ALIAS::Source, _ALIAS::SourceLength, Status, _ALIAS::Target, _ALIAS::TargetLength, _CONSOLE_GETALIASES_MSG::Unicode, _CONSOLE_GETALIASES_MSG::UnicodeExe, UnlockConsole(), and USHORT.
|
|
Definition at line 834 of file server/cmdline.c. References _CONSOLE_GETALIASESLENGTH_MSG::AliasesLength, _EXE_ALIAS_LIST::AliasList, ApiPreamble(), BYTE, _CONSOLE_GETALIASESLENGTH_MSG::ConsoleHandle, _CONSOLE_GETALIASESLENGTH_MSG::Exe, _CONSOLE_GETALIASESLENGTH_MSG::ExeLength, FindExe(), NT_SUCCESS, NTSTATUS(), _ALIAS::SourceLength, Status, _ALIAS::TargetLength, _CONSOLE_GETALIASESLENGTH_MSG::Unicode, _CONSOLE_GETALIASESLENGTH_MSG::UnicodeExe, and UnlockConsole().
|
|
Definition at line 1029 of file server/cmdline.c. References _CONSOLE_GETALIASEXES_MSG::AliasExesBuffer, _CONSOLE_GETALIASEXES_MSG::AliasExesBufferLength, ApiPreamble(), BYTE, CHAR, CHAR_COUNT, _CONSOLE_GETALIASEXES_MSG::ConsoleHandle, ConvertToOem(), _CONSOLE_INFORMATION::CP, DWORD, _CONSOLE_INFORMATION::ExeAliasList, _EXE_ALIAS_LIST::ExeLength, _EXE_ALIAS_LIST::ExeName, NT_SUCCESS, NTSTATUS(), Status, _CONSOLE_GETALIASEXES_MSG::Unicode, UnlockConsole(), and USHORT.
|
|
Definition at line 994 of file server/cmdline.c. References _CONSOLE_GETALIASEXESLENGTH_MSG::AliasExesLength, ApiPreamble(), _CONSOLE_GETALIASEXESLENGTH_MSG::ConsoleHandle, _CONSOLE_INFORMATION::ExeAliasList, _EXE_ALIAS_LIST::ExeLength, NT_SUCCESS, NTSTATUS(), Status, _CONSOLE_GETALIASEXESLENGTH_MSG::Unicode, and UnlockConsole().
|
|
Definition at line 1500 of file server/cmdline.c. References ApiPreamble(), BYTE, CHAR, CHAR_COUNT, _COMMAND::Command, _CONSOLE_GETCOMMANDHISTORY_MSG::CommandBuffer, _CONSOLE_GETCOMMANDHISTORY_MSG::CommandBufferLength, _COMMAND::CommandLength, _COMMAND_HISTORY::Commands, _CONSOLE_GETCOMMANDHISTORY_MSG::ConsoleHandle, ConvertToOem(), _CONSOLE_INFORMATION::CP, _CONSOLE_GETCOMMANDHISTORY_MSG::Exe, _CONSOLE_GETCOMMANDHISTORY_MSG::ExeLength, FindExeCommandHistory(), NT_SUCCESS, NTSTATUS(), _COMMAND_HISTORY::NumberOfCommands, SHORT, Status, _CONSOLE_GETCOMMANDHISTORY_MSG::Unicode, _CONSOLE_GETCOMMANDHISTORY_MSG::UnicodeExe, UnlockConsole(), and USHORT.
|
|
|
Definition at line 4879 of file server/cmdline.c. References ApiPreamble(), BYTE, _CONSOLE_GETTITLE_MSG::ConsoleHandle, ConvertToOem(), _CONSOLE_INFORMATION::CP, NT_SUCCESS, NTSTATUS(), OEMCP, Status, _CONSOLE_GETTITLE_MSG::Title, _CONSOLE_INFORMATION::Title, _CONSOLE_GETTITLE_MSG::TitleLength, _CONSOLE_INFORMATION::TitleLength, _CONSOLE_GETTITLE_MSG::Unicode, UnlockConsole(), and USHORT.
|
|
Definition at line 1575 of file server/cmdline.c. References ApiPreamble(), _CONSOLE_SETCOMMANDHISTORYMODE_MSG::ConsoleHandle, _CONSOLE_SETCOMMANDHISTORYMODE_MSG::Flags, _CONSOLE_INFORMATION::InsertMode, NT_SUCCESS, NTSTATUS(), Status, and UnlockConsole().
|
|
|
Definition at line 4929 of file server/cmdline.c. References ApiPreamble(), BYTE, CM_UPDATE_TITLE, _CONSOLE_SETTITLE_MSG::ConsoleHandle, ConsoleHeapAlloc, ConsoleHeapFree, ConvertInputToUnicode(), _CONSOLE_INFORMATION::CP, _CONSOLE_INFORMATION::hWnd, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, OEMCP, PostMessage(), Status, _CONSOLE_SETTITLE_MSG::Title, _CONSOLE_INFORMATION::Title, TITLE_TAG, _CONSOLE_SETTITLE_MSG::TitleLength, _CONSOLE_INFORMATION::TitleLength, _CONSOLE_SETTITLE_MSG::Unicode, UnlockConsole(), and USHORT.
|
|
Definition at line 4500 of file server/cmdline.c. References BOOL, COMMAND_INDEX_TO_NUM, COMMAND_NUM_TO_INDEX, DrawCommandListPopup(), FALSE, POPUP_SIZE_Y, SHORT, Size, TRUE, UCLP_WRAP, and UpdateHighlight(). Referenced by ProcessCommandListInput().
|
|
Definition at line 4301 of file server/cmdline.c. References CONSOLE_ATTRIBUTE, FillOutput, POPUP_SIZE_X, POPUP_SIZE_Y, and SHORT. Referenced by UpdateCommandListPopup().
|
|
Definition at line 88 of file server/cmdline.c. Referenced by InitExtendedEditKeys(). |
|
Definition at line 86 of file server/cmdline.c. Referenced by InitExtendedEditKeys(), and ParseEditKeyInfo(). |
|
Definition at line 306 of file server/cmdline.c. Referenced by GetRegistryValues(), and IsWordDelim(). |
|
Definition at line 307 of file server/cmdline.c. Referenced by GetRegistryValues(). |