blob: 6f9f212e2b031dfb8b1fa8e2323fb572f0603708 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#include "Process.hpp"
#include <chrono>
#include <stdio.h>
#include <strsafe.h>
#include <tchar.h>
#include <windows.h>
namespace uciadapter {
class ProcessWindows : public Process {
HANDLE g_hChildStd_IN_Rd = NULL;
HANDLE g_hChildStd_IN_Wr = NULL;
HANDLE g_hChildStd_OUT_Rd = NULL;
HANDLE g_hChildStd_OUT_Wr = NULL;
SECURITY_ATTRIBUTES saAttr;
void ProcessWindows::ErrorExit(PTSTR lpszFunction);
void ProcessWindows::CreateChildProcess(std::string);
public:
ProcessWindows();
void Kill();
void Start(std::string);
std::string ReadLine();
void Write(std::string);
};
}; // namespace uciadapter
|