140 pSettings =
new (std::nothrow)
CSettings();
168 #define INPUT_BUFFER_SIZE 1024 175 if (pchCommand ==
NULL)
184 WORD wOldConsoleAttribute;
228 int nCommandReturnValue;
229 switch(CommandsList.
Execute(Parser,nCommandReturnValue))
235 size_t cmdlen =
_tcslen(pchCommandItself);
237 (pchCommandItself[cmdlen-1] !=
_T(
'\\'))||
HRESULT SetPrompt(LPCTSTR pszPrompt)
void SetArgumentList(TCHAR *pchArguments)
void ShowPrompt(CConsole &rConsole)
WORD GetCommandTextAttributes()
int Execute(CArgumentParser &rArgumentParser, int &nReturnValue)
void BeginScrollingOperation()
TCHAR pchCurrentKey[PROMPT_BUFFER_SIZE]
BOOL HelpCommand(PCOMMAND pCommand)
#define PROMPT_BUFFER_SIZE
BOOL SetTitle(const TCHAR *p)
BOOL SetTextAttribute(WORD wAttributes)
BOOL ChangeCurrentKey(const TCHAR *pchRelativePath)
BOOL WINAPI DECLSPEC_HOTPATCH SetConsoleCtrlHandler(PHANDLER_ROUTINE HandlerRoutine, BOOL Add)
TCHAR * GetNextArgument()
void ResetArgumentIteration()
size_t __cdecl _tcslen(const _TCHAR *str)
BOOL blnCommandExecutionInProgress
BOOL GetTextAttribute(WORD &rwAttributes)
#define INPUT_BUFFER_SIZE
WORD GetNormalTextAttributes()
void SetReplaceCompletionCallback(ReplaceCompletionCallback pfCallback)
HRESULT Load(LPCTSTR pszLoadKey)
BOOL Write(const TCHAR *p, DWORD dwChars=0)
BOOL WINAPI HandlerRoutine(DWORD dwCtrlType)
TCHAR * Init(DWORD dwBufferSize, DWORD dwMaxHistoryLines=0)
#define SETTINGS_REGISTRY_KEY
const TCHAR * CompletionCallback(unsigned __int64 &rnIndex, const BOOL *pblnForward, const TCHAR *pszContext, const TCHAR *pszBegin)
BOOL(CALLBACK * PHANDLER_ROUTINE)(_In_ DWORD)
void AddCommand(CShellCommand *pCommand)