diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-03 07:10:32 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2022-02-03 07:10:32 +0100 |
| commit | db4d104ed965592c1d89c31d96301f0a44640df7 (patch) | |
| tree | 89aa5b8db92a890ac0ea03a1f69f2250957d5391 /src/ProcessWindows.hpp | |
| parent | 053b44639f28f018a51a5aada6548f212ad1b372 (diff) | |
Integrate windows process
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 |
