WD Managing the Windows session
// Manage the action to perform
SWITCH RADIO_ACTION
CASE 1 // Close the session
SysShutdown(sysLogoff)
// Close the window
Close()
CASE 2 // Stop the system
SysShutdown(sysPoweroff)
// Close the window
Close()
CASE 3 // Restart the system
SysShutdown(sysReboot)
// Close the window
Close()
CASE 4 // Lock the session
IF CBOX_TEST_LOCKING[1] = True THEN
SysDetectLockedSession(LockingNotification)
END
SysShutdown(sysLockSession)
IF CBOX_TEST_LOCKING[1] = False THEN
// Close the window
Close()
END
END