Windows
+-PID---+ >>-SysQueryProcess(" -+-TID---+- ")---------------------------->< +-PPRIO-+ +-TPRIO-+ +-PTIME-+ +-TTIME-+
Unix
+-PID------+ >>-SysQueryProcess(" -+----------+- ")------------------------->< +-PPID-----+ +-PPRIO----+ +-PTIME----+ +-PMEM-----+ +-PSWAPS---+ +-PRCVDSIG-+
Retrieves information about the current process or Windows thread.
Parameter:
The kind of information requested:
Returns the process ID of the current process.
Returns the parent process ID of the current process.
Returns the thread ID of the current thread.
Returns the priority class of the current process.
Returns the relative priority of the current thread.
Returns time information on the current process.
Returns time information on the current thread.
Returns the maximum memory (RSS) used by the current process.
Returns the number of signals that have been received by the process.
Return codes:
For PID, PPID or TID: an ID
For Windows PPRIO: "IDLE", "NORMAL", "HIGH", "REALTIME", or "UNKNOWN"
For Unix PPRIO: a number from -20 to +20.
For TPRIO: "IDLE", "LOWEST", "BELOW_NORMAL", "NORMAL", "ABOVE_NORMAL", "HIGHEST", "TIME_CRITICAL", or "UNKNOWN"
For Windows PTIME or TTIME: the creation date and time, the amount of time that the process executed in kernel mode, and the amount of time that the process executed in user mode
For Unix PTIME: the summary and the duration that the process executed in kernel mode, and the duration that the process executed in user mode