added wxSHUTDOWN_LOGOFF flag, don't use EWX_FORCE by default but only if wxSHUTDOWN_FORCE is specified

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54949 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2008-08-03 10:56:05 +00:00
parent 19c0043f74
commit 118a41d993
3 changed files with 31 additions and 15 deletions

View File

@@ -959,18 +959,22 @@ bool wxShell(const wxString& command = NULL);
This function shuts down or reboots the computer depending on the value of
the @a flags.
@note Doing this requires the corresponding access rights (superuser under
Unix, SE_SHUTDOWN privilege under Windows NT) and that this function
is only implemented under Unix and Win32.
@note Note that performing the shutdown requires the corresponding access
rights (superuser under Unix, SE_SHUTDOWN privilege under Windows NT)
and that this function is only implemented under Unix and MSW.
@param flags
Either wxSHUTDOWN_POWEROFF or wxSHUTDOWN_REBOOT
One of @c wxSHUTDOWN_POWEROFF, @c wxSHUTDOWN_REBOOT or
@c wxSHUTDOWN_LOGOFF (currently implemented only for MSW) possibly
combined with @c wxSHUTDOWN_FORCE which forces shutdown under MSW by
forcefully terminating all the applications. As doing this can result
in a data loss, this flag shouldn't be used unless really necessary.
@return @true on success, @false if an error occurred.
@header{wx/utils.h}
*/
bool wxShutdown(wxShutdownFlags flags);
bool wxShutdown(int flags = wxSHUTDOWN_POWEROFF);
//@}