winpty/misc/buffer-tests/harness/Spawn.h
Ryan Prichard 3575c55c8c Expand console handle testing for XP through Windows 7.
* The tests are mostly wrong for Windows 8 and up.
2015-10-21 19:56:06 -05:00

14 lines
269 B
C++

#pragma once
#include <windows.h>
#include <string>
struct SpawnParams {
BOOL bInheritHandles = FALSE;
DWORD dwCreationFlags = 0;
STARTUPINFOW sui = { sizeof(STARTUPINFOW), 0 };
};
HANDLE spawn(const std::string &workerName, const SpawnParams &params);