Hex Editor - Binary File Editing Software for Windows
Download Hex Editor Neo Hide this button

IProcess Interface

This interface is implemented by a process object. Use the findProcess and findProcesses methods to get a reference to this interface.

Declaration

interface IProcess {
    // Properties
    readonly ${processId}: number;
    readonly ${name}: string;
    readonly ${commandLine}: string;

    // Methods
    ${kill}(): boolean;
}
// This interface is not available in managed environment
// This interface is not available in native environment

IProcess Properties

processId

readonly processId: number;
// This property is not available in managed environment
// This property is not available in native environment

Process ID. This number is unique among all running processes.

NOTE

The system may reuse IDs after the process exits. This may happen when the process exits even if your script still holds a reference to a process object.

However, if you open the process using the openProcess method and store a IProcessWindow reference, the process ID will not be reused until process window is closed.

name

readonly name: string;
// This property is not available in managed environment
// This property is not available in native environment

Process name.

commandLine

readonly commandLine: string;
// This property is not available in managed environment
// This property is not available in native environment

The full command line of a running process. This property may be empty if Hex Editor Neo does not have enough rights to obtain process's command line.

IProcess Methods

kill

kill(): boolean;
// This method is not available in managed environment
// This method is not available in native environment

true if termination was successful or false otherwise (usually this means that the Hex Editor Neo does not have enough rights to terminate a given process).

Terminate the process.