wined3d: Move "parse_state" to wined3d_shader_context.
[wine] / include / werapi.h
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
25 extern "C" {
26 #endif
27
28
29 typedef HANDLE HREPORT;
30
31 typedef enum _WER_REGISTER_FILE_TYPE
32 {
33     WerRegFileTypeUserDocument = 1,
34     WerRegFileTypeOther = 2,
35     WerRegFileTypeMax
36 } WER_REGISTER_FILE_TYPE;
37
38 typedef struct _WER_REPORT_INFORMATION
39 {
40     DWORD   dwSize;
41     HANDLE  hProcess;
42     WCHAR   wzConsentKey[64];
43     WCHAR   wzFriendlyEventName[128];
44     WCHAR   wzApplicationName[128];
45     WCHAR   wzApplicationPath[MAX_PATH];
46     WCHAR   wzDescription[512];
47     HWND    hwndParent;
48 } WER_REPORT_INFORMATION, *PWER_REPORT_INFORMATION;
49
50
51 typedef enum _WER_REPORT_TYPE
52 {
53     WerReportNonCritical = 0,
54     WerReportCritical,
55     WerReportApplicationCrash,
56     WerReportApplicationHang,
57     WerReportKernel,
58     WerReportInvalid
59 } WER_REPORT_TYPE;
60
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*);
66
67 #ifdef __cplusplus
68 }
69 #endif
70
71 #endif /* __WINE_WERAPI_H */