ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

cmd.h File Reference
#include "config.h"
#include <windows.h>
#include <tchar.h>
#include "cmdver.h"
#include "cmddbg.h"

Go to the source code of this file.

Data Structures

struct  PCOMMAND
struct  PARSED_COMMAND
struct  REDIRECTION

Defines

#define BREAK_BATCHFILE   1
#define BREAK_OUTOFBATCH   2
#define BREAK_INPUT   3
#define BREAK_IGNORE   4
#define D_ON   _T("on")
#define D_OFF   _T("off")
#define CMDLINE_LENGTH   8192
#define BUFF_SIZE   16384
#define CMD_SPECIAL   1
#define CMD_BATCHONLY   2
#define CMD_HIDE   4
#define FOR_DIRS   1 /* /D */
#define FOR_F   2 /* /F */
#define FOR_LOOP   4 /* /L */
#define FOR_RECURSIVE   8 /* /R */
#define IFFLAG_NEGATE   1 /* NOT */
#define IFFLAG_IGNORECASE   2 /* /I */
#define PROMPT_NO   0
#define PROMPT_YES   1
#define PROMPT_ALL   2
#define PROMPT_BREAK   3

Enumerations

enum  {
  IF_CMDEXTVERSION, IF_DEFINED, IF_ERRORLEVEL, IF_EXIST,
  IF_STRINGEQ, IF_EQU, IF_GTR, IF_GEQ,
  IF_LSS, IF_LEQ, IF_NEQ
}
enum  {
  C_COMMAND, C_QUIET, C_BLOCK, C_MULTI,
  C_IFFAILURE, C_IFSUCCESS, C_PIPE, C_IF,
  C_FOR
}
enum  { REDIR_READ, REDIR_WRITE, REDIR_APPEND }

Functions

VOID ExpandAlias (LPTSTR, INT)
INT CommandAlias (LPTSTR)
INT CommandAssoc (LPTSTR)
INT CommandAttrib (LPTSTR)
INT cmd_beep (LPTSTR)
INT cmd_call (LPTSTR)
INT CommandChcp (LPTSTR)
INT CommandChoice (LPTSTR)
INT cmd_cls (LPTSTR)
INT ConvertULargeInteger (ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeperator)
HANDLE RunFile (DWORD, LPTSTR, LPTSTR, LPTSTR, INT)
INT ParseCommandLine (LPTSTR)
INT ExecuteCommand (struct _PARSED_COMMAND *Cmd)
LPCTSTR GetEnvVarOrSpecial (LPCTSTR varName)
VOID AddBreakHandler (VOID)
VOID RemoveBreakHandler (VOID)
BOOL SubstituteVars (TCHAR *Src, TCHAR *Dest, TCHAR Delim)
BOOL SubstituteForVars (TCHAR *Src, TCHAR *Dest)
LPTSTR DoDelayedExpansion (LPTSTR Line)
INT DoCommand (LPTSTR first, LPTSTR rest, struct _PARSED_COMMAND *Cmd)
BOOL ReadLine (TCHAR *commandline, BOOL bMore)
int cmd_main (int argc, const TCHAR *argv[])
BOOL ReadCommand (LPTSTR, INT)
VOID PrintCommandList (VOID)
VOID PrintCommandListDetail (VOID)
LPCTSTR GetParsedEnvVar (LPCTSTR varName, UINT *varNameLen, BOOL ModeSetA)
VOID SetScreenColor (WORD wArgColor, BOOL bFill)
INT CommandColor (LPTSTR)
VOID ConInDummy (VOID)
VOID ConInDisable (VOID)
VOID ConInEnable (VOID)
VOID ConInFlush (VOID)
VOID ConInKey (PINPUT_RECORD)
VOID ConInString (LPTSTR, DWORD)
VOID ConOutChar (TCHAR)
VOID ConOutPuts (LPTSTR)
VOID ConPrintf (LPTSTR, va_list, DWORD)
INT ConPrintfPaging (BOOL NewPage, LPTSTR, va_list, DWORD)
VOID ConOutPrintf (LPTSTR,...)
INT ConOutPrintfPaging (BOOL NewPage, LPTSTR,...)
VOID ConErrChar (TCHAR)
VOID ConErrPuts (LPTSTR)
VOID ConErrPrintf (LPTSTR,...)
VOID ConOutFormatMessage (DWORD MessageId,...)
VOID ConErrFormatMessage (DWORD MessageId,...)
SHORT GetCursorX (VOID)
SHORT GetCursorY (VOID)
VOID GetCursorXY (PSHORT, PSHORT)
VOID SetCursorXY (SHORT, SHORT)
VOID GetScreenSize (PSHORT, PSHORT)
VOID SetCursorType (BOOL, BOOL)
VOID ConOutResPuts (UINT resID)
VOID ConErrResPuts (UINT resID)
VOID ConOutResPrintf (UINT resID,...)
VOID ConErrResPrintf (UINT resID,...)
VOID ConOutResPaging (BOOL NewPage, UINT resID)
INT cmd_copy (LPTSTR)
INT cmd_date (LPTSTR)
INT CommandDelete (LPTSTR)
INT CommandDelay (LPTSTR)
INT FormatDate (TCHAR *, LPSYSTEMTIME, BOOL)
INT FormatTime (TCHAR *, LPSYSTEMTIME)
INT CommandDir (LPTSTR)
VOID InitDirectoryStack (VOID)
VOID DestroyDirectoryStack (VOID)
INT GetDirectoryStackDepth (VOID)
INT CommandPushd (LPTSTR)
INT CommandPopd (LPTSTR)
INT CommandDirs (LPTSTR)
BOOL OnOffCommand (LPTSTR param, LPBOOL flag, INT message)
INT CommandEcho (LPTSTR)
INT CommandEchos (LPTSTR)
INT CommandEchoerr (LPTSTR)
INT CommandEchoserr (LPTSTR)
VOID ErrorMessage (DWORD, LPTSTR,...)
VOID error_no_pipe (VOID)
VOID error_bad_command (LPTSTR)
VOID error_invalid_drive (VOID)
VOID error_req_param_missing (VOID)
VOID error_sfile_not_found (LPTSTR)
VOID error_file_not_found (VOID)
VOID error_path_not_found (VOID)
VOID error_too_many_parameters (LPTSTR)
VOID error_parameter_format (TCHAR)
VOID error_invalid_switch (TCHAR)
VOID error_invalid_parameter_format (LPTSTR)
VOID error_out_of_memory (VOID)
VOID error_syntax (LPTSTR)
VOID msg_pause (VOID)
VOID CompleteFilename (LPTSTR, BOOL, LPTSTR, UINT)
INT cmd_for (LPTSTR)
INT ExecuteFor (struct _PARSED_COMMAND *Cmd)
INT CommandFree (LPTSTR)
INT cmd_goto (LPTSTR)
LPCTSTR PeekHistory (INT)
VOID History (INT, LPTSTR)
VOID History_move_to_bottom (VOID)
VOID InitHistory (VOID)
VOID CleanHistory (VOID)
VOID History_del_current_entry (LPTSTR str)
INT CommandHistory (LPTSTR param)
INT ExecuteIf (struct _PARSED_COMMAND *Cmd)
VOID InitLastPath (VOID)
VOID FreeLastPath (VOID)
INT cmd_chdir (LPTSTR)
INT cmd_mkdir (LPTSTR)
INT cmd_rmdir (LPTSTR)
INT CommandExit (LPTSTR)
INT CommandRem (LPTSTR)
INT CommandShowCommands (LPTSTR)
INT CommandShowCommandsDetail (LPTSTR)
INT cmd_label (LPTSTR)
VOID InitLocale (VOID)
LPTSTR GetDateString (VOID)
LPTSTR GetTimeString (VOID)
INT CommandMemory (LPTSTR)
INT cmd_mklink (LPTSTR)
INT GetRootPath (TCHAR *InPath, TCHAR *OutPath, INT size)
BOOL SetRootPath (TCHAR *oldpath, TCHAR *InPath)
TCHAR cgetchar (VOID)
BOOL CheckCtrlBreak (INT)
BOOL add_entry (LPINT ac, LPTSTR **arg, LPCTSTR entry)
LPTSTRsplit (LPTSTR, LPINT, BOOL, BOOL)
LPTSTRsplitspace (LPTSTR, LPINT)
VOID freep (LPTSTR *)
LPTSTR _stpcpy (LPTSTR, LPCTSTR)
VOID StripQuotes (LPTSTR)
BOOL IsValidPathName (LPCTSTR)
BOOL IsExistingFile (LPCTSTR)
BOOL IsExistingDirectory (LPCTSTR)
BOOL FileGetString (HANDLE, LPTSTR, INT)
VOID GetPathCase (TCHAR *, TCHAR *)
INT PagePrompt (VOID)
INT FilePromptYN (UINT)
INT FilePromptYNA (UINT)
INT cmd_move (LPTSTR)
INT CommandMsgbox (LPTSTR)
PARSED_COMMANDParseCommand (LPTSTR Line)
VOID EchoCommand (PARSED_COMMAND *Cmd)
TCHARUnparse (PARSED_COMMAND *Cmd, TCHAR *Out, TCHAR *OutEnd)
VOID FreeCommand (PARSED_COMMAND *Cmd)
INT cmd_path (LPTSTR)
VOID PrintPrompt (VOID)
INT cmd_prompt (LPTSTR)
BOOL PerformRedirection (REDIRECTION *)
VOID UndoRedirection (REDIRECTION *, REDIRECTION *End)
INT GetRedirection (LPTSTR, REDIRECTION **)
VOID FreeRedirection (REDIRECTION *)
INT cmd_rename (LPTSTR)
INT cmd_replace (LPTSTR)
INT CommandScreen (LPTSTR)
INT cmd_set (LPTSTR)
LPTSTR DuplicateEnvironment (VOID)
INT cmd_setlocal (LPTSTR)
INT cmd_endlocal (LPTSTR)
INT cmd_start (LPTSTR)
BOOL StringToColor (LPWORD, LPTSTR *)
INT cmd_time (LPTSTR)
INT CommandTimer (LPTSTR param)
INT cmd_title (LPTSTR)
INT cmd_type (LPTSTR)
VOID ShortVersion (VOID)
INT cmd_ver (LPTSTR)
INT cmd_verify (LPTSTR)
INT cmd_vol (LPTSTR)
BOOL SearchForExecutable (LPCTSTR, LPTSTR)
INT CommandActivate (LPTSTR)
INT CommandWindow (LPTSTR)
int cmd_if (TCHAR *)
int cmd_pause (TCHAR *)
int cmd_shift (TCHAR *)

Variables

HANDLE hOut
HANDLE hIn
LPTSTR lpOriginalEnvironment
WORD wColor
WORD wDefColor
BOOL bCtrlBreak
BOOL bIgnoreEcho
BOOL bExit
BOOL bDisableBatchEcho
BOOL bDelayedExpansion
INT nErrorLevel
SHORT maxx
SHORT maxy
OSVERSIONINFO osvi
BOOL bUnicodeOutput
HANDLE CMD_ModuleHandle
COMMAND cmds []
TCHAR cDateSeparator
INT nDateFormat
TCHAR cTimeSeparator
INT nTimeFormat
TCHAR cThousandSeparator
TCHAR cDecimalSeparator
INT nNumberGroups
UINT InputCodePage
UINT OutputCodePage

Generated on Sun May 27 2012 04:45:38 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.