blob: 0b6f304efeafc66d06f996d4018796743c974556 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
|