Planeshift
minidump_exception_win32.h
Go to the documentation of this file.
1 /* Copyright (c) 2006, Google Inc.
2  * All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions are
6  * met:
7  *
8  * * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * * Redistributions in binary form must reproduce the above
11  * copyright notice, this list of conditions and the following disclaimer
12  * in the documentation and/or other materials provided with the
13  * distribution.
14  * * Neither the name of Google Inc. nor the names of its
15  * contributors may be used to endorse or promote products derived from
16  * this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
22  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
23  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
24  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
29 
30 /* minidump_exception_win32.h: Definitions of exception codes for
31  * Win32 platform
32  *
33  * (This is C99 source, please don't corrupt it with C++.)
34  *
35  * Author: Mark Mentovai
36  * Split into its own file: Neal Sidhwaney */
37 
38 
39 #ifndef GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_WIN32_H__
40 #define GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_WIN32_H__
41 
42 #include <stddef.h>
43 
45 
46 
47 /* For (MDException).exception_code. These values come from WinBase.h
48  * and WinNT.h (names beginning with EXCEPTION_ are in WinBase.h,
49  * they are STATUS_ in WinNT.h). */
50 typedef enum {
52  /* DBG_CONTROL_C */
54  /* EXCEPTION_GUARD_PAGE */
56  /* EXCEPTION_DATATYPE_MISALIGNMENT */
58  /* EXCEPTION_BREAKPOINT */
60  /* EXCEPTION_SINGLE_STEP */
62  /* EXCEPTION_ACCESS_VIOLATION */
64  /* EXCEPTION_IN_PAGE_ERROR */
66  /* EXCEPTION_INVALID_HANDLE */
68  /* EXCEPTION_ILLEGAL_INSTRUCTION */
70  /* EXCEPTION_NONCONTINUABLE_EXCEPTION */
72  /* EXCEPTION_INVALID_DISPOSITION */
74  /* EXCEPTION_BOUNDS_EXCEEDED */
76  /* EXCEPTION_FLT_DENORMAL_OPERAND */
78  /* EXCEPTION_FLT_DIVIDE_BY_ZERO */
80  /* EXCEPTION_FLT_INEXACT_RESULT */
82  /* EXCEPTION_FLT_INVALID_OPERATION */
84  /* EXCEPTION_FLT_OVERFLOW */
86  /* EXCEPTION_FLT_STACK_CHECK */
88  /* EXCEPTION_FLT_UNDERFLOW */
90  /* EXCEPTION_INT_DIVIDE_BY_ZERO */
92  /* EXCEPTION_INT_OVERFLOW */
94  /* EXCEPTION_PRIV_INSTRUCTION */
96  /* EXCEPTION_STACK_OVERFLOW */
98  /* EXCEPTION_POSSIBLE_DEADLOCK */
100  /* STATUS_STACK_BUFFER_OVERRUN */
102  /* STATUS_HEAP_CORRUPTION */
104  /* Per http://support.microsoft.com/kb/185294,
105  generated by Visual C++ compiler */
107 
108 // These constants are defined in the MSDN documentation of
109 // the EXCEPTION_RECORD structure.
110 typedef enum {
115 
116 #endif /* GOOGLE_BREAKPAD_COMMON_MINIDUMP_EXCEPTION_WIN32_H__ */
MDAccessViolationTypeWin