13 // This should be bigger than the maximum length of an engine output or GUI
15 const int LINE_INPUT_MAX_CHAR = 40960;
25 friend DWORD WINAPI ThreadProc(LPVOID lpParam);
29 bool GetBuffer(char *szLineStr);
30 void LineInput(char *szLineStr);
31 void LineOutput(const char *szLineStr) const;
32 void Open(const char *szExecFile = NULL);
33 void Close(void) const;
34 void Kill(void) const;
38 HANDLE hInput, hOutput;
44 CRITICAL_SECTION CriticalSection;
47 volatile char * lpFeedEnd;
48 volatile int nReadEnd;
49 char lpBuffer[LINE_INPUT_MAX_CHAR];
50 char lpReadBuffer[LINE_INPUT_MAX_CHAR];
53 void set_EOF_input(void);
54 void set_Active(void);