]> git.proxmox.com Git - rustc.git/blob - src/vendor/winapi/src/um/werapi.rs
New upstream version 1.31.0~beta.4+dfsg1
[rustc.git] / src / vendor / winapi / src / um / werapi.rs
1 // Copyright © 2015-2017 winapi-rs developers
2 // Licensed under the Apache License, Version 2.0
3 // <LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
4 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your option.
5 // All files in the project carrying such notice may not be copied, modified, or distributed
6 // except according to those terms.
7 //! Function prototypes for Windows Error Reporting (WER)
8 use shared::minwindef::{BOOL, DWORD, PDWORD};
9 use um::winnt::{HANDLE, HRESULT, PCWSTR, PVOID};
10 ENUM!{enum WER_REGISTER_FILE_TYPE {
11 WerRegFileTypeUserDocument = 1,
12 WerRegFileTypeOther = 2,
13 WerRegFileTypeMax,
14 }}
15 extern "system" {
16 pub fn WerRegisterFile(
17 pwzFile: PCWSTR,
18 regFileType: WER_REGISTER_FILE_TYPE,
19 dwFlags: DWORD,
20 ) -> HRESULT;
21 pub fn WerUnregisterFile(
22 pwzFilePath: PCWSTR
23 ) -> HRESULT;
24 pub fn WerRegisterMemoryBlock(
25 pvAddress: PVOID,
26 dwSize: DWORD
27 ) -> HRESULT;
28 pub fn WerUnregisterMemoryBlock(
29 pvAddress: PVOID
30 ) -> HRESULT;
31 pub fn WerSetFlags(
32 dwFlags: DWORD
33 ) -> HRESULT;
34 pub fn WerGetFlags(
35 hProcess: HANDLE,
36 pdwFlags: PDWORD
37 ) -> HRESULT;
38 pub fn WerAddExcludedApplication(
39 pwzExeName: PCWSTR,
40 bAllUsers: BOOL
41 ) -> HRESULT;
42 pub fn WerRemoveExcludedApplication(
43 pwzExeName: PCWSTR,
44 bAllUsers: BOOL
45 ) -> HRESULT;
46 pub fn WerRegisterRuntimeExceptionModule(
47 pwszOutOfProcessCallbackDll: PCWSTR,
48 pContext: PVOID,
49 ) -> HRESULT;
50 pub fn WerUnregisterRuntimeExceptionModule(
51 pwszOutOfProcessCallbackDll: PCWSTR,
52 pContext: PVOID,
53 ) -> HRESULT;
54 }