Open System Services Programmer's Guide

Using the Guardian API
The Guardian procedures that provide information about OSS processes as well as Guardian
processes are PROCESS_GETINFO_ and PROCESS_GETINFOLIST_.
Beginning with the H06.24 and J06.13 RVUs, additional 64-bit process attributes are available.
For information about 64-bit process attributes, see “New PROCESS_GETINFOLIST_ Attributes
(page 287).
The PROCESS_GETINFO_ procedure returns a limited set of information about a specified process,
including the process handle, execution priority, home terminal, type (OSS or Guardian), swap
file and program file statistics, and the OSS process ID if it is an OSS process.
The PROCESS_GETINFOLIST_ procedure returns detailed information about a process or set of
processes that meets specified criteria. These criteria identify processes for which information is
returned.
Example 34 (page 132) gets information about an OSS or Guardian process by obtaining the
process handle for the process and then passing the process handle to PROCESS_GETINFO_. If
no process name is provided from the command line, information about the current process is
retrieved and printed.
Querying the Process Environment 131