]> git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/seh.h
Move #inclusion of wx/msw/winundef.h for MinGW to afterstd.h.
[wxWidgets.git] / include / wx / msw / seh.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/seh.h
3 // Purpose: helpers for the structured exception handling (SEH) under Win32
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 13.07.2003
7 // RCS-ID: $Id$
8 // Copyright: (c) 2003 Vadim Zeitlin <vadim@wxwindows.org>
9 // Licence: wxWindows licence
10 ///////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_MSW_SEH_H_
13 #define _WX_MSW_SEH_H_
14
15 #include "wx/defs.h"
16
17 #if wxUSE_ON_FATAL_EXCEPTION
18
19 // ----------------------------------------------------------------------------
20 // wxSEHReport: this class is used as a namespace for the SEH-related functions
21 // ----------------------------------------------------------------------------
22
23 struct WXDLLIMPEXP_BASE wxSEHReport
24 {
25 // set the name of the file to which the report is written, it is
26 // constructed from the .exe name by default
27 static void SetFileName(const wxChar *filename);
28
29 // return the current file name
30 static const wxChar *GetFileName();
31
32 // write the exception report to the file, return true if it could be done
33 // or false otherwise
34 static bool Generate();
35 };
36
37 #endif // wxUSE_ON_FATAL_EXCEPTION
38
39 #endif // _WX_MSW_SEH_H_
40