ReactOS 0.4.15-dev-7907-g95bf896
werapi.h
Go to the documentation of this file.
1/*
2 * Windows Error Reporing definitions
3 *
4 * Copyright (C) 2010 Louis Lenders
5 *
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.
10 *
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.
15 *
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
19 */
20
21#ifndef __WINE_WERAPI_H
22#define __WINE_WERAPI_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28/* Only 10 parameter are allowed in WerReportSetParameter */
29#define WER_MAX_PARAM_COUNT 10
30#define WER_P0 0
31#define WER_P1 1
32#define WER_P2 2
33#define WER_P3 3
34#define WER_P4 4
35#define WER_P5 5
36#define WER_P6 6
37#define WER_P7 7
38#define WER_P8 8
39#define WER_P9 9
40
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
56
57/* #### */
58
60
61typedef enum _WER_CONSENT
62{
69
71{
76
78{
88
89
90typedef enum _WER_REPORT_TYPE
91{
99
101{
112
113/* #### */
114
122
123#ifdef __cplusplus
124}
125#endif
126
127#endif /* __WINE_WERAPI_H */
#define MAX_PATH
Definition: compat.h:34
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
GLbitfield flags
Definition: glext.h:7161
WCHAR wzApplicationPath[MAX_PATH]
Definition: werapi.h:84
WCHAR wzApplicationName[128]
Definition: werapi.h:83
WCHAR wzDescription[512]
Definition: werapi.h:85
WCHAR wzFriendlyEventName[128]
Definition: werapi.h:82
WCHAR wzConsentKey[64]
Definition: werapi.h:81
Definition: fci.c:127
const uint16_t * PCWSTR
Definition: typedefs.h:57
_WER_SUBMIT_RESULT
Definition: werapi.h:101
@ WerDisabledQueue
Definition: werapi.h:108
@ WerReportUploaded
Definition: werapi.h:103
@ WerReportFailed
Definition: werapi.h:105
@ WerReportDebug
Definition: werapi.h:104
@ WerReportCancelled
Definition: werapi.h:107
@ WerDisabled
Definition: werapi.h:106
@ WerCustomAction
Definition: werapi.h:110
@ WerReportQueued
Definition: werapi.h:102
@ WerReportAsync
Definition: werapi.h:109
HRESULT WINAPI WerReportSetParameter(HREPORT, DWORD, PCWSTR, PCWSTR)
struct _WER_REPORT_INFORMATION WER_REPORT_INFORMATION
_WER_REGISTER_FILE_TYPE
Definition: werapi.h:71
@ WerRegFileTypeUserDocument
Definition: werapi.h:72
@ WerRegFileTypeOther
Definition: werapi.h:73
@ WerRegFileTypeMax
Definition: werapi.h:74
struct _WER_REPORT_INFORMATION * PWER_REPORT_INFORMATION
HRESULT WINAPI WerRegisterFile(PCWSTR file, WER_REGISTER_FILE_TYPE regfiletype, DWORD flags)
HRESULT WINAPI WerAddExcludedApplication(PCWSTR, BOOL)
HRESULT WINAPI WerReportCloseHandle(HREPORT)
enum _WER_SUBMIT_RESULT * PWER_SUBMIT_RESULT
HRESULT WINAPI WerRemoveExcludedApplication(PCWSTR, BOOL)
enum _WER_REPORT_TYPE WER_REPORT_TYPE
HANDLE HREPORT
Definition: werapi.h:59
enum _WER_CONSENT WER_CONSENT
HRESULT WINAPI WerReportCreate(PCWSTR, WER_REPORT_TYPE, PWER_REPORT_INFORMATION, HREPORT *)
enum _WER_REGISTER_FILE_TYPE WER_REGISTER_FILE_TYPE
_WER_CONSENT
Definition: werapi.h:62
@ WerConsentMax
Definition: werapi.h:67
@ WerConsentDenied
Definition: werapi.h:65
@ WerConsentApproved
Definition: werapi.h:64
@ WerConsentNotAsked
Definition: werapi.h:63
@ WerConsentAlwaysPrompt
Definition: werapi.h:66
_WER_REPORT_TYPE
Definition: werapi.h:91
@ WerReportApplicationHang
Definition: werapi.h:95
@ WerReportInvalid
Definition: werapi.h:97
@ WerReportKernel
Definition: werapi.h:96
@ WerReportNonCritical
Definition: werapi.h:92
@ WerReportCritical
Definition: werapi.h:93
@ WerReportApplicationCrash
Definition: werapi.h:94
HRESULT WINAPI WerReportSubmit(HREPORT, WER_CONSENT, DWORD, PWER_SUBMIT_RESULT)
enum _WER_SUBMIT_RESULT WER_SUBMIT_RESULT
#define WINAPI
Definition: msvc.h:6
__wchar_t WCHAR
Definition: xmlstorage.h:180