forked from microsoft/win32metadata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ole.cs
62 lines (47 loc) · 2.54 KB
/
Ole.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using System;
using System.Runtime.InteropServices;
using Windows.Win32.Interop;
using static Windows.Win32.Foundation.Apis;
using static Windows.Win32.System.Diagnostics.Debug.FACILITY_CODE;
using static Windows.Win32.System.SystemServices.Apis;
using Windows.Win32.Foundation;
using Windows.Win32.System.Com;
namespace Windows.Win32.System.Ole
{
// For EXCEPINFO::pfnDeferredFillIn which defines the callback inline with the struct.
// ClangSharp emits function pointers as IntPtr so we need to write our own signature
// for the metadata
[UnmanagedFunctionPointer]
public unsafe delegate HRESULT LPEXCEPFINO_DEFERRED_FILLIN(EXCEPINFO *pExcepInfo);
public static unsafe partial class Apis
{
public const int CTL_E_ILLEGALFUNCTIONCALL = unchecked(((int)(((uint)(SEVERITY_ERROR) << 31) | ((uint)(FACILITY_CONTROL) << 16) | ((uint)(5)))));
public const int CONNECT_E_FIRST = unchecked(((int)(((uint)(SEVERITY_ERROR) << 31) | ((uint)(FACILITY_ITF) << 16) | ((uint)(0x0200)))));
public const int SELFREG_E_FIRST = unchecked(((int)(((uint)(SEVERITY_ERROR) << 31) | ((uint)(FACILITY_ITF) << 16) | ((uint)(0x0200)))));
public const int PERPROP_E_FIRST = unchecked(((int)(((uint)(SEVERITY_ERROR) << 31) | ((uint)(FACILITY_ITF) << 16) | ((uint)(0x0200)))));
[NativeTypeName("HRESULT")]
public const int OLECMDERR_E_FIRST = OLE_E_LAST + 1;
[NativeTypeName("HRESULT")]
public const int OLECMDERR_E_DISABLED = OLECMDERR_E_FIRST + 1;
[NativeTypeName("HRESULT")]
public const int OLECMDERR_E_NOHELP = OLECMDERR_E_FIRST + 2;
[NativeTypeName("HRESULT")]
public const int OLECMDERR_E_CANCELED = OLECMDERR_E_FIRST + 3;
[NativeTypeName("HRESULT")]
public const int OLECMDERR_E_UNKNOWNGROUP = OLECMDERR_E_FIRST + 4;
[NativeTypeName("HRESULT")]
public const int CONNECT_E_NOCONNECTION = CONNECT_E_FIRST + 0;
[NativeTypeName("HRESULT")]
public const int CONNECT_E_ADVISELIMIT = CONNECT_E_FIRST + 1;
[NativeTypeName("HRESULT")]
public const int CONNECT_E_CANNOTCONNECT = CONNECT_E_FIRST + 2;
[NativeTypeName("HRESULT")]
public const int CONNECT_E_OVERRIDDEN = CONNECT_E_FIRST + 3;
[NativeTypeName("HRESULT")]
public const int SELFREG_E_TYPELIB = SELFREG_E_FIRST + 0;
[NativeTypeName("HRESULT")]
public const int SELFREG_E_CLASS = SELFREG_E_FIRST + 1;
[NativeTypeName("HRESULT")]
public const int PERPROP_E_NOPAGEAVAILABLE = PERPROP_E_FIRST + 0;
}
}