// includes
#include <windows.h>
+#include <io.h>
+#include <fcntl.h>
+#include <stdio.h>
// constants
struct PipeStruct {
HANDLE hInput, hOutput;
+ FILE *fpInput;
HANDLE hProcess;
HANDLE hThread;
HANDLE hEvent;
CRITICAL_SECTION CriticalSection;
volatile DWORD state;
+ volatile char * lpFeedEnd;
volatile int nReadEnd;
char lpBuffer[LINE_INPUT_MAX_CHAR];
char lpReadBuffer[LINE_INPUT_MAX_CHAR];
bool Active(void);
void set_Active(void);
void ReadInput(void);
- int ReadLine(void);
- bool CheckInput(void);
+ int ReadData(void);
bool GetBuffer(char *szLineStr);
void LineInput(char *szLineStr);
void LineOutput(const char *szLineStr) const;