ReactOS  0.4.13-dev-66-gc714b7f
CPipedProcess.cpp
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Automatic Testing Utility
3  * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+)
4  * PURPOSE: Class that creates a process and redirects its output to a pipe
5  * COPYRIGHT: Copyright 2015 Thomas Faber (thomas.faber@reactos.org)
6  */
7 
8 #include "precomp.h"
9 
20 CPipedProcess::CPipedProcess(const wstring& CommandLine, CPipe& Pipe)
21  : CProcess(CommandLine, InitStartupInfo(Pipe))
22 {
23  Pipe.CloseWritePipe();
24 }
25 
34 {
36  m_StartupInfo.cb = sizeof(m_StartupInfo);
41  return &m_StartupInfo;
42 }
LPSTARTUPINFOW InitStartupInfo(CPipe &Pipe)
Definition: CPipe.h:8
STARTUPINFOW m_StartupInfo
Definition: CPipedProcess.h:11
#define ZeroMemory
Definition: winbase.h:1635
HANDLE hStdOutput
Definition: winbase.h:833
HANDLE WINAPI GetStdHandle(IN DWORD nStdHandle)
Definition: console.c:152
SIZE_T LPSTARTUPINFOW
Definition: cordebug.idl:85
void CloseWritePipe()
Definition: CPipe.cpp:52
#define STD_INPUT_HANDLE
Definition: winbase.h:264
#define STARTF_USESTDHANDLES
Definition: winbase.h:480
DWORD cb
Definition: winbase.h:817
CPipedProcess(const wstring &CommandLine, CPipe &Pipe)
HANDLE hStdInput
Definition: winbase.h:832
HANDLE hStdError
Definition: winbase.h:834
HANDLE m_hWritePipe
Definition: CPipe.h:12
DWORD dwFlags
Definition: winbase.h:828