2 * Windows Error Reporing 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
29 typedef HANDLE HREPORT
;
31 typedef enum _WER_REGISTER_FILE_TYPE
33 WerRegFileTypeUserDocument
= 1,
34 WerRegFileTypeOther
= 2,
36 } WER_REGISTER_FILE_TYPE
;
38 typedef struct _WER_REPORT_INFORMATION
42 WCHAR wzConsentKey
[64];
43 WCHAR wzFriendlyEventName
[128];
44 WCHAR wzApplicationName
[128];
45 WCHAR wzApplicationPath
[MAX_PATH
];
46 WCHAR wzDescription
[512];
48 } WER_REPORT_INFORMATION
, *PWER_REPORT_INFORMATION
;
51 typedef enum _WER_REPORT_TYPE
53 WerReportNonCritical
= 0,
55 WerReportApplicationCrash
,
56 WerReportApplicationHang
,
61 HRESULT WINAPI
WerAddExcludedApplication(PCWSTR
, BOOL
);
62 HRESULT WINAPI
WerRegisterFile(PCWSTR file
, WER_REGISTER_FILE_TYPE regfiletype
, DWORD flags
);
63 HRESULT WINAPI
WerRemoveExcludedApplication(PCWSTR
, BOOL
);
64 HRESULT WINAPI
WerReportCloseHandle(HREPORT
);
65 HRESULT WINAPI
WerReportCreate(PCWSTR
, WER_REPORT_TYPE
, PWER_REPORT_INFORMATION
, HREPORT
*);
71 #endif /* __WINE_WERAPI_H */