case rgExitOptions.ItemIndex of
0: Win32Check(ExitWindows(0, 0)); // Exit and log on as a
// different user.
1: Win32Check(ExitWindowsEx(EWX_REBOOT, 0)); // Exit/Reboot
2: Win32Check(ExitWindowsEx(EWX_SHUTDOWN, 0));// Exit to Power Off
// Exit/Log off/Log on as different user
3: Win32Check(ExitWindowsEx(EWX_LOGOFF, 0));
end;