ReactOS 0.4.16-dev-1260-g901af6a
cmd.h
Go to the documentation of this file.
1/*
2 * CMD.H - header file for the modules in CMD.EXE
3 *
4 *
5 * History:
6 *
7 * 7-15-95 Tim Norman
8 * started
9 *
10 * 06/29/98 (Rob Lake)
11 * Moved error messages in here
12 *
13 * 07/12/98 (Rob Lake)
14 * Moved more error messages here.
15 *
16 * 30-Jul-1998 (John P Price <linux-guru@gcfl.net>)
17 * Added compile date to version.
18 *
19 * 26-Feb-1999 (Eric Kohl)
20 * Introduced a new version string.
21 * Thanks to Emanuele Aliberti!
22 */
23
24#pragma once
25
26#include <config.h>
27
28#include "cmdver.h"
29#include "cmddbg.h"
30
31/* Version of the Command Extensions */
32#define CMDEXTVERSION 2
33
34#define BREAK_BATCHFILE 1
35#define BREAK_OUTOFBATCH 2 /* aka. BREAK_ENDOFBATCHFILES */
36#define BREAK_INPUT 3
37#define BREAK_IGNORE 4
38
39/* define some error messages */
40#define D_ON _T("on")
41#define D_OFF _T("off")
42
43/* command line buffer length */
44#define CMDLINE_LENGTH 8192
45
46/* 16k = max buffer size */
47#define BUFF_SIZE 16384
48
49/* Global variables */
51extern WORD wColor;
52extern WORD wDefColor;
53extern BOOL bCtrlBreak;
54extern BOOL bIgnoreEcho;
55extern BOOL bExit;
59extern INT nErrorLevel;
60
61
62/* Prototypes for ALIAS.C */
65
66/* Prototypes for ASSOC.C */
68
69/* Prototypes for BEEP.C */
71
72/* Prototypes for CALL.C */
74
75/* Prototypes for CHOICE.C */
77
78/* Prototypes for CLS.C */
80
81/* Prototypes for CMD.C */
85struct _PARSED_COMMAND;
86
87INT
89 IN struct _PARSED_COMMAND *Cmd);
90
91INT
93 IN struct _PARSED_COMMAND *Cmd);
94
98
99BOOL
101 IN PCTSTR Src,
102 OUT size_t* SrcIncLen, // VarNameLen
103 OUT PTCHAR Dest,
104 IN PTCHAR DestEnd,
105 OUT size_t* DestIncLen,
106 IN TCHAR Delim);
107
108BOOL
110 IN PCTSTR Src,
111 OUT PTSTR Dest,
112 IN TCHAR Delim);
113
114BOOL
116 IN PCTSTR Src,
117 OUT PTSTR Dest);
118
119PTSTR
121 IN PCTSTR Line);
122
124BOOL ReadLine(TCHAR *commandline, BOOL bMore);
125
127
128
129/* Prototypes for CMDINPUT.C */
131
134
135#define IS_COMPLETION_DISABLED(CompletionCtrl) \
136 ((CompletionCtrl) == 0x00 || (CompletionCtrl) == 0x0D || (CompletionCtrl) >= 0x20)
137
138
139/* Prototypes for CMDTABLE.C */
140#define CMD_SPECIAL 1
141#define CMD_BATCHONLY 2
142#define CMD_HIDE 4
143
144typedef struct tagCOMMAND
145{
147 INT flags;
148 INT (*func)(LPTSTR);
150
151extern COMMAND cmds[]; /* The internal command table */
152
154
155LPCTSTR GetParsedEnvVar ( LPCTSTR varName, UINT* varNameLen, BOOL ModeSetA );
156
157/* Prototypes for CTTY.C */
158#ifdef INCLUDE_CMD_CTTY
160#endif
161
162/* Prototypes for COLOR.C */
164
165/* Prototypes for CONSOLE.C */
166#include "console.h"
167
168/* Prototypes for COPY.C */
170
171/* Prototypes for DATE.C */
173
174/* Prototypes for DEL.C */
176
177/* Prototypes for DELAY.C */
179
180/* Prototypes for DIR.C */
184
185/* Prototypes for DIRSTACK.C */
192
193/* Prototypes for ECHO.C */
199
200/* Prototypes for ERROR.C */
201VOID
203 IN DWORD dwErrorCode,
204 IN PCTSTR szFormat OPTIONAL,
205 ...);
206
221
223
224/* Prototypes for FILECOMP.C */
225#ifdef FEATURE_UNIX_FILENAME_COMPLETION
227INT ShowCompletionMatches (LPTSTR, INT);
228#endif
229#ifdef FEATURE_4NT_FILENAME_COMPLETION
231#endif
232
233
234/* Prototypes for FOR.C */
235#define FOR_DIRS 1 /* /D */
236#define FOR_F 2 /* /F */
237#define FOR_LOOP 4 /* /L */
238#define FOR_RECURSIVE 8 /* /R */
241
242
243/* Prototypes for FREE.C */
245
246/* Prototypes for GOTO.C */
248
249/* Prototypes for HISTORY.C */
250#ifdef FEATURE_HISTORY
252VOID History(INT, LPTSTR);/*add entries browse history*/
258#endif
259
260/* Prototypes for IF.C */
261#define IFFLAG_NEGATE 1 /* NOT */
262#define IFFLAG_IGNORECASE 2 /* /I - Extended */
263typedef enum _IF_OPERATOR
264{
266 /* Standard */
268 /* Extended */
270
272 /* Standard */
273 IF_STRINGEQ, /* == */
274 /* Extended */
277
279
280/* Prototypes for INTERNAL.C */
289
290/* Prototypes for LOCALE.C */
291extern TCHAR cDateSeparator;
292extern INT nDateFormat;
293extern TCHAR cTimeSeparator;
294extern INT nTimeFormat;
297extern INT nNumberGroups;
298
302
303/* Prototypes for MEMORY.C */
305
306/* Prototypes for MKLINK.C */
308
309/* Prototypes for MISC.C */
310INT
312 IN LPCTSTR InPath,
313 OUT LPTSTR OutPath,
314 IN INT size);
315
316BOOL SetRootPath(TCHAR *oldpath,TCHAR *InPath);
322VOID freep (LPTSTR *);
325
330
331#define PROMPT_NO 0
332#define PROMPT_YES 1
333#define PROMPT_ALL 2
334#define PROMPT_BREAK 3
335
336BOOL __stdcall PagePrompt(PCON_PAGER Pager, DWORD Done, DWORD Total);
339
340/* Prototypes for MOVE.C */
342
343/* Prototypes for MSGBOX.C */
345
346/* Prototypes from PARSER.C */
347
348/* These three characters act like spaces to the parser in most contexts */
349#define STANDARD_SEPS _T(",;=")
350
351typedef enum _COMMAND_TYPE
352{
353 /* Standard command */
355 /* Quiet operator */
357 /* Parenthesized block */
359 /* Operators */
361 /* Special parsed commands */
364
365typedef struct _PARSED_COMMAND
366{
367 /*
368 * For IF : this is the 'main' case (the 'else' is obtained via SubCmd->Next).
369 * For FOR: this is the list of all the subcommands in the DO.
370 */
372
373 struct _PARSED_COMMAND *Next; // Next command(s) in the chain.
376 union
377 {
378 struct
379 {
383 struct
384 {
391 struct
392 {
397 } If;
398 };
400
403 IN PCTSTR Line);
404
405VOID
408 IN ULONG SpacePad);
409
410VOID
413
414PTCHAR
417 OUT PTCHAR Out,
418 IN PTCHAR OutEnd);
419
420VOID
423
425extern BOOL bParseError;
427
430
431/* Prototypes from PATH.C */
433
434/* Prototypes from PROMPT.C */
439
440/* Prototypes for REDIR.C */
443
444typedef enum _REDIR_MODE
445{
448 REDIR_APPEND = 2
450typedef struct _REDIRECTION
451{
462
463/* Prototypes for REN.C */
465
466/* Prototypes for REN.C */
468
469/* Prototypes for SCREEN.C */
471
472/* Prototypes for SET.C */
474
475/* Prototypes for SETLOCAL.C */
479
480/* Prototypes for START.C */
482
483/* Prototypes for STRTOCLR.C */
485
486/* Prototypes for TIME.C */
488
489/* Prototypes for TIMER.C */
491
492/* Prototypes for TITLE.C */
494
495/* Prototypes for TYPE.C */
497
498/* Prototypes for VER.C */
502
503/* Prototypes for VERIFY.C */
505
506/* Prototypes for VOL.C */
508
509/* Prototypes for WHERE.C */
511
512/* Prototypes for WINDOW.C */
515
516/* The MSDOS Batch Commands [MS-DOS 5.0 User's Guide and Reference p359] */
PRTL_UNICODE_STRING_BUFFER Path
INT CommandShowCommands(LPTSTR)
Definition: internal.c:707
INT ExecuteCommandWithEcho(IN struct _PARSED_COMMAND *Cmd)
INT GetRedirection(LPTSTR, REDIRECTION **)
int cmd_shift(TCHAR *)
INT CommandActivate(LPTSTR)
BOOL StringToColor(LPWORD, LPTSTR *)
Definition: strtoclr.c:255
INT CommandAlias(LPTSTR)
Definition: alias.c:174
VOID error_invalid_drive(VOID)
Definition: error.c:117
INT CommandExit(LPTSTR)
Definition: internal.c:621
INT cmd_vol(LPTSTR)
Definition: vol.c:64
BOOL IsExistingDirectory(IN LPCTSTR pszPath)
Definition: util.c:104
BOOL IsExistingFile(IN LPCTSTR pszPath)
Definition: util.c:98
INT CommandEchos(LPTSTR)
Definition: echo.c:91
INT nErrorLevel
Definition: cmd.c:158
INT GetRootPath(IN LPCTSTR InPath, OUT LPTSTR OutPath, IN INT size)
Definition: util.c:21
PARSED_COMMAND * ParseCommand(IN PCTSTR Line)
Definition: parser.c:1461
TCHAR cDateSeparator
Definition: locale.c:16
INT nTimeFormat
Definition: locale.c:21
INT cmd_move(LPTSTR)
Definition: move.c:87
BOOL bDisableBatchEcho
Definition: cmd.c:160
TCHAR cgetchar(VOID)
Definition: util.c:242
enum _COMMAND_TYPE COMMAND_TYPE
INT ExecuteIf(struct _PARSED_COMMAND *Cmd)
Definition: if.c:66
INT cmd_rename(LPTSTR)
Definition: ren.c:53
INT FormatDate(TCHAR *, LPSYSTEMTIME, BOOL)
Definition: dir.c:675
int cmd_if(TCHAR *)
VOID FreeLastPath(VOID)
VOID DestroyDirectoryStack(VOID)
Definition: dirstack.c:91
BOOL bHandleContinuations
Definition: parser.c:97
BOOL SubstituteVars(IN PCTSTR Src, OUT PTSTR Dest, IN TCHAR Delim)
Definition: cmd.c:1514
INT CommandTimer(LPTSTR param)
Definition: timer.c:59
BOOL ReadLine(TCHAR *commandline, BOOL bMore)
Definition: cmd.c:1721
PTCHAR UnparseCommand(IN PARSED_COMMAND *Cmd, OUT PTCHAR Out, IN PTCHAR OutEnd)
Definition: parser.c:1965
VOID msg_pause(VOID)
Definition: util.c:210
INT CommandWindow(LPTSTR)
INT ParseCommandLine(LPTSTR)
Definition: cmd.c:636
LPTSTR DuplicateEnvironment(VOID)
Definition: setlocal.c:25
BOOL bParseError
Definition: parser.c:90
VOID InitOSVersion(VOID)
Definition: ver.c:32
VOID error_path_not_found(VOID)
Definition: error.c:86
VOID StripQuotes(LPTSTR)
LPTSTR _stpcpy(LPTSTR, LPCTSTR)
Definition: misc.c:474
VOID ParseErrorEx(IN PCTSTR s)
Definition: parser.c:227
INT nDateFormat
Definition: locale.c:20
INT CommandFree(LPTSTR)
Definition: free.c:86
BOOL bDelayedExpansion
Definition: cmd.c:162
VOID error_cant_exec_program(VOID)
Definition: error.c:144
INT ExecuteCommand(IN struct _PARSED_COMMAND *Cmd)
VOID error_too_many_parameters(PCTSTR s)
struct _REDIRECTION REDIRECTION
VOID error_no_pipe(VOID)
Definition: error.c:131
VOID SetHandle(UINT Number, HANDLE Handle)
Definition: redir.c:50
INT cmd_date(LPTSTR)
Definition: date.c:176
enum _REDIR_MODE REDIR_MODE
VOID error_parameter_format(TCHAR ch)
VOID error_bad_command(PCTSTR s)
HANDLE CMD_ModuleHandle
Definition: cmd.c:165
INT CommandMemory(LPTSTR)
Definition: memory.c:18
VOID EchoCommand(IN PARSED_COMMAND *Cmd)
Definition: parser.c:1808
VOID InitDirectoryStack(VOID)
Definition: dirstack.c:80
INT FilePromptYNA(UINT)
Definition: util.c:110
VOID error_file_not_found(VOID)
Definition: error.c:93
VOID ExpandAlias(LPTSTR, INT)
Definition: alias.c:89
INT CommandEchoserr(LPTSTR)
Definition: echo.c:121
LPTSTR lpOriginalEnvironment
Definition: cmd.c:164
TCHAR cTimeSeparator
Definition: locale.c:17
WORD wDefColor
Definition: cmd.c:180
VOID AddBreakHandler(VOID)
Definition: cmd.c:1844
INT cmd_title(LPTSTR)
Definition: title.c:18
BOOL bExit
Definition: cmd.c:152
INT cmd_path(LPTSTR)
Definition: path.c:36
BOOL CheckCtrlBreak(INT)
Definition: misc.c:146
INT cmd_endlocal(LPTSTR)
Definition: setlocal.c:110
INT cmd_ver(LPTSTR)
Definition: ver.c:126
INT CommandChoice(LPTSTR)
Definition: choice.c:102
VOID DumpCommand(IN PARSED_COMMAND *Cmd, IN ULONG SpacePad)
Definition: parser.c:1533
BOOL PerformRedirection(REDIRECTION *)
Definition: redir.c:63
INT cmd_mklink(LPTSTR)
Definition: mklink.c:124
INT CommandAssoc(LPTSTR)
Definition: assoc.c:238
VOID PrintCommandList(VOID)
Definition: cmdtable.c:230
LPCTSTR GetParsedEnvVar(LPCTSTR varName, UINT *varNameLen, BOOL ModeSetA)
enum _IF_OPERATOR IF_OPERATOR
INT FilePromptYN(UINT)
Definition: misc.c:573
INT CommandPopd(LPTSTR)
Definition: dirstack.c:132
INT CommandRem(LPTSTR)
Definition: internal.c:695
_IF_OPERATOR
Definition: cmd.h:264
@ IF_CMDEXTVERSION
Definition: cmd.h:269
@ IF_ERRORLEVEL
Definition: cmd.h:267
@ IF_GTR
Definition: cmd.h:275
@ IF_EQU
Definition: cmd.h:275
@ IF_EXIST
Definition: cmd.h:267
@ IF_GEQ
Definition: cmd.h:275
@ IF_LSS
Definition: cmd.h:275
@ IF_LEQ
Definition: cmd.h:275
@ IF_STRINGEQ
Definition: cmd.h:273
@ IF_DEFINED
Definition: cmd.h:269
@ IF_NEQ
Definition: cmd.h:275
BOOL SearchForExecutable(LPCTSTR, LPTSTR)
Definition: where.c:142
VOID InitLocale(VOID)
Definition: locale.c:25
INT CommandMsgbox(LPTSTR)
INT cmd_set(LPTSTR)
Definition: set.c:72
INT CommandDelete(LPTSTR)
Definition: del.c:358
VOID ErrorMessage(IN DWORD dwErrorCode, IN PCTSTR szFormat OPTIONAL,...)
INT cmd_start(LPTSTR)
Definition: start.c:37
INT nNumberGroups
Definition: locale.c:22
BOOL bEnableExtensions
Definition: more.c:53
INT CommandDelay(LPTSTR)
Definition: delay.c:17
_COMMAND_TYPE
Definition: cmd.h:352
@ C_BLOCK
Definition: cmd.h:358
@ C_QUIET
Definition: cmd.h:356
@ C_OR
Definition: cmd.h:360
@ C_COMMAND
Definition: cmd.h:354
@ C_REM
Definition: cmd.h:362
@ C_AND
Definition: cmd.h:360
@ C_MULTI
Definition: cmd.h:360
@ C_IF
Definition: cmd.h:362
@ C_PIPE
Definition: cmd.h:360
@ C_FOR
Definition: cmd.h:362
VOID error_req_param_missing(VOID)
Definition: error.c:110
BOOL HasInfoLine(VOID)
Definition: prompt.c:72
LPTSTR * splitspace(LPTSTR, LPINT)
Definition: misc.c:395
VOID freep(LPTSTR *)
Definition: misc.c:460
INT cmd_mkdir(LPTSTR)
Definition: internal.c:360
VOID RemoveBreakHandler(VOID)
Definition: cmd.c:1850
INT CommandPushd(LPTSTR)
Definition: dirstack.c:107
LPTSTR GetTimeString(VOID)
Definition: locale.c:70
TCHAR AutoCompletionChar
Definition: cmdinput.c:111
#define CMDLINE_LENGTH
Definition: cmd.h:44
VOID GetPathCase(IN LPCTSTR Path, OUT LPTSTR OutPath)
Definition: misc.c:86
BOOL IsValidPathName(IN LPCTSTR pszPath)
Definition: misc.c:496
BOOL bIgnoreParserComments
Definition: parser.c:96
WORD wColor
INT cmd_type(LPTSTR)
Definition: type.c:221
VOID error_out_of_memory(VOID)
Definition: error.c:138
TCHAR PathCompletionChar
Definition: cmdinput.c:112
INT CommandColor(LPTSTR)
Definition: color.c:32
INT cmd_time(LPTSTR)
Definition: time.c:132
BOOL ReadCommand(LPTSTR, INT)
Definition: cmdinput.c:138
_REDIR_MODE
Definition: cmd.h:445
@ REDIR_WRITE
Definition: cmd.h:447
@ REDIR_READ
Definition: cmd.h:446
@ REDIR_APPEND
Definition: cmd.h:448
LPCTSTR GetEnvVarOrSpecial(LPCTSTR varName)
Definition: cmd.c:904
INT ConvertULargeInteger(ULONGLONG num, LPTSTR des, UINT len, BOOL bPutSeparator)
Definition: cmd.c:189
struct tagCOMMAND * LPCOMMAND
INT GetDirectoryStackDepth(VOID)
Definition: dirstack.c:98
INT CommandDirs(LPTSTR)
Definition: dirstack.c:154
BOOL add_entry(LPINT ac, LPTSTR **arg, LPCTSTR entry)
Definition: misc.c:198
PTSTR DoDelayedExpansion(IN PCTSTR Line)
Definition: cmd.c:1640
INT ExecuteFor(struct _PARSED_COMMAND *Cmd)
Definition: for.c:604
INT cmd_call(LPTSTR)
Definition: call.c:40
HANDLE RunFile(DWORD, LPTSTR, LPTSTR, LPTSTR, INT)
Definition: cmd.c:266
LPTSTR * split(LPTSTR, LPINT, BOOL, BOOL)
Definition: misc.c:296
INT cmd_verify(LPTSTR)
Definition: verify.c:30
BOOL bIgnoreEcho
Definition: cmd.c:155
VOID InitPrompt(VOID)
Definition: prompt.c:57
BOOL SubstituteForVars(IN PCTSTR Src, OUT PTSTR Dest)
Definition: cmd.c:1596
BOOL SetRootPath(TCHAR *oldpath, TCHAR *InPath)
Definition: internal.c:182
VOID FreeRedirection(REDIRECTION *)
Definition: redir.c:153
INT CommandDir(LPTSTR)
Definition: dir.c:1843
INT cmd_prompt(LPTSTR)
Definition: prompt.c:260
INT cmd_chdir(LPTSTR)
Definition: internal.c:240
BOOL bCtrlBreak
Definition: util.c:11
COMMAND cmds[]
Definition: main.c:21
VOID InitLastPath(VOID)
int cmd_pause(TCHAR *)
INT cmd_cls(LPTSTR)
Definition: cls.c:33
BOOL SubstituteVar(IN PCTSTR Src, OUT size_t *SrcIncLen, OUT PTCHAR Dest, IN PTCHAR DestEnd, OUT size_t *DestIncLen, IN TCHAR Delim)
Definition: cmd.c:1326
VOID PrintPrompt(VOID)
Definition: prompt.c:134
TCHAR ParseLine[CMDLINE_LENGTH]
Definition: parser.c:92
INT cmd_replace(LPTSTR)
TCHAR cThousandSeparator
Definition: locale.c:18
INT cmd_rmdir(LPTSTR)
Definition: internal.c:521
struct _PARSED_COMMAND PARSED_COMMAND
INT DoCommand(LPTSTR first, LPTSTR rest, struct _PARSED_COMMAND *Cmd)
Definition: cmd.c:557
TCHAR cDecimalSeparator
Definition: locale.c:19
INT cmd_beep(LPTSTR)
Definition: beep.c:31
VOID error_syntax(PCTSTR s)
INT CommandEchoerr(LPTSTR)
Definition: echo.c:106
INT CommandScreen(LPTSTR)
Definition: screen.c:18
VOID error_invalid_parameter_format(PCTSTR s)
INT cmd_copy(LPTSTR)
Definition: copy.c:332
BOOL OnOffCommand(LPTSTR param, LPBOOL flag, INT message)
Definition: echo.c:32
INT cmd_goto(LPTSTR)
Definition: goto.c:36
INT cmd_setlocal(LPTSTR)
Definition: setlocal.c:42
struct tagCOMMAND COMMAND
VOID error_sfile_not_found(PCTSTR s)
BOOL __stdcall PagePrompt(PCON_PAGER Pager, DWORD Done, DWORD Total)
Definition: misc.c:526
VOID UndoRedirection(REDIRECTION *, REDIRECTION *End)
Definition: redir.c:142
VOID FreeCommand(IN OUT PARSED_COMMAND *Cmd)
Definition: parser.c:527
VOID error_invalid_switch(TCHAR ch)
INT FormatTime(TCHAR *, LPSYSTEMTIME)
Definition: dir.c:704
LPTSTR GetDateString(VOID)
Definition: locale.c:58
INT CommandEcho(LPTSTR)
Definition: echo.c:65
INT cmd_for(LPTSTR)
Definition: for.c:41
VOID History_move_to_bottom(VOID)
Definition: history.c:280
VOID InitHistory(VOID)
Definition: history.c:132
VOID History(INT dir, LPTSTR commandline)
Definition: history.c:326
VOID History_del_current_entry(LPTSTR str)
Definition: history.c:175
LPCTSTR PeekHistory(INT dir)
Definition: history.c:287
VOID CleanHistory(VOID)
Definition: history.c:163
INT CommandHistory(LPTSTR param)
Definition: history.c:71
INT cmd_ctty(LPTSTR param)
Definition: ctty.c:102
@ Out
static const WCHAR des[]
Definition: oid.c:1212
VOID CompleteFilename(LPTSTR strIN, BOOL bNext, LPTSTR strOut, UINT cusor)
Definition: filecomp.c:545
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
ULONG Handle
Definition: gdb_input.c:15
GLdouble s
Definition: gl.h:2039
GLenum func
Definition: glext.h:6028
GLsizeiptr size
Definition: glext.h:5919
const GLint * first
Definition: glext.h:5794
GLuint GLuint num
Definition: glext.h:9618
GLfloat param
Definition: glext.h:5796
GLenum GLsizei len
Definition: glext.h:6722
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean flag
Definition: glfuncs.h:52
uint32_t entry
Definition: isohybrid.c:63
unsigned int UINT
Definition: ndis.h:50
LPCSTR PCTSTR
Definition: ntbasedef.h:500
char * PTCHAR
Definition: ntbasedef.h:488
_In_opt_ PENTER_STATE_SYSTEM_HANDLER _In_opt_ PVOID _In_ LONG _In_opt_ LONG volatile * Number
Definition: ntpoapi.h:207
#define INT
Definition: polytest.cpp:20
static void PrintOSVersion(void)
Definition: rosperf.c:291
const WCHAR * str
@ Cmd
Definition: sacdrv.h:278
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
Definition: ncftp.h:79
Definition: main.c:15
struct _PARSED_COMMAND::@83::@85 Command
TCHAR First[]
Definition: cmd.h:381
struct _FOR_CONTEXT * Context
Definition: cmd.h:389
PTSTR Rest
Definition: cmd.h:380
BYTE Switches
Definition: cmd.h:385
PTSTR RightArg
Definition: cmd.h:396
struct _PARSED_COMMAND::@83::@87 If
COMMAND_TYPE Type
Definition: cmd.h:375
BYTE Flags
Definition: cmd.h:393
PTSTR List
Definition: cmd.h:388
PTSTR LeftArg
Definition: cmd.h:395
struct _PARSED_COMMAND * Subcommands
Definition: cmd.h:371
struct _PARSED_COMMAND::@83::@86 For
struct _REDIRECTION * Redirections
Definition: cmd.h:374
IF_OPERATOR Operator
Definition: cmd.h:394
TCHAR Variable
Definition: cmd.h:386
PTSTR Params
Definition: cmd.h:387
struct _PARSED_COMMAND * Next
Definition: cmd.h:373
REDIR_MODE Mode
Definition: cmd.h:455
HANDLE OldHandle
Definition: cmd.h:453
BYTE Number
Definition: cmd.h:454
TCHAR Filename[]
Definition: cmd.h:456
struct _REDIRECTION * Next
Definition: cmd.h:452
Definition: tftpd.h:60
INT flags
Definition: cmdcons.c:28
LPTSTR name
Definition: cmd.h:146
#define GetHandle(h)
Definition: treelist.c:116
uint16_t * LPWORD
Definition: typedefs.h:56
int32_t INT
Definition: typedefs.h:58
#define __stdcall
Definition: typedefs.h:25
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
uint64_t ULONGLONG
Definition: typedefs.h:67
#define OUT
Definition: typedefs.h:40
BOOL * LPBOOL
Definition: windef.h:162
int * LPINT
Definition: windef.h:178
char TCHAR
Definition: xmlstorage.h:189
CHAR * PTSTR
Definition: xmlstorage.h:191
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
CHAR * LPTSTR
Definition: xmlstorage.h:192
unsigned char BYTE
Definition: xxhash.c:193