bool IsProcRunning(int)

Determines if the specified process is running

Security

Trust Level Required: Full Trust

Parameters

Name Description
pid int
The process ID

Return

True if the process is running, false otherwise.

Remarks

IMPORTANT: While KioWare can be used to open 3rd party applications it cannot guarantee any security of your kiosk while these applications are in use.

When running an external application it is highly recommended to store the id of the process. This can help with debugging and allow for further control of the external application.

Examples


let cmd = 'notepad.exe'
let wnd, pid
Run(cmd)

function Run(cmd)
{
    if(!pid || !KioUtils.IsProcRunning(pid)) 
    {
        wnd = 0
        pid = KioUtils.Execute(cmd)
    }
    if(pid) setInterval(function(){ console.log(pid+' Is running.'); }, 10000)
}

Requirements

KioWare for Windows version 8.5 or greater.