X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f75e0c15ae7d3fcf8c9c32572050d1bb597cc888..44bcee116e0c56abe8027afcb1a3575fdc6ff732:/include/wx/utils.h?ds=inline diff --git a/include/wx/utils.h b/include/wx/utils.h index 7e9a195160..72004ffe13 100644 --- a/include/wx/utils.h +++ b/include/wx/utils.h @@ -419,12 +419,14 @@ enum wxKillFlags enum wxShutdownFlags { - wxSHUTDOWN_POWEROFF, // power off the computer - wxSHUTDOWN_REBOOT // shutdown and reboot + wxSHUTDOWN_FORCE = 1,// can be combined with other flags (MSW-only) + wxSHUTDOWN_POWEROFF = 2,// power off the computer + wxSHUTDOWN_REBOOT = 4,// shutdown and reboot + wxSHUTDOWN_LOGOFF = 8 // close session (currently MSW-only) }; // Shutdown or reboot the PC -WXDLLIMPEXP_BASE bool wxShutdown(wxShutdownFlags wFlags); +WXDLLIMPEXP_BASE bool wxShutdown(int flags = wxSHUTDOWN_POWEROFF); // send the given signal to the process (only NONE and KILL are supported under // Windows, all others mean TERM), return 0 if ok and -1 on error