int GetProcMainWnd(int)
Returns the specified process's main window handle
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
pid |
int The process ID |
Return
The window handle, or 0.
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.It is also possible to show a taskbar with all open apps via the User Interface section of the Configuration Tool. With KioWare running in shell mode, as is recommended, the start menu will still be disabled.
Examples
var pid = KioUtils.Execute('taskmgr')
var wnd = null
while (!wnd) {
wnd = KioUtils.GetProcMainWnd(pid)
}
KioUtils.BringWndToFront(wnd)
Requirements
KioWare for Windows version 8.5 or greater.