function pslist()
{
    const processes = host.currentSession.Processes;

    let processList = [];

    for(const process of processes)
    {
        const eprocessOffset = __getProcessOffset(process);
        const processName = __getProcessName(process);
        const processId = parseInt(process.Id.toString());
        const parentProcessId = parseInt(__getPPid(process));
        const threadsCount = parseInt(__getNumberOfThreads(process));
        const handlesCount = __getNumberOfHandles(process);
        const sessionId = __getSessionId(process);
        const wow64Process = __isWow64Process(process);
        const startTime = __getProcessStartTime(process);
        const exitTime = __getProcessExitTime(process);

        let processInFormat = 
        {
            Offset: eprocessOffset,
            Name: processName,
            PID: processId,
            PPID: parentProcessId,
            Thds: threadsCount,
            Hnds: handlesCount,
            Sess: sessionId,
            Wow64: wow64Process,
            Start: startTime,
            Exit: exitTime
        };

        processList.push(processInFormat);
    }

    return processList;
}
/**
    List all available processes with useful information.
*/
List all available processes with useful information.
List all available processes with useful information .
function pslist()
{
    const processes = host.currentSession.Processes;
    let processList = [];
    for(const process of processes)
    {
        const eprocessOffset = __getProcessOffset(process);
        const processName = __getProcessName(process);
        const processId = parseInt(process.Id.toString());
        const parentProcessId = parseInt(__getPPid(process));
        const threadsCount = parseInt(__getNumberOfThreads(process));
        const handlesCount = __getNumberOfHandles(process);
        const sessionId = __getSessionId(process);
        const wow64Process = __isWow64Process(process);
        const startTime = __getProcessStartTime(process);
        const exitTime = __getProcessExitTime(process);
        let processInFormat = 
        {
            Offset: eprocessOffset,
            Name: processName,
            PID: processId,
            PPID: parentProcessId,
            Thds: threadsCount,
            Hnds: handlesCount,
            Sess: sessionId,
            Wow64: wow64Process,
            Start: startTime,
            Exit: exitTime
        };
        processList.push(processInFormat);
    }
    return processList;
}
function pslist ( ) { const processes = host . currentSession . Processes ; let processList = [ ] ; for ( const process of processes ) { const eprocessOffset = __getProcessOffset ( process ) ; const processName = __getProcessName ( process ) ; const processId = parseInt ( process . Id . toString ( ) ) ; const parentProcessId = parseInt ( __getPPid ( process ) ) ; const threadsCount = parseInt ( __getNumberOfThreads ( process ) ) ; const handlesCount = __getNumberOfHandles ( process ) ; const sessionId = __getSessionId ( process ) ; const wow64Process = __isWow64Process ( process ) ; const startTime = __getProcessStartTime ( process ) ; const exitTime = __getProcessExitTime ( process ) ; let processInFormat = { Offset : eprocessOffset , Name : processName , PID : processId , PPID : parentProcessId , Thds : threadsCount , Hnds : handlesCount , Sess : sessionId , Wow64 : wow64Process , Start : startTime , Exit : exitTime } ; processList . push ( processInFormat ) ; } return processList ; }
List all available processes with useful information.
List all available processes with useful information .