bool RestartMachine(bool)
Reboots the system
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
force |
(Optional) bool True to force a reboot. Defaults to false. |
Return
True on success.
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.
Launching an app on login and restarting after closing the app can help make the app act as a shell application within KioWare.
Examples
var pid
var wnd = null
if(!pid) pid = KioUtils.Execute('notepad.exe')
var wnd = null
while (!wnd) {
wnd = KioUtils.GetProcMainWnd(pid)
setTimeout(function(){check}, 500)
}
//restart after external process is closed.
function check(){
if(!KioUtils.IsProcRunning(pid))
KioUtils.RestartMachine()
}
Requirements
KioWare for Windows version 8.5 or greater.