45 #if defined( __unix__ ) || DOXYGEN
63 #if defined( __APPLE__ )
70 #if defined( _WIN32 ) || DOXYGEN
88 #if defined( __unix__ )
112 #if defined( __unix__ ) || defined(__APPLE__)
This class represents process information.
AString StatPGRP
The process group field (4) within Stat. (Unix like OS only.)
ProcessInfo()
Default constructor to create an empty instance.
AString Stat
The contents of /proc/PID/stat file. (Unix like OS only.)
ProcessInfo(uinteger processID)
ALIB_DLL bool get(uinteger PID)
uinteger PPID
The parent's process id as AString. (Unix like OS / Mac OS only.)
AString ExecFilePath
The path of the executable (if available to us).
AString StatState
The state field (2) within Stat. (Unix like OS only.)
ALIB_DLL bool Get(uinteger processID)
static ALIB_DLL ProcessInfo current
uinteger PID
The process id as AString.
static ALIB_DLL const ProcessInfo & Current()
AString CmdLine
The command line which invoked this process.
AString ConsoleTitle
For console processes, this is the title displayed in the title bar. (Windows OS only....
bool getStatField(int fieldNo, AString &target)
strings::TAString< character, lang::HeapAllocator > AString
Type alias in namespace alib.
system::ProcessInfo ProcessInfo
Type alias in namespace alib.
lang::uinteger uinteger
Type alias in namespace alib.