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

batch.h
Go to the documentation of this file.
00001 /*
00002  *  BATCH.H - A structure to preserve the context of a batch file
00003  *
00004  *
00005  */
00006 
00007 #pragma once
00008 
00009 typedef struct tagBATCHCONTEXT
00010 {
00011     struct tagBATCHCONTEXT *prev;
00012     char    *mem;        /* batchfile content in memory */
00013     DWORD   memsize;     /* size of batchfile */
00014     DWORD   mempos;      /* current position to read from */
00015     BOOL    memfree;     /* true if it need to be freed when exitbatch is called */ 
00016     TCHAR BatchFilePath[MAX_PATH];
00017     LPTSTR params;
00018     LPTSTR raw_params;   /* Holds the raw params given by the input */
00019     INT    shiftlevel[10];
00020     BOOL   bEcho;        /* Preserve echo flag across batch calls */
00021     REDIRECTION *RedirList;
00022     PARSED_COMMAND *current; 
00023     struct _SETLOCAL *setlocal;
00024 } BATCH_CONTEXT, *LPBATCH_CONTEXT;
00025 
00026 typedef struct tagFORCONTEXT
00027 {
00028     struct tagFORCONTEXT *prev;
00029     TCHAR firstvar;
00030     UINT   varcount;
00031     LPTSTR *values;
00032 } FOR_CONTEXT, *LPFOR_CONTEXT;
00033 
00034 
00035 /*  The stack of current batch contexts.
00036  * NULL when no batch is active
00037  */
00038 extern LPBATCH_CONTEXT bc;
00039 
00040 extern LPFOR_CONTEXT fc;
00041 
00042 extern BOOL bEcho;       /* The echo flag */
00043 
00044 #define BATCH_BUFFSIZE  8192
00045 
00046 extern TCHAR textline[BATCH_BUFFSIZE]; /* Buffer for reading Batch file lines */
00047 
00048 
00049 LPTSTR FindArg (TCHAR, BOOL *);
00050 LPTSTR BatchParams (LPTSTR, LPTSTR);
00051 VOID   ExitBatch (VOID);
00052 INT    Batch (LPTSTR, LPTSTR, LPTSTR, PARSED_COMMAND *);
00053 BOOL   BatchGetString (LPTSTR lpBuffer, INT nBufferLength);
00054 LPTSTR ReadBatchLine(VOID);
00055 VOID   AddBatchRedirection(REDIRECTION **);

Generated on Sun May 27 2012 04:18:10 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.