#include <win32process.h>
Inherits Base::Process.
|
static bool | CheckIfExists (const IO::URI &program) |
| Detect if an instance of a given process is running.
|
|
◆ Win32Process()
Win32::Win32Process::Win32Process |
( |
| ) |
|
◆ CaptureOutput()
void Win32::Win32Process::CaptureOutput |
( |
HANDLE | stdoutRead, |
|
|
HANDLE | stderrRead, |
|
|
HANDLE | childProcess ) const |
|
private |
◆ CheckIfExists() [1/2]
bool Win32::Win32Process::CheckIfExists |
( |
| ) |
|
|
virtual |
Detect if an instance of the process is already running.
Implements Base::Process.
◆ CheckIfExists() [2/2]
bool Win32::Win32Process::CheckIfExists |
( |
const IO::URI & | program | ) |
|
|
static |
Detect if an instance of a given process is running.
◆ CreateStdoutCapturePipe()
bool Win32::Win32Process::CreateStdoutCapturePipe |
( |
PHANDLE | stdoutRead, |
|
|
PHANDLE | stdoutWrite ) const |
|
private |
create pipe for optional stdout capturing
◆ IsRunning()
bool Win32::Win32Process::IsRunning |
( |
| ) |
|
|
virtual |
Gets the state of application. Call this per frame.
Gets the state of the application.
Implements Base::Process.
◆ Launch()
bool Win32::Win32Process::Launch |
( |
| ) |
|
|
virtual |
launch application (returns immediately)
Launch the application process and returns immediately.
The state of the launched process can be checked by calling IsRunning().
Implements Base::Process.
◆ LaunchWait()
bool Win32::Win32Process::LaunchWait |
( |
| ) |
const |
|
virtual |
launch application and wait for its termination
Implements Base::Process.
◆ LaunchWithoutOutputCapturing()
bool Win32::Win32Process::LaunchWithoutOutputCapturing |
( |
DWORD | creationFlags, |
|
|
const Util::String & | cmdLine ) const |
|
private |
launch without stdout capturing
◆ LaunchWithOutputCapturing()
bool Win32::Win32Process::LaunchWithOutputCapturing |
( |
DWORD | creationFlags, |
|
|
const Util::String & | cmdLine ) const |
|
private |
launch with stdout capturing
◆ UpdateStdoutStream()
void Win32::Win32Process::UpdateStdoutStream |
( |
| ) |
|
|
virtual |
Read data from the captured stdout and writes it to the stream.
Reads all arrived data from stdout since the last call of this method and puts it to the stream.
Implements Base::Process.
◆ asyncBuffer
◆ asyncBufferSize
const int Win32::Win32Process::asyncBufferSize = 4096 |
|
staticprivate |
◆ lauchedProcessInfo
PROCESS_INFORMATION Win32::Win32Process::lauchedProcessInfo |
|
private |
◆ numAsyncBytesAvailable
DWORD Win32::Win32Process::numAsyncBytesAvailable |
|
private |
◆ numAsyncBytesRead
DWORD Win32::Win32Process::numAsyncBytesRead |
|
private |
◆ stderrAsyncRead
HANDLE Win32::Win32Process::stderrAsyncRead |
|
private |
◆ stderrAsyncWrite
HANDLE Win32::Win32Process::stderrAsyncWrite |
|
private |
◆ stdoutAsyncRead
HANDLE Win32::Win32Process::stdoutAsyncRead |
|
private |
◆ stdoutAsyncWrite
HANDLE Win32::Win32Process::stdoutAsyncWrite |
|
private |
The documentation for this class was generated from the following files: