69#ifdef MSCMD_BATCH_ECHO
92 TRACE(
"FindArg: (%d)\n",
n);
100 *IsParam0 = (
n == 0);
142 WARN(
"Cannot allocate memory for RawParams!\n");
147 (*RawParams)[
len] =
_T(
'\0');
155 WARN(
"Cannot allocate memory for ParamList!\n");
185 inquotes ^= (*
Args ==
_T(
'"'));
226 TRACE(
"ExitBatch\n");
231#ifndef MSCMD_BATCH_ECHO
252#ifdef MSCMD_BATCH_ECHO
272 TRACE(
"BatchFile2Mem()\n");
317 TRACE(
"Batch(\'%s\', \'%s\', \'%s\') bSameFn = %d\n",
395#ifndef MSCMD_BATCH_ECHO
398 for (
i = 0;
i < 10;
i++)
417#ifdef MSCMD_BATCH_ECHO
483 if (!
bc || bTopLevel)
488#ifdef MSCMD_BATCH_ECHO
560 TRACE(
"ReadBatchLine()\n");
571 TRACE(
"ReadBatchLine(): Reached EOF!\n");
VOID AddBatchRedirection(REDIRECTION **RedirList)
static void BatchFile2Mem(HANDLE hBatchFile)
TCHAR textline[BATCH_BUFFSIZE]
BOOL FindArg(IN TCHAR Char, OUT PCTSTR *ArgPtr, OUT BOOL *IsParam0)
static VOID ClearBatch(VOID)
static BOOL BatchParams(IN PCTSTR Arg0, IN PCTSTR Args, OUT PTSTR *RawParams, OUT PTSTR *ParamList)
BOOL BatchGetString(LPTSTR lpBuffer, INT nBufferLength)
VOID ExitAllBatches(VOID)
LPTSTR ReadBatchLine(VOID)
INT ExecuteCommandWithEcho(IN PARSED_COMMAND *Cmd)
PTSTR DoDelayedExpansion(IN PCTSTR Line)
PARSED_COMMAND * ParseCommand(IN PCTSTR Line)
LPTSTR _stpcpy(LPTSTR, LPCTSTR)
VOID error_out_of_memory(VOID)
VOID FreeRedirection(REDIRECTION *)
TCHAR ParseLine[CMDLINE_LENGTH]
VOID UndoRedirection(REDIRECTION *, REDIRECTION *End)
VOID FreeCommand(IN OUT PARSED_COMMAND *Cmd)
#define ConErrResPuts(uID)
#define ConOutPuts(szStr)
#define STRING_BATCH_ERROR
enum _BATCH_TYPE BATCH_TYPE
static TAGREF LPCWSTR LPDWORD LPVOID lpBuffer
#define ReadFile(a, b, c, d, e)
#define INVALID_HANDLE_VALUE
#define FILE_ATTRIBUTE_NORMAL
#define MultiByteToWideChar
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
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 const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define FILE_FLAG_SEQUENTIAL_SCAN
#define FILE_SHARE_DELETE
struct _BATCH_CONTEXT * prev
struct _SETLOCAL * setlocal
TCHAR BatchFilePath[MAX_PATH]
_In_ LPCSTR _In_opt_ LPCSTR _In_ DWORD nBufferLength
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY ListEnd