aboutsummaryrefslogtreecommitdiff
path: root/ProcessUtils.h
diff options
context:
space:
mode:
Diffstat (limited to 'ProcessUtils.h')
-rw-r--r--ProcessUtils.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/ProcessUtils.h b/ProcessUtils.h
new file mode 100644
index 0000000..0b6f304
--- /dev/null
+++ b/ProcessUtils.h
@@ -0,0 +1,15 @@
+#pragma once
+#include <Windows.h>
+
+struct SubProcessData
+{
+ HRESULT hr;
+ HPCON hPC;
+ PROCESS_INFORMATION pi;
+ HANDLE hInput;
+ HANDLE hOutput;
+};
+
+SubProcessData CreateSubProcess(LPCTSTR cmd, COORD zsCon, bool bUseConPty);
+void CleanupSubProcess(const SubProcessData* spd);
+UINT GetIcon(const SubProcessData* spd, HICON *phIconLarge, HICON *phIconSmall);