2 * Windows Error Reporting definitions
4 * Copyright (C) 2010 Louis Lenders
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #ifndef __WINE_WERAPI_H
22 #define __WINE_WERAPI_H
28 /* Only 10 parameter are allowed in WerReportSetParameter */
29 #define WER_MAX_PARAM_COUNT 10
41 /* Flags for WerReportSubmit */
42 #define WER_SUBMIT_HONOR_RECOVERY 0x0001
43 #define WER_SUBMIT_HONOR_RESTART 0x0002
44 #define WER_SUBMIT_QUEUE 0x0004
45 #define WER_SUBMIT_SHOW_DEBUG 0x0008
46 #define WER_SUBMIT_ADD_REGISTERED_DATA 0x0010
47 #define WER_SUBMIT_OUTOFPROCESS 0x0020
48 #define WER_SUBMIT_NO_CLOSE_UI 0x0040
49 #define WER_SUBMIT_NO_QUEUE 0x0080
50 #define WER_SUBMIT_NO_ARCHIVE 0x0100
51 #define WER_SUBMIT_START_MINIMIZED 0x0200
52 #define WER_SUBMIT_OUTOFPROCESS_ASYNC 0x0400
53 #define WER_SUBMIT_BYPASS_DATA_THROTTLING 0x0800
54 #define WER_SUBMIT_ARCHIVE_PARAMETERS_ONLY 0x1000
55 #define WER_SUBMIT_REPORT_MACHINE_ID 0x2000
59 typedef HANDLE HREPORT;
61 typedef enum _WER_CONSENT
63 WerConsentNotAsked = 1,
66 WerConsentAlwaysPrompt,
70 typedef enum _WER_REGISTER_FILE_TYPE
72 WerRegFileTypeUserDocument = 1,
73 WerRegFileTypeOther = 2,
75 } WER_REGISTER_FILE_TYPE;
77 typedef struct _WER_REPORT_INFORMATION
81 WCHAR wzConsentKey[64];
82 WCHAR wzFriendlyEventName[128];
83 WCHAR wzApplicationName[128];
84 WCHAR wzApplicationPath[MAX_PATH];
85 WCHAR wzDescription[512];
87 } WER_REPORT_INFORMATION, *PWER_REPORT_INFORMATION;
90 typedef enum _WER_REPORT_TYPE
92 WerReportNonCritical = 0,
94 WerReportApplicationCrash,
95 WerReportApplicationHang,
100 typedef enum _WER_SUBMIT_RESULT
111 } WER_SUBMIT_RESULT, *PWER_SUBMIT_RESULT;
115 HRESULT WINAPI WerAddExcludedApplication(PCWSTR, BOOL);
116 HRESULT WINAPI WerRegisterFile(PCWSTR file, WER_REGISTER_FILE_TYPE regfiletype, DWORD flags);
117 HRESULT WINAPI WerRemoveExcludedApplication(PCWSTR, BOOL);
118 HRESULT WINAPI WerReportCloseHandle(HREPORT);
119 HRESULT WINAPI WerReportCreate(PCWSTR, WER_REPORT_TYPE, PWER_REPORT_INFORMATION, HREPORT*);
120 HRESULT WINAPI WerReportSetParameter(HREPORT, DWORD, PCWSTR, PCWSTR);
121 HRESULT WINAPI WerReportSubmit(HREPORT, WER_CONSENT, DWORD, PWER_SUBMIT_RESULT);
127 #endif /* __WINE_WERAPI_H */