1 | /*
|
---|
2 | * Copyright (C) 2007 Francois Gouget
|
---|
3 | *
|
---|
4 | * This library is free software; you can redistribute it and/or
|
---|
5 | * modify it under the terms of the GNU Lesser General Public
|
---|
6 | * License as published by the Free Software Foundation; either
|
---|
7 | * version 2.1 of the License, or (at your option) any later version.
|
---|
8 | *
|
---|
9 | * This library is distributed in the hope that it will be useful,
|
---|
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
12 | * Lesser General Public License for more details.
|
---|
13 | *
|
---|
14 | * You should have received a copy of the GNU Lesser General Public
|
---|
15 | * License along with this library; if not, write to the Free Software
|
---|
16 | * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
---|
17 | */
|
---|
18 |
|
---|
19 | /*
|
---|
20 | * Oracle LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
|
---|
21 | * other than GPL or LGPL is available it will apply instead, Oracle elects to use only
|
---|
22 | * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
|
---|
23 | * a choice of LGPL license versions is made available with the language indicating
|
---|
24 | * that LGPLv2 or any later version may be used, or where a choice of which version
|
---|
25 | * of the LGPL is applied is otherwise unspecified.
|
---|
26 | */
|
---|
27 |
|
---|
28 | import "propidl.idl";
|
---|
29 |
|
---|
30 | cpp_quote("#include <ole2.h>")
|
---|
31 | /* FIXME: #include "specstrings.h" */
|
---|
32 | cpp_quote("#include <corerror.h>")
|
---|
33 | cpp_quote("#include <corhdr.h>")
|
---|
34 |
|
---|
35 | cpp_quote("DEFINE_GUID(CLSID_CorMetaDataDispenser, 0xe5cb7a31,0x7512,0x11d2,0x89,0xce,0x00,0x80,0xc7,0x92,0xe5,0xd8);")
|
---|
36 | cpp_quote("DEFINE_GUID(CLSID_CorMetaDataDispenserRuntime, 0x1ec2de53,0x75cc,0x11d2,0x97,0x75,0x00,0xa0,0xc9,0xb4,0xd5,0x0c);")
|
---|
37 |
|
---|
38 | [
|
---|
39 | object,
|
---|
40 | local,
|
---|
41 | uuid(809c652e-7396-11d2-9771-00a0c9b4d50c)
|
---|
42 | ]
|
---|
43 | interface IMetaDataDispenser : IUnknown
|
---|
44 | {
|
---|
45 | HRESULT DefineScope(
|
---|
46 | [in] REFCLSID rclsid,
|
---|
47 | [in] DWORD dwCreateFlags,
|
---|
48 | [in] REFIID riid,
|
---|
49 | [out] IUnknown **ppIUnk);
|
---|
50 |
|
---|
51 | HRESULT OpenScope(
|
---|
52 | [in] LPCWSTR szScope,
|
---|
53 | [in] DWORD dwOpenFlags,
|
---|
54 | [in] REFIID riid,
|
---|
55 | [out] IUnknown **ppIUnk);
|
---|
56 |
|
---|
57 | HRESULT OpenScopeOnMemory(
|
---|
58 | [in] const void *pData,
|
---|
59 | [in] ULONG cbData,
|
---|
60 | [in] DWORD dwOpenFlags,
|
---|
61 | [in] REFIID riid,
|
---|
62 | [out] IUnknown **ppIUnk);
|
---|
63 | }
|
---|
64 |
|
---|
65 | [
|
---|
66 | object,
|
---|
67 | local,
|
---|
68 | uuid(31bcfce2-dafb-11d2-9f81-00c04f79a0a3)
|
---|
69 | ]
|
---|
70 | interface IMetaDataDispenserEx : IMetaDataDispenser
|
---|
71 | {
|
---|
72 | HRESULT SetOption(
|
---|
73 | [in] REFGUID optionid,
|
---|
74 | [in] const VARIANT *value);
|
---|
75 |
|
---|
76 | HRESULT GetOption(
|
---|
77 | [in] REFGUID optionid,
|
---|
78 | [out] VARIANT *pvalue);
|
---|
79 |
|
---|
80 | HRESULT OpenScopeOnITypeInfo(
|
---|
81 | [in] ITypeInfo *pITI,
|
---|
82 | [in] DWORD dwOpenFlags,
|
---|
83 | [in] REFIID riid,
|
---|
84 | [out] IUnknown **ppIUnk);
|
---|
85 |
|
---|
86 | HRESULT GetCORSystemDirectory(
|
---|
87 | [out, size_is(cchBuffer)] LPWSTR szBuffer,
|
---|
88 | [in] DWORD cchBuffer,
|
---|
89 | [out] DWORD *pchBuffer);
|
---|
90 |
|
---|
91 | HRESULT FindAssembly(
|
---|
92 | [in] LPCWSTR szAppBase,
|
---|
93 | [in] LPCWSTR szPrivateBin,
|
---|
94 | [in] LPCWSTR szGlobalBin,
|
---|
95 | [in] LPCWSTR szAssemblyName,
|
---|
96 | [out, size_is(cchName)] LPWSTR szName,
|
---|
97 | [in] ULONG cchName,
|
---|
98 | [out] ULONG *pcName);
|
---|
99 |
|
---|
100 | HRESULT FindAssemblyModule(
|
---|
101 | [in] LPCWSTR szAppBase,
|
---|
102 | [in] LPCWSTR szPrivateBin,
|
---|
103 | [in] LPCWSTR szGlobalBin,
|
---|
104 | [in] LPCWSTR szAssemblyName,
|
---|
105 | [in] LPCWSTR szModuleName,
|
---|
106 | [out, size_is(cchName)] LPWSTR szName,
|
---|
107 | [in] ULONG cchName,
|
---|
108 | [out] ULONG *pcName);
|
---|
109 | }
|
---|
110 |
|
---|
111 | cpp_quote("BOOL WINAPI _CorDllMain(HINSTANCE,DWORD,LPVOID);")
|
---|
112 | cpp_quote("__int32 WINAPI _CorExeMain(void);")
|
---|
113 | cpp_quote("__int32 WINAPI _CorExeMain2(PBYTE,DWORD,LPWSTR,LPWSTR,LPWSTR);")
|
---|
114 | cpp_quote("VOID WINAPI _CorImageUnloading(PVOID);")
|
---|
115 | cpp_quote("HRESULT WINAPI _CorValidateImage(PVOID*,LPCWSTR);")
|
---|
116 | cpp_quote("HRESULT WINAPI CoInitializeCor(DWORD);")
|
---|
117 | cpp_quote("void WINAPI CoUninitializeCor(void);")
|
---|