ReactOS
0.4.15-dev-1632-g4e289ce
|
Go to the source code of this file.
Macros | |
#define | SHELLEXECUTETEXT "ShellExecuteExA" |
#define | SeenGoto() (bc && bc->current == NULL) |
#define | APPEND(From, Length) |
#define | APPEND1(Char) |
#define | APPEND(From, Length) |
#define | APPEND1(Char) |
#define | APPEND1(Char) |
Typedefs | |
typedef NTSTATUS(WINAPI * | NtQueryInformationProcessProc) (HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG) |
typedef NTSTATUS(WINAPI * | NtReadVirtualMemoryProc) (HANDLE, PVOID, PVOID, SIZE_T, PSIZE_T) |
typedef BOOL(WINAPI * | MYEX) (LPSHELLEXECUTEINFO lpExecInfo) |
Variables | |
BOOL | bExit = FALSE |
BOOL | bCanExit = TRUE |
BOOL | bCtrlBreak = FALSE |
BOOL | bIgnoreEcho = FALSE |
static BOOL | fSingleCommand = 0 |
static BOOL | bAlwaysStrip = FALSE |
INT | nErrorLevel = 0 |
CRITICAL_SECTION | ChildProcessRunningLock |
BOOL | bDisableBatchEcho = FALSE |
BOOL | bEnableExtensions = TRUE |
BOOL | bDelayedExpansion = FALSE |
DWORD | dwChildProcessId = 0 |
LPTSTR | lpOriginalEnvironment |
HANDLE | CMD_ModuleHandle |
BOOL | bTitleSet = FALSE |
TCHAR | szCurTitle [MAX_PATH] |
static NtQueryInformationProcessProc | NtQueryInformationProcessPtr = NULL |
static NtReadVirtualMemoryProc | NtReadVirtualMemoryPtr = NULL |
CON_STREAM_MODE | OutputStreamMode = UTF8Text |
WORD | wDefColor = 0 |
#define APPEND1 | ( | Char | ) |
#define APPEND1 | ( | Char | ) |
#define APPEND1 | ( | Char | ) |
typedef BOOL(WINAPI * MYEX) (LPSHELLEXECUTEINFO lpExecInfo) |
Definition at line 2359 of file cmd.c.
Definition at line 1842 of file cmd.c.
Referenced by FilePromptYN(), FilePromptYNA(), Initialize(), and PagePrompt().
Definition at line 1797 of file cmd.c.
Referenced by AddBreakHandler(), and RemoveBreakHandler().
Definition at line 2318 of file cmd.c.
Referenced by _tmain().
Definition at line 189 of file cmd.c.
Referenced by CommandMemory(), DirPrintNewList(), DirPrintOldList(), PrintDiskInfo(), and PrintSummary().
INT DoCommand | ( | LPTSTR | first, |
LPTSTR | rest, | ||
PARSED_COMMAND * | Cmd | ||
) |
Definition at line 553 of file cmd.c.
Referenced by ExecuteCommand().
Definition at line 1638 of file cmd.c.
Referenced by Batch(), ExecuteCommand(), ExecuteFor(), ExecuteIf(), and PerformRedirection().
|
static |
Definition at line 347 of file cmd.c.
Referenced by DECLARE_INTERFACE_(), DoCommand(), and MiIsAccessAllowed().
|
static |
Definition at line 655 of file cmd.c.
Referenced by ExecutePipeline().
INT ExecuteCommand | ( | IN PARSED_COMMAND * | Cmd | ) |
Definition at line 778 of file cmd.c.
Referenced by ExecuteCommandWithEcho(), ExecuteIf(), ParseCommandLine(), and ProcessInput().
INT ExecuteCommandWithEcho | ( | IN PARSED_COMMAND * | Cmd | ) |
|
static |
Definition at line 689 of file cmd.c.
Referenced by ExecuteCommand().
Definition at line 1271 of file cmd.c.
Referenced by SubstituteVar().
|
static |
|
static |
Definition at line 971 of file cmd.c.
Referenced by GetBatchVar(), and SubstituteForVars().
Definition at line 882 of file cmd.c.
Referenced by Cleanup(), GetEnhancedVar(), and GetEnvVarOrSpecial().
Definition at line 900 of file cmd.c.
Referenced by ExecuteIf(), seta_identval(), and SubstituteVar().
Definition at line 2131 of file cmd.c.
Referenced by _tmain().
Definition at line 224 of file cmd.c.
Referenced by Execute().
Definition at line 1889 of file cmd.c.
Referenced by Initialize().
Definition at line 632 of file cmd.c.
Referenced by _tmain(), Cleanup(), ExecuteAutoRunFile(), and Initialize().
Definition at line 1770 of file cmd.c.
Referenced by _tmain().
Definition at line 1719 of file cmd.c.
Referenced by ParseChar(), and ParseCommand().
Definition at line 1848 of file cmd.c.
Referenced by Cleanup(), FilePromptYN(), FilePromptYNA(), and PagePrompt().
Definition at line 266 of file cmd.c.
Referenced by cmd_start(), and Execute().
Definition at line 1594 of file cmd.c.
Referenced by DoDelayedExpansion(), EchoCommand(), and UnparseCommand().
BOOL SubstituteVar | ( | IN PCTSTR | Src, |
OUT size_t * | SrcIncLen, | ||
OUT PTCHAR | Dest, | ||
IN PTCHAR | DestEnd, | ||
OUT size_t * | DestIncLen, | ||
IN TCHAR | Delim | ||
) |
Definition at line 1324 of file cmd.c.
Referenced by DoDelayedExpansion(), and SubstituteVars().
Definition at line 1512 of file cmd.c.
Referenced by ParseCommand(), and ReadLine().
Definition at line 157 of file cmd.c.
Referenced by _tmain(), and Initialize().
Definition at line 153 of file cmd.c.
Referenced by Initialize(), and ProcessInput().
Definition at line 154 of file cmd.c.
Referenced by BreakHandler(), cgetchar(), CheckCtrlBreak(), DeleteFolder(), DoTypeFile(), PagePrompt(), ProcessInput(), and ReadCommand().
Definition at line 162 of file cmd.c.
Referenced by cmd_endlocal(), cmd_setlocal(), DoDelayedExpansion(), Initialize(), and LoadRegistrySettings().
Definition at line 160 of file cmd.c.
Referenced by Batch(), ExecuteCommandWithEcho(), and Initialize().
Definition at line 161 of file cmd.c.
Referenced by Batch(), cmd_call(), cmd_chdir(), cmd_date(), cmd_endlocal(), cmd_goto(), cmd_setlocal(), cmd_time(), CommandExit(), ExecuteFor(), ExecuteIf(), GetEnvVarOrSpecial(), Initialize(), LoadRegistrySettings(), ParseFor(), ParseIf(), and SetRootPath().
Definition at line 152 of file cmd.c.
Referenced by _tmain(), Batch(), CommandExit(), ExecuteCommand(), Fbt_Dispatch(), Initialize(), ProcessInput(), ReadLine(), and WINHELP_DeleteWindow().
Definition at line 155 of file cmd.c.
Referenced by Batch(), CommandScreen(), ExecuteCommandWithEcho(), ParseCommand(), and ReadLine().
Definition at line 167 of file cmd.c.
Referenced by cmd_title(), ResetConTitle(), and SetConTitle().
CRITICAL_SECTION ChildProcessRunningLock |
Definition at line 159 of file cmd.c.
Referenced by _tmain(), BreakHandler(), Cleanup(), Execute(), and ExecutePipeline().
HANDLE CMD_ModuleHandle |
Definition at line 165 of file cmd.c.
Referenced by _tmain(), CheckCtrlBreak(), CommandChoice(), DirPrintFiles(), error_sfile_not_found(), error_syntax(), ErrorMessage(), FilePromptYN(), FilePromptYNA(), LoadStrings(), PrintDirectoryHeader(), PrintDiskInfo(), PrintInfoLine(), and PrintSummary().
|
static |
Definition at line 156 of file cmd.c.
Referenced by _tmain(), Execute(), Initialize(), and SetConTitle().
LPTSTR lpOriginalEnvironment |
Definition at line 164 of file cmd.c.
Referenced by _tmain(), and cmd_start().
INT nErrorLevel = 0 |
Definition at line 158 of file cmd.c.
Referenced by _tmain(), Batch(), calc(), cmd_call(), cmd_chdir(), cmd_copy(), cmd_date(), cmd_mkdir(), cmd_mklink(), cmd_move(), cmd_path(), cmd_prompt(), cmd_rename(), cmd_set(), cmd_setlocal(), cmd_shift(), cmd_start(), cmd_time(), cmd_type(), cmd_ver(), cmd_verify(), cmd_vol(), CommandAlias(), CommandAssoc(), CommandChoice(), CommandColor(), CommandDelay(), CommandDelete(), CommandDir(), CommandDirs(), CommandExit(), CommandScreen(), CommandTimer(), copy(), DeleteFiles(), DoDelayedExpansion(), DoTypeFile(), error_bad_command(), error_file_not_found(), error_invalid_drive(), error_invalid_parameter_format(), error_invalid_switch(), error_no_pipe(), error_out_of_memory(), error_parameter_format(), error_path_not_found(), error_req_param_missing(), error_sfile_not_found(), error_syntax(), error_too_many_parameters(), Execute(), ExecuteCommand(), ExecuteIf(), ExecutePipeline(), GetEnvVarOrSpecial(), Initialize(), PushDirectory(), replace(), seta_bitAndTerm(), seta_eval(), seta_unaryTerm(), SetRootPath(), SubstituteVar(), and SubstituteVars().
|
static |
Definition at line 170 of file cmd.c.
Referenced by Initialize(), and IsConsoleProcess().
|
static |
Definition at line 171 of file cmd.c.
Referenced by Initialize(), and IsConsoleProcess().
CON_STREAM_MODE OutputStreamMode = UTF8Text |
Definition at line 177 of file cmd.c.
Referenced by _tmain(), and Initialize().
Definition at line 168 of file cmd.c.
Referenced by ResetConTitle(), and SetConTitle().
WORD wDefColor = 0 |
Definition at line 180 of file cmd.c.
Referenced by CommandColor(), Initialize(), and LoadRegistrySettings().