klyn.process.Process.open
method
public static open(notnull identity as ProcessIdentity, notnull access as IList<ProcessAccess>) as ProcessHandle
Description

Opens a verified process instance with explicit minimal rights.

Parameters
ParameterDescription
identityIdentity obtained from SystemMonitor, including birth token.
accessRequired rights; QUERY never implies KILL.
Throws
  • klyn.system.SystemOperationException for stale identity or denial.
  • NotSupportedException if stable references are unavailable.
Example

try task = Process.open(row.identity, [ProcessAccess.QUERY]): print(task.isRunning)