OS Process Manager.
Public Member Functions | |
| virtual tInt | GetCurrentProcessID () const =0 |
| Return the id of the current process. {Property}. More... | |
| virtual iOSProcess * | GetCurrentProcess () const =0 |
| Return a process object of the current process. {Property}. More... | |
| virtual iOSProcess * | CreateProcess (tInt aPID)=0 |
| Create a process object from the specified process id. More... | |
| virtual iOSProcess * | SpawnProcess (const ni::achar *aaszCmdLine, tOSProcessSpawnFlags aSpawn)=0 |
| Spawn a new process. More... | |
| virtual iOSProcess * | SpawnProcessEx (const ni::achar *aaszCmdLine, const achar *aaszWorkDir, const tStringCMap *apEnvs, tOSProcessSpawnFlags aSpawn)=0 |
| Spawn a new process with the specified working directory and environment variables. More... | |
| virtual tU32 | EnumProcesses (ni::iRegex *apFilter, iOSProcessEnumSink *apSink)=0 |
| Enumerates all processes. More... | |
Public Member Functions inherited from iUnknown | |
| virtual tBool | IsOK () const =0 |
| Check if the object is valid. More... | |
| virtual tI32 | AddRef ()=0 |
| Signal that one more reference of the object has been created. More... | |
| virtual tI32 | Release ()=0 |
| Release a reference of the object. More... | |
| virtual void | DeleteThis ()=0 |
| Bypass any reference counting and delete this object. More... | |
| virtual void | Invalidate ()=0 |
| Invalidate the object. More... | |
| virtual iUnknown * | QueryInterface (const tUUID &aIID)=0 |
| Query an interface. More... | |
| virtual void | ListInterfaces (iMutableCollection *apLst, tU32 anFlags) const =0 |
| Fill a UUID list containing the UUIDs of the implemented interfaces. More... | |
| virtual tI32 | SetNumRefs (tI32 anNumRefs)=0 |
| Set the reference counter directly. More... | |
| virtual tI32 | GetNumRefs () const =0 |
| Get the number of references to this object. More... | |
|
pure virtual |
Return the id of the current process. {Property}.
|
pure virtual |
Return a process object of the current process. {Property}.
|
pure virtual |
Create a process object from the specified process id.
|
pure virtual |
Spawn a new process.
|
pure virtual |
Spawn a new process with the specified working directory and environment variables.
| aaszCmdLine | the command line of the process to spawn. |
| aaszWorkDir | if not NULL specifies the working directory from where the process will start. |
| apEnvs | if not NULL specifies the environment variables that will be set for the new process. |
| aSpawn | the spawn flags. |
|
pure virtual |
Enumerates all processes.
1.8.7