bool RestoreWnd(int)

Restores the specified window to the previous show state


Trust Level Required: Full Trust


Name Description
hWnd int
The handle of the window to restore


True on success.


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.
This is similar to the maximize/restore icon in a common application window.


//This example can be run from a custom toolbar javascript button or CustomToolbarCode.js
var pid
var wnd = null

if(!pid) pid = KioUtils.Execute('notepad.exe')
var wnd = null
while (!wnd) {
	wnd = KioUtils.GetProcMainWnd(pid)
	if(wnd) KioUtils.BringWndToFront(wnd)
	setInterval(checkVisibility, 500)

function checkVisibility(){
	//Prevent the user from minimizing a window
	if(KioUtils.IsWndMinimized(wnd)) KioUtils.RestoreWnd(wnd)


KioWare for Windows version 8.5 or greater.