reactos/rostests/rosautotest/CPipedProcess.h
Thomas Faber 1ea34407b8 [ROSAUTOTEST]
- Abstract unidirectional anonymous pipes into a CPipe class
- Abstract a process with redirected output into a CPipedProcess class
- Use these abstractions to avoid polling for output from test processes. Instead, use blocking read operations to yield the CPU while waiting for data.
ROSTESTS-144 #resolve

svn path=/trunk/; revision=66316
2015-02-16 13:17:04 +00:00

18 lines
504 B
C++

/*
* PROJECT: ReactOS Automatic Testing Utility
* LICENSE: GNU GPLv2 or any later version as published by the Free Software Foundation
* PURPOSE: Class that creates a process and redirects its output to a pipe
* COPYRIGHT: Copyright 2015 Thomas Faber <thomas.faber@reactos.org>
*/
class CPipedProcess : public CProcess
{
private:
STARTUPINFOW m_StartupInfo;
LPSTARTUPINFOW InitStartupInfo(CPipe& Pipe);
public:
CPipedProcess(const wstring& CommandLine, CPipe& Pipe);
};