Platforms to show: All Mac Windows Linux Cross-Platform
Answer:
Try this code:
uFlags parameters:
'4 = EWX_Force
'0 = EWX_Logoff
'2 = EWX_Reboot
'1 = EWX_shutdown, should shut down computer
Also check the ExitWindowsMBS method.