This class represents an operating system process.
![]() | Construction |
![]() | Overrides from class PObject |
![]() | Overrides from class PThread |
![]() | Process information functions |
![]() | Operating System information functions |
Overrides from PObject
Control functions
Miscellaneous
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
This class represents an operating system process. This is a running "programme" in the context of the operating system. Note that there can only be one instance of a PProcess class in a given programme.The instance of a PProcess or its GUI descendent PApplication is usually a static variable created by the application writer. This is the initial änchor" point for all data structures in an application. As the application writer never needs to access the standard system main() function, it is in the library, the programmes execution begins with the virtual function PThread::Main() on a process.
virtual PString GetThreadName() const
virtual void SetThreadName( const PString & name )
The termination value is an operating system dependent integer which
indicates the processes termiantion value. It can be considered a
"return value" for an entire programme.
The termination value is an operating system dependent integer which
indicates the processes termiantion value. It can be considered a
"return value" for an entire programme.
The default for this information is the empty string.
The default is the title part of the executable image file.
If the full parameter is TRUE then a version string
built from the major, minor, status and build veriosn codes is
returned. If FALSE then only the major and minor versions are
returned. The default for this information is "1.0".
The search is actually done when the GetConfigurationFile() is called,
this function only sets the internal variable. Note for Windows, a path beginning with "HKEY_LOCAL_MACHINEstatic BOOL IsInitialised()
void SetTerminationValue( int value )
int GetTerminationValue() const
PArgList& GetArguments()
const PString& GetManufacturer() const
const PString& GetName() const
PString GetVersion( BOOL full = TRUE ) const
const PFilePath& GetFile() const
DWORD GetProcessID() const
PString GetUserName() const
virtual PString GetConfigurationFile()
void SetConfigurationPath( const PString & path )
" or
"HKEY_CURRENT_USER
" will actually search teh system registry for the
application base name only (no ".ini") in that folder of the registry.
static PString GetOSName()
static PString GetOSHardware()
static PString GetOSVersion()
static PDirectory GetOSConfigDir()
Alphabetic index HTML hierarchy of classes or Java