TalanSoft Toolkits  201707
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Member Functions | List of all members
iOSProcessManager Struct Referenceabstract
Inheritance diagram for iOSProcessManager:
iUnknown

Detailed Description

OS Process Manager.

Public Member Functions

virtual tInt GetCurrentProcessID () const =0
 Return the id of the current process. {Property}. More...
 
virtual iOSProcessGetCurrentProcess () const =0
 Return a process object of the current process. {Property}. More...
 
virtual iOSProcessCreateProcess (tInt aPID)=0
 Create a process object from the specified process id. More...
 
virtual iOSProcessSpawnProcess (const ni::achar *aaszCmdLine, tOSProcessSpawnFlags aSpawn)=0
 Spawn a new process. More...
 
virtual iOSProcessSpawnProcessEx (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 iUnknownQueryInterface (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...
 

Member Function Documentation

virtual tInt GetCurrentProcessID ( ) const
pure virtual

Return the id of the current process. {Property}.

virtual iOSProcess* GetCurrentProcess ( ) const
pure virtual

Return a process object of the current process. {Property}.

virtual iOSProcess* CreateProcess ( tInt  aPID)
pure virtual

Create a process object from the specified process id.

virtual iOSProcess* SpawnProcess ( const ni::achar aaszCmdLine,
tOSProcessSpawnFlags  aSpawn 
)
pure virtual

Spawn a new process.

See also
ni::iOSProcessManager::SpawnProcessEx
virtual iOSProcess* SpawnProcessEx ( const ni::achar aaszCmdLine,
const achar aaszWorkDir,
const tStringCMap apEnvs,
tOSProcessSpawnFlags  aSpawn 
)
pure virtual

Spawn a new process with the specified working directory and environment variables.

Parameters
aaszCmdLinethe command line of the process to spawn.
aaszWorkDirif not NULL specifies the working directory from where the process will start.
apEnvsif not NULL specifies the environment variables that will be set for the new process.
aSpawnthe spawn flags.
See also
ni::eOSProcessSpawnFlags
virtual tU32 EnumProcesses ( ni::iRegex apFilter,
iOSProcessEnumSink apSink 
)
pure virtual

Enumerates all processes.

Returns
The number of processes enumerated.
Remarks
If apSink is NULL returns the number of processes that passed the filter.