added wxShutdown (patch 547443)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15383 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -220,6 +220,15 @@ enum wxKillError
|
||||
wxKILL_ERROR // another, unspecified error
|
||||
};
|
||||
|
||||
enum wxShutdownFlags
|
||||
{
|
||||
wxSHUTDOWN_POWEROFF, // power off the computer
|
||||
wxSHUTDOWN_REBOOT // shutdown and reboot
|
||||
};
|
||||
|
||||
// Shutdown or reboot the PC
|
||||
WXDLLEXPORT bool wxShutdown(wxShutdownFlags wFlags);
|
||||
|
||||
// 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
|
||||
//
|
||||
|
Reference in New Issue
Block a user