13 // This should be bigger than the maximum length of an engine output or GUI
15 const int LINE_INPUT_MAX_CHAR = 40960;
26 HANDLE hInput, hOutput;
34 CRITICAL_SECTION CriticalSection;
37 volatile char * lpFeedEnd;
38 volatile int nReadEnd;
39 char lpBuffer[LINE_INPUT_MAX_CHAR];
40 char lpReadBuffer[LINE_INPUT_MAX_CHAR];
42 void Open(const char *szExecFile = NULL);
43 void Close(void) const;
44 void Kill(void) const;
48 void set_Active(void);
51 bool GetBuffer(char *szLineStr);
52 void LineInput(char *szLineStr);
53 void LineOutput(const char *szLineStr) const;