cdc37f2a161d72c59118164b1842e56b1e734a7e
2 * BATCH.H - A structure to preserve the context of a batch file
7 #ifndef _BATCH_H_INCLUDED_
8 #define _BATCH_H_INCLUDED_
11 typedef struct tagBATCHCONTEXT
13 struct tagBATCHCONTEXT
*prev
;
14 LPWIN32_FIND_DATA ffind
;
19 BOOL bEcho
; /* Preserve echo flag across batch calls [HBP_001] */
21 } BATCH_CONTEXT
, *LPBATCH_CONTEXT
;
26 /* The stack of current batch contexts.
27 * NULL when no batch is active
29 extern LPBATCH_CONTEXT bc
;
31 extern BOOL bEcho
; /* The echo flag */
33 #define BATCH_BUFFSIZE 2048
35 extern TCHAR textline
[BATCH_BUFFSIZE
]; /* Buffer for reading Batch file lines */
39 LPTSTR
BatchParams (LPTSTR
, LPTSTR
);
40 VOID
ExitBatch (LPTSTR
);
41 BOOL
Batch (LPTSTR
, LPTSTR
, LPTSTR
);
42 LPTSTR
ReadBatchLine (LPBOOL
);
44 #endif /* _BATCH_H_INCLUDED_ */