bool ShutDownMachine (bool)

Shuts down the system

Security

Trust Level Required: Full Trust

Parameters

Name Description
force (Optional) bool
True to force shut down. 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 shutting down 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)
}
//force shut down after external process is closed.
function check(){
	if(!KioUtils.IsProcRunning(pid)) 
		KioUtils.ShutDownMachine(1)
}

Requirements

KioWare for Windows version 8.5 or greater.