* Sync with recent trunk (r52637).
[reactos.git] / base / shell / cmd / batch.h
index 841b09b..ae44e67 100644 (file)
@@ -9,7 +9,10 @@
 typedef struct tagBATCHCONTEXT
 {
        struct tagBATCHCONTEXT *prev;
-       HANDLE hBatchFile;
+       char    *mem;            /* batchfile content in memory */
+       DWORD   memsize;         /* size of batchfile */
+       DWORD   mempos;          /* current position to read from */
+       BOOL    memfree;         /* true if it need to be freed when exitbatch is called */     
        TCHAR BatchFilePath[MAX_PATH];
        LPTSTR params;
        LPTSTR raw_params;   /* Holds the raw params given by the input */
@@ -45,7 +48,8 @@ extern TCHAR textline[BATCH_BUFFSIZE]; /* Buffer for reading Batch file lines */
 
 LPTSTR FindArg (TCHAR, BOOL *);
 LPTSTR BatchParams (LPTSTR, LPTSTR);
-VOID   ExitBatch ();
+VOID   ExitBatch (VOID);
 INT    Batch (LPTSTR, LPTSTR, LPTSTR, PARSED_COMMAND *);
-LPTSTR ReadBatchLine();
-VOID AddBatchRedirection(REDIRECTION **);
+BOOL   BatchGetString (LPTSTR lpBuffer, INT nBufferLength);
+LPTSTR ReadBatchLine(VOID);
+VOID   AddBatchRedirection(REDIRECTION **);