aboutsummaryrefslogtreecommitdiff
path: root/ProcessUtils.h
blob: d545c6957abf09f408a36faa9301941fd6db00a2 (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, LPCTSTR wdir, COORD zsCon, bool bUseConPty);
void CleanupSubProcess(const SubProcessData* spd);
UINT GetIcon(const SubProcessData* spd, HICON *phIconLarge, HICON *phIconSmall);