ReactOS 0.4.16-dev-306-g647d351
|
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 2384 of file cmd.c.
Definition at line 1844 of file cmd.c.
Referenced by FilePromptYN(), FilePromptYNA(), Initialize(), and PagePrompt().
Definition at line 1799 of file cmd.c.
Referenced by AddBreakHandler(), and RemoveBreakHandler().
Definition at line 2340 of file cmd.c.
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 557 of file cmd.c.
Referenced by ExecuteCommand().
Definition at line 1640 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 659 of file cmd.c.
Referenced by ExecutePipeline().
Definition at line 2040 of file cmd.c.
Referenced by Initialize().
INT ExecuteCommand | ( | IN PARSED_COMMAND * | Cmd | ) |
Definition at line 782 of file cmd.c.
Referenced by ExecuteCommand(), ExecuteCommandWithEcho(), ExecuteIf(), ParseCommandLine(), and ProcessInput().
INT ExecuteCommandWithEcho | ( | IN PARSED_COMMAND * | Cmd | ) |
Definition at line 868 of file cmd.c.
Referenced by Batch().
|
static |
Definition at line 693 of file cmd.c.
Referenced by ExecuteCommand().
Definition at line 1574 of file cmd.c.
Referenced by SubstituteForVars().
Definition at line 1273 of file cmd.c.
Referenced by SubstituteVar().
|
static |
Definition at line 2073 of file cmd.c.
Referenced by _tmain().
|
static |
Definition at line 975 of file cmd.c.
Referenced by GetBatchVar(), and SubstituteForVars().
Definition at line 886 of file cmd.c.
Referenced by Cleanup(), GetEnhancedVar(), and GetEnvVarOrSpecial().
Definition at line 904 of file cmd.c.
Referenced by ExecuteIf(), seta_identval(), and SubstituteVar().
Definition at line 2133 of file cmd.c.
Definition at line 224 of file cmd.c.
Referenced by Execute().
Definition at line 1891 of file cmd.c.
Referenced by Initialize().
Definition at line 636 of file cmd.c.
Referenced by _tmain(), Cleanup(), ExecuteAutoRunFile(), and Initialize().
Definition at line 1721 of file cmd.c.
Referenced by ParseChar(), and ParseCommand().
Definition at line 1850 of file cmd.c.
Referenced by Cleanup(), FilePromptYN(), FilePromptYNA(), and PagePrompt().
Definition at line 329 of file cmd.c.
Referenced by DoCommand(), and Execute().
Definition at line 266 of file cmd.c.
Referenced by cmd_start(), and Execute().
Definition at line 309 of file cmd.c.
Referenced by DoCommand(), and Execute().
Definition at line 1596 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 1326 of file cmd.c.
Referenced by DoDelayedExpansion(), and SubstituteVars().
Definition at line 1514 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(), CtrlHandlerRoutine(), DeleteFolder(), DoTypeFile(), PagePrompt(), ProcessInput(), ReadCommand(), recReplace(), and replace().
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 GetEnvVarOrSpecial(), Initialize(), and LoadRegistrySettings().
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(), 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().