Public Member Functions | Static Public Member Functions

AppSecInc::File::Process Class Reference

Win32 process support functions. More...

#include <Process.h>

List of all members.

Public Member Functions

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

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

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