This object represents a running process.
Constructor function.
var myObject = new ProcessHandle();
var myObject = new ProcessHandle(otherProcessHandle);
var myObject = new ProcessHandle(processId);
Create a ProcessHandle representing an invalid process.
var myObject = new ProcessHandle();
Create a ProcessHandle representing a copy of otherProcessHandle.
var myObject = new ProcessHandle(otherProcessHandle);
Create a ProcessHandle linked to the process id 1337.
var myObject = new ProcessHandle(1337);
Returns a copy of this ProcessHandle.
myObject.clone();
var copyOfMyObject = myObject.clone();
Returns true if this ProcessHandle and another are referencing the same process.
myObject.equals(other);
if(myFirstObject.equals(mySecondObject)) //Do something
Returns a string representing this ProcessHandle.
myObject.toString();
Console.print(myObject.toString());
This method is automatically called when trying to convert a ProcessHandle to a string.
Returns the process id.
myObject.id();
Try to kill the process.
myObject.kill(killMode, timeout);
Returns true if the process is currently running.
myObject.isRunning();
Returns the command that was used to start this process.
myObject.command();
Returns the priority of this process.
myObject.priority();
This method only works on Windows, because Linux doesn't have any concept of process priority.
Policy to use when trying to kill a process.
A process priority.