1 | /*
|
---|
2 | * Copyright 2010 Hans Leidekker for CodeWeavers
|
---|
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 "objidl.idl";
|
---|
29 | import "oleidl.idl";
|
---|
30 |
|
---|
31 | interface IAssemblyCache;
|
---|
32 | interface IAssemblyCacheItem;
|
---|
33 | interface IAssemblyName;
|
---|
34 |
|
---|
35 | typedef struct _FUSION_INSTALL_REFERENCE_
|
---|
36 | {
|
---|
37 | DWORD cbSize;
|
---|
38 | DWORD dwFlags;
|
---|
39 | GUID guidScheme;
|
---|
40 | LPCWSTR szIdentifier;
|
---|
41 | LPCWSTR szNonCannonicalData;
|
---|
42 | } FUSION_INSTALL_REFERENCE, *LPFUSION_INSTALL_REFERENCE;
|
---|
43 |
|
---|
44 | typedef struct _ASSEMBLY_INFO
|
---|
45 | {
|
---|
46 | ULONG cbAssemblyInfo;
|
---|
47 | DWORD dwAssemblyFlags;
|
---|
48 | ULARGE_INTEGER uliAssemblySizeInKB;
|
---|
49 | LPWSTR pszCurrentAssemblyPathBuf;
|
---|
50 | ULONG cchBuf;
|
---|
51 | } ASSEMBLY_INFO;
|
---|
52 |
|
---|
53 | typedef const struct _FUSION_INSTALL_REFERENCE_ *LPCFUSION_INSTALL_REFERENCE;
|
---|
54 |
|
---|
55 | [
|
---|
56 | object,
|
---|
57 | uuid(e707dcde-d1cd-11d2-bab9-00c04f8eceae),
|
---|
58 | pointer_default(unique),
|
---|
59 | local
|
---|
60 | ]
|
---|
61 | interface IAssemblyCache : IUnknown
|
---|
62 | {
|
---|
63 | HRESULT UninstallAssembly(
|
---|
64 | [in] DWORD flags,
|
---|
65 | [in] LPCWSTR name,
|
---|
66 | [in] LPCFUSION_INSTALL_REFERENCE ref,
|
---|
67 | [out, optional] ULONG *disp);
|
---|
68 |
|
---|
69 | HRESULT QueryAssemblyInfo(
|
---|
70 | [in] DWORD flags,
|
---|
71 | [in] LPCWSTR name,
|
---|
72 | [in, out] ASSEMBLY_INFO *info);
|
---|
73 |
|
---|
74 | HRESULT CreateAssemblyCacheItem(
|
---|
75 | [in] DWORD flags,
|
---|
76 | [in] PVOID reserved,
|
---|
77 | [out] IAssemblyCacheItem **item,
|
---|
78 | [in, optional] LPCWSTR name);
|
---|
79 |
|
---|
80 | HRESULT Reserved(
|
---|
81 | [out] IUnknown **reserved);
|
---|
82 |
|
---|
83 | HRESULT InstallAssembly(
|
---|
84 | [in] DWORD flags,
|
---|
85 | [in] LPCWSTR path,
|
---|
86 | [in] LPCFUSION_INSTALL_REFERENCE ref);
|
---|
87 | }
|
---|
88 |
|
---|
89 | [
|
---|
90 | object,
|
---|
91 | uuid(9e3aaeb4-d1cd-11d2-bab9-00c04f8eceae),
|
---|
92 | pointer_default(unique),
|
---|
93 | local
|
---|
94 | ]
|
---|
95 | interface IAssemblyCacheItem : IUnknown
|
---|
96 | {
|
---|
97 | HRESULT CreateStream(
|
---|
98 | [in] DWORD flags,
|
---|
99 | [in] LPCWSTR name,
|
---|
100 | [in] DWORD format,
|
---|
101 | [in] DWORD format_flags,
|
---|
102 | [out] IStream **stream,
|
---|
103 | [in, optional] ULARGE_INTEGER *max_size);
|
---|
104 |
|
---|
105 | HRESULT Commit(
|
---|
106 | [in] DWORD flags,
|
---|
107 | [out, optional] ULONG *disp);
|
---|
108 |
|
---|
109 | HRESULT AbortItem();
|
---|
110 | }
|
---|
111 |
|
---|
112 | [
|
---|
113 | object,
|
---|
114 | uuid(cd193bc0-b4bc-11D2-9833-00c04fc31d2e),
|
---|
115 | pointer_default(unique),
|
---|
116 | local
|
---|
117 | ]
|
---|
118 | interface IAssemblyName : IUnknown
|
---|
119 | {
|
---|
120 | typedef [public] enum
|
---|
121 | {
|
---|
122 | ASM_NAME_PUBLIC_KEY,
|
---|
123 | ASM_NAME_PUBLIC_KEY_TOKEN,
|
---|
124 | ASM_NAME_HASH_VALUE,
|
---|
125 | ASM_NAME_NAME,
|
---|
126 | ASM_NAME_MAJOR_VERSION,
|
---|
127 | ASM_NAME_MINOR_VERSION,
|
---|
128 | ASM_NAME_BUILD_NUMBER,
|
---|
129 | ASM_NAME_REVISION_NUMBER,
|
---|
130 | ASM_NAME_CULTURE,
|
---|
131 | ASM_NAME_PROCESSOR_ID_ARRAY,
|
---|
132 | ASM_NAME_OSINFO_ARRAY,
|
---|
133 | ASM_NAME_HASH_ALGID,
|
---|
134 | ASM_NAME_ALIAS,
|
---|
135 | ASM_NAME_CODEBASE_URL,
|
---|
136 | ASM_NAME_CODEBASE_LASTMOD,
|
---|
137 | ASM_NAME_NULL_PUBLIC_KEY,
|
---|
138 | ASM_NAME_NULL_PUBLIC_KEY_TOKEN,
|
---|
139 | ASM_NAME_CUSTOM,
|
---|
140 | ASM_NAME_NULL_CUSTOM,
|
---|
141 | ASM_NAME_MVID,
|
---|
142 | ASM_NAME_MAX_PARAMS
|
---|
143 | } ASM_NAME;
|
---|
144 |
|
---|
145 | typedef [public] enum
|
---|
146 | {
|
---|
147 | ASM_DISPLAYF_VERSION = 0x1,
|
---|
148 | ASM_DISPLAYF_CULTURE = 0x2,
|
---|
149 | ASM_DISPLAYF_PUBLIC_KEY_TOKEN = 0x4,
|
---|
150 | ASM_DISPLAYF_PUBLIC_KEY = 0x8,
|
---|
151 | ASM_DISPLAYF_CUSTOM = 0x10,
|
---|
152 | ASM_DISPLAYF_PROCESSORARCHITECTURE = 0x20,
|
---|
153 | ASM_DISPLAYF_LANGUAGEID = 0x40
|
---|
154 | } ASM_DISPLAY_FLAGS;
|
---|
155 |
|
---|
156 | HRESULT SetProperty(
|
---|
157 | [in] DWORD id,
|
---|
158 | [in] LPVOID property,
|
---|
159 | [in] DWORD size);
|
---|
160 |
|
---|
161 | HRESULT GetProperty(
|
---|
162 | [in] DWORD id,
|
---|
163 | [out] LPVOID buffer,
|
---|
164 | [in][out] LPDWORD buflen);
|
---|
165 |
|
---|
166 | HRESULT Finalize();
|
---|
167 |
|
---|
168 | HRESULT GetDisplayName(
|
---|
169 | [out] LPWSTR buffer,
|
---|
170 | [in][out] LPDWORD buflen,
|
---|
171 | [in] DWORD flags);
|
---|
172 |
|
---|
173 | HRESULT Reserved(
|
---|
174 | [in] REFIID riid,
|
---|
175 | [in] IUnknown *pUnkReserved1,
|
---|
176 | [in] IUnknown *pUnkReserved2,
|
---|
177 | [in] LPCOLESTR szReserved,
|
---|
178 | [in] LONGLONG llReserved,
|
---|
179 | [in] LPVOID pvReserved,
|
---|
180 | [in] DWORD cbReserved,
|
---|
181 | [out] LPVOID *ppReserved);
|
---|
182 |
|
---|
183 | HRESULT GetName(
|
---|
184 | [in][out] LPDWORD buflen,
|
---|
185 | [out] LPWSTR buffer);
|
---|
186 |
|
---|
187 | HRESULT GetVersion(
|
---|
188 | [out] LPDWORD hi,
|
---|
189 | [out] LPDWORD low);
|
---|
190 |
|
---|
191 | HRESULT IsEqual(
|
---|
192 | [in] IAssemblyName *name,
|
---|
193 | [in] DWORD flags);
|
---|
194 |
|
---|
195 | HRESULT Clone(
|
---|
196 | [out] IAssemblyName **name);
|
---|
197 | }
|
---|
198 |
|
---|
199 | typedef [unique] IAssemblyName *LPASSEMBLYNAME;
|
---|
200 | typedef [public] enum
|
---|
201 | {
|
---|
202 | CANOF_PARSE_DISPLAY_NAME = 0x1,
|
---|
203 | CANOF_SET_DEFAULT_VALUES = 0x2
|
---|
204 | } CREATE_ASM_NAME_OBJ_FLAGS;
|
---|
205 |
|
---|
206 | cpp_quote("HRESULT WINAPI CreateAssemblyCache(IAssemblyCache**,DWORD);")
|
---|
207 | cpp_quote("HRESULT WINAPI CreateAssemblyNameObject(LPASSEMBLYNAME *,LPCWSTR,DWORD,LPVOID);")
|
---|