Public Member Functions | Static Public Member Functions | List of all members
AppSecInc::File::Process Class Reference

Win32 process support functions. More...

#include <Process.h>

Public Member Functions

 Process ()
 
virtual ~Process ()
 
void Create (const std::wstring &commandline, const std::wstring directory=L"")
 create a process More...
 
void CreateWithRedirectedOutput (const std::wstring &commandline, const std::wstring directory=L"")
 create a process with redirected pipes More...
 
void Wait (DWORD dwMilliseconds=INFINITE)
 wait for the process to complete More...
 
DWORD GetExitCode ()
 return process exit code More...
 
std::string ReadLine (bool &finished)
 read a line from an executing process' output More...
 

Static Public Member Functions

static DWORD Execute (const std::wstring commandline, const std::wstring &directory=L"")
 execute a process, wait for it to complete and return its exit code More...
 

Detailed Description

Win32 process support functions.

Constructor & Destructor Documentation

Process::Process ( )
Process::~Process ( )
virtual

Member Function Documentation

void Process::Create ( const std::wstring &  commandline,
const std::wstring  directory = L"" 
)

create a process

void Process::CreateWithRedirectedOutput ( const std::wstring &  commandline,
const std::wstring  directory = L"" 
)

create a process with redirected pipes

DWORD Process::Execute ( const std::wstring  commandline,
const std::wstring &  directory = L"" 
)
static

execute a process, wait for it to complete and return its exit code

DWORD Process::GetExitCode ( )

return process exit code

std::string Process::ReadLine ( bool &  finished)

read a line from an executing process' output

void Process::Wait ( DWORD  dwMilliseconds = INFINITE)

wait for the process to complete


The documentation for this class was generated from the following files:


© Application Security Inc. - All Rights Reserved http://msiext.codeplex.com