diff options
Diffstat (limited to 'src/ProcessWindows.hpp')
| -rw-r--r-- | src/ProcessWindows.hpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/ProcessWindows.hpp b/src/ProcessWindows.hpp new file mode 100644 index 0000000..6f9f212 --- /dev/null +++ b/src/ProcessWindows.hpp @@ -0,0 +1,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
\ No newline at end of file |
