System::Diagnostics::Process class
Contents
[
Hide
]Process class
Encapsulates process information and manipulation. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
class Process : public System::Object
Methods
Method | Description |
---|---|
get_EnableRaisingEvents() const | Gets whether the event Exited should be raised when the process terminates. |
get_ExitCode() const | Gets process exit code. |
get_PrivateMemorySize64() const | Gets process private memory set size. |
get_ProcessName() const | Gets process name. |
get_StandardError() const | Provides reader to read from process error output. Not implemented. |
get_StandardOutput() const | Provides reader to read from process standard output. Not implemented. |
get_StartInfo() const | Gets process start information. |
get_WorkingSet64() const | Gets process memory working set size. |
static GetCurrentProcess() | Gets information on current process. Windows only. |
GetOutputText() const | Gets process output text. |
set_EnableRaisingEvents(bool) | Sets whether the event Exited should be raised when the process terminates. |
Start() | Starts process with pre-defined parameters. |
static Start(const String&, const String&) | Starts process with specified path and arguments. |
static Start(const SharedPtr<ProcessStartInfo>&) | Starts process with specified path and arguments. |
WaitForExit(int) | Waits for process to exit. Not implemented. |
WaitForExit() | Waits for process to exit, doesn’t return until it’s over. |
virtual ~Process() | Destructor. |
See Also
- Class Object
- Namespace System::Diagnostics
- Library Aspose.PUB for C++