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 */
20 HANDLE hFind
; /* Preserve find handle when doing a for */
22 } BATCH_CONTEXT
, *LPBATCH_CONTEXT
;
25 /* The stack of current batch contexts.
26 * NULL when no batch is active
28 extern LPBATCH_CONTEXT bc
;
30 extern BOOL bEcho
; /* The echo flag */
32 #define BATCH_BUFFSIZE 2048
34 extern TCHAR textline
[BATCH_BUFFSIZE
]; /* Buffer for reading Batch file lines */
38 LPTSTR
BatchParams (LPTSTR
, LPTSTR
);
39 VOID
ExitBatch (LPTSTR
);
40 BOOL
Batch (LPTSTR
, LPTSTR
, LPTSTR
);
41 LPTSTR
ReadBatchLine (LPBOOL
);
43 #endif /* _BATCH_H_INCLUDED_ */