diff options
author | RadAd <adamgates84+github@gmail.com> | 2019-05-24 11:43:35 +1000 |
---|---|---|
committer | RadAd <adamgates84+github@gmail.com> | 2019-05-24 11:43:35 +1000 |
commit | b109b3aa802ba463200eeced0f654f5316549deb (patch) | |
tree | 9e75bcc0211de675667d89c33dff868464288296 /ProcessUtils.h | |
download | RadTerminal-b109b3aa802ba463200eeced0f654f5316549deb.tar.gz RadTerminal-b109b3aa802ba463200eeced0f654f5316549deb.zip |
Initial version
Diffstat (limited to 'ProcessUtils.h')
-rw-r--r-- | ProcessUtils.h | 15 |
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); |