wxSHUTDOWN_REBOOT // shutdown and reboot
};
-// Shutdown or reboot the PC
+// Shutdown or reboot the PC
WXDLLEXPORT bool wxShutdown(wxShutdownFlags wFlags);
// send the given signal to the process (only NONE and KILL are supported under
// Sleep for a given amount of milliseconds
WXDLLEXPORT void wxUsleep(unsigned long milliseconds);
+// Get the process id of the current process
+WXDLLEXPORT unsigned long wxGetProcessId();
+
// Get free memory in bytes, or -1 if cannot determine amount (e.g. on UNIX)
WXDLLEXPORT long wxGetFreeMemory();
// Message/event queue helpers
// ----------------------------------------------------------------------------
+// NB: these functions are obsolete, please use wxApp methods instead!
+
// Yield to other apps/messages
WXDLLEXPORT bool wxYield();
// ctor and enables them back in its dtor
class WXDLLEXPORT wxWindowDisabler
{
- DECLARE_NO_COPY_CLASS(wxWindowDisabler)
-
public:
wxWindowDisabler(wxWindow *winToSkip = (wxWindow *)NULL);
~wxWindowDisabler();
private:
wxWindowList *m_winDisabled;
+
+ DECLARE_NO_COPY_CLASS(wxWindowDisabler)
};
// ----------------------------------------------------------------------------
// Format a message on the standard error (UNIX) or the debugging
// stream (Windows)
-WXDLLEXPORT void wxDebugMsg(const wxChar *fmt ...);
+WXDLLEXPORT void wxDebugMsg(const wxChar *fmt ...) ATTRIBUTE_PRINTF_1;
// Non-fatal error (continues)
WXDLLEXPORT_DATA(extern const wxChar*) wxInternalErrorStr;