bool LogOffMachine(bool)
Logs out of the current system user
Security
Trust Level Required: Full Trust
Parameters
Name | Description |
force |
(Optional) bool True to force log off. 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 logging out 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)
}
//log off after external process is closed.
function check(){
if(!KioUtils.IsProcRunning(pid))
KioUtils.LogOffMachine()
}
Requirements
KioWare for Windows version 8.5 or greater.