From db4d104ed965592c1d89c31d96301f0a44640df7 Mon Sep 17 00:00:00 2001 From: Loic Guegan Date: Thu, 3 Feb 2022 07:10:32 +0100 Subject: Integrate windows process --- src/ProcessWindows.hpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/ProcessWindows.hpp (limited to 'src/ProcessWindows.hpp') 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 + +#include +#include +#include +#include + +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 -- cgit v1.2.3