VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/fusion.idl@ 33223

Last change on this file since 33223 was 19678, checked in by vboxsync, 16 years ago

opengl: update wine to 1.1.21, add d3d9.dll to build list

  • Property svn:eol-style set to native
File size: 11.3 KB
Line 
1/*
2 * Copyright 2008 James Hawkins
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 * Sun 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, Sun 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
28import "objidl.idl";
29
30interface IAssemblyCache;
31interface IAssemblyCacheItem;
32interface IAssemblyEnum;
33interface IAssemblyName;
34
35typedef enum
36{
37 ASM_CACHE_ZAP = 0x1,
38 ASM_CACHE_GAC = 0x2,
39 ASM_CACHE_DOWNLOAD = 0x4,
40 ASM_CACHE_ROOT = 0x8
41} ASM_CACHE_FLAGS;
42
43typedef enum
44{
45 peNone = 0x00000000,
46 peMSIL = 0x00000001,
47 peI386 = 0x00000002,
48 peIA64 = 0x00000003,
49 peAMD64 = 0x00000004,
50 peInvalid = 0xffffffff
51} PEKIND;
52
53typedef enum _tagAssemblyComparisonResult
54{
55 ACR_Unknown,
56 ACR_EquivalentFullMatch,
57 ACR_EquivalentWeakNamed,
58 ACR_EquivalentFXUnified,
59 ACR_EquivalentUnified,
60 ACR_NonEquivalentVersion,
61 ACR_NonEquivalent,
62 ACR_EquivalentPartialMatch,
63 ACR_EquivalentPartialWeakNamed,
64 ACR_EquivalentPartialUnified,
65 ACR_EquivalentPartialFXUnified,
66 ACR_NonEquivalentPartialVersion
67} AssemblyComparisonResult;
68
69[
70 local,
71 object,
72 uuid(e707dcde-d1cd-11d2-bab9-00c04f8eceae),
73 pointer_default(unique)
74]
75interface IAssemblyCache : IUnknown
76{
77 typedef struct _FUSION_INSTALL_REFERENCE_
78 {
79 DWORD cbSize;
80 DWORD dwFlags;
81 GUID guidScheme;
82 LPCWSTR szIdentifier;
83 LPCWSTR szNonCannonicalData;
84 } FUSION_INSTALL_REFERENCE, *LPFUSION_INSTALL_REFERENCE;
85
86 typedef const FUSION_INSTALL_REFERENCE *LPCFUSION_INSTALL_REFERENCE;
87
88 typedef struct _ASSEMBLY_INFO
89 {
90 ULONG cbAssemblyInfo;
91 DWORD dwAssemblyFlags;
92 ULARGE_INTEGER uliAssemblySizeInKB;
93 LPWSTR pszCurrentAssemblyPathBuf;
94 ULONG cchBuf;
95 } ASSEMBLY_INFO;
96
97 cpp_quote("#define IASSEMBLYCACHE_INSTALL_FLAG_REFRESH 0x00000001")
98 cpp_quote("#define IASSEMBLYCACHE_INSTALL_FLAG_FORCE_REFRESH 0x00000002")
99
100 cpp_quote("#define IASSEMBLYCACHE_UNINSTALL_DISPOSITION_UNINSTALLED 1")
101 cpp_quote("#define IASSEMBLYCACHE_UNINSTALL_DISPOSITION_STILL_IN_USE 2")
102 cpp_quote("#define IASSEMBLYCACHE_UNINSTALL_DISPOSITION_ALREADY_UNINSTALLED 3")
103 cpp_quote("#define IASSEMBLYCACHE_UNINSTALL_DISPOSITION_DELETE_PENDING 4")
104 cpp_quote("#define IASSEMBLYCACHE_UNINSTALL_DISPOSITION_HAS_INSTALL_REFERENCES 5")
105 cpp_quote("#define IASSEMBLYCACHE_UNINSTALL_DISPOSITION_REFERENCE_NOT_FOUND 6")
106
107 cpp_quote("#define QUERYASMINFO_FLAG_VALIDATE 0x00000001")
108 cpp_quote("#define QUERYASMINFO_FLAG_GETSIZE 0x00000002")
109
110 cpp_quote("#define ASSEMBLYINFO_FLAG_INSTALLED 0x00000001")
111 cpp_quote("#define ASSEMBLYINFO_FLAG_PAYLOADRESIDENT 0x00000002")
112
113 HRESULT UninstallAssembly(
114 [in] DWORD dwFlags,
115 [in] LPCWSTR pszAssemblyName,
116 [in] LPCFUSION_INSTALL_REFERENCE pRefData,
117 [out, optional] ULONG *pulDisposition);
118
119 HRESULT QueryAssemblyInfo(
120 [in] DWORD dwFlags,
121 [in] LPCWSTR pszAssemblyName,
122 [in, out] ASSEMBLY_INFO *pAsmInfo);
123
124 HRESULT CreateAssemblyCacheItem(
125 [in] DWORD dwFlags,
126 [in] PVOID pvReserved,
127 [out] IAssemblyCacheItem **ppAsmItem,
128 [in, optional] LPCWSTR pszAssemblyName);
129
130 HRESULT CreateAssemblyScavenger([out] IUnknown **ppUnkReserved);
131
132 HRESULT InstallAssembly(
133 [in] DWORD dwFlags,
134 [in] LPCWSTR pszManifestFilePath,
135 [in] LPCFUSION_INSTALL_REFERENCE pRefData);
136}
137
138[
139 local,
140 object,
141 uuid(9e3aaeb4-d1cd-11d2-bab9-00c04f8eceae),
142 pointer_default(unique)
143]
144interface IAssemblyCacheItem : IUnknown
145{
146 cpp_quote("#define STREAM_FORMAT_COMPLIB_MODULE 0")
147 cpp_quote("#define STREAM_FORMAT_COMPLIB_MANIFEST 1")
148 cpp_quote("#define STREAM_FORMAT_WIN32_MODULE 2")
149 cpp_quote("#define STREAM_FORMAT_WIN32_MANIFEST 4")
150
151 cpp_quote("#define IASSEMBLYCACHEITEM_COMMIT_FLAG_REFRESH 0x00000001")
152 cpp_quote("#define IASSEMBLYCACHEITEM_COMMIT_FLAG_FORCE_REFRESH 0x00000002")
153
154 cpp_quote("#define IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_INSTALLED 1")
155 cpp_quote("#define IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_REFRESHED 2")
156 cpp_quote("#define IASSEMBLYCACHEITEM_COMMIT_DISPOSITION_ALREADY_INSTALLED 3")
157
158 HRESULT CreateStream(
159 [in] DWORD dwFlags,
160 [in] LPCWSTR pszStreamName,
161 [in] DWORD dwFormat,
162 [in] DWORD dwFormatFlags,
163 [out] IStream **ppIStream,
164 [in, optional] ULARGE_INTEGER *puliMaxSize);
165
166 HRESULT Commit(
167 [in] DWORD dwFlags,
168 [out, optional] ULONG *pulDisposition);
169
170 HRESULT AbortItem();
171}
172
173[
174 local,
175 object,
176 uuid(CD193BC0-B4BC-11d2-9833-00C04FC31D2E),
177 pointer_default(unique)
178]
179interface IAssemblyName: IUnknown
180{
181 typedef [unique] IAssemblyName *LPASSEMBLYNAME;
182
183 typedef enum
184 {
185 CANOF_PARSE_DISPLAY_NAME = 0x1,
186 CANOF_SET_DEFAULT_VALUES = 0x2,
187 CANOF_VERIFY_FRIEND_ASSEMBLYNAME = 0x4,
188 CANOF_PARSE_FRIEND_DISPLAY_NAME = CANOF_PARSE_DISPLAY_NAME |
189 CANOF_VERIFY_FRIEND_ASSEMBLYNAME
190 } CREATE_ASM_NAME_OBJ_FLAGS;
191
192 typedef enum
193 {
194 ASM_NAME_PUBLIC_KEY = 0,
195 ASM_NAME_PUBLIC_KEY_TOKEN,
196 ASM_NAME_HASH_VALUE,
197 ASM_NAME_NAME,
198 ASM_NAME_MAJOR_VERSION,
199 ASM_NAME_MINOR_VERSION,
200 ASM_NAME_BUILD_NUMBER,
201 ASM_NAME_REVISION_NUMBER,
202 ASM_NAME_CULTURE,
203 ASM_NAME_PROCESSOR_ID_ARRAY,
204 ASM_NAME_OSINFO_ARRAY,
205 ASM_NAME_HASH_ALGID,
206 ASM_NAME_ALIAS,
207 ASM_NAME_CODEBASE_URL,
208 ASM_NAME_CODEBASE_LASTMOD,
209 ASM_NAME_NULL_PUBLIC_KEY,
210 ASM_NAME_NULL_PUBLIC_KEY_TOKEN,
211 ASM_NAME_CUSTOM,
212 ASM_NAME_NULL_CUSTOM,
213 ASM_NAME_MVID,
214 ASM_NAME_FILE_MAJOR_VERSION,
215 ASM_NAME_FILE_MINOR_VERSION,
216 ASM_NAME_FILE_BUILD_NUMBER,
217 ASM_NAME_FILE_REVISION_NUMBER,
218 ASM_NAME_RETARGET,
219 ASM_NAME_SIGNATURE_BLOB,
220 ASM_NAME_CONFIG_MASK,
221 ASM_NAME_ARCHITECTURE,
222 ASM_NAME_MAX_PARAMS
223 } ASM_NAME;
224
225 typedef enum
226 {
227 ASM_DISPLAYF_VERSION = 0x1,
228 ASM_DISPLAYF_CULTURE = 0x2,
229 ASM_DISPLAYF_PUBLIC_KEY_TOKEN = 0x4,
230 ASM_DISPLAYF_PUBLIC_KEY = 0x8,
231 ASM_DISPLAYF_CUSTOM = 0x10,
232 ASM_DISPLAYF_PROCESSORARCHITECTURE = 0x20,
233 ASM_DISPLAYF_LANGUAGEID = 0x40,
234 ASM_DISPLAYF_RETARGET = 0x80,
235 ASM_DISPLAYF_CONFIG_MASK = 0x100,
236 ASM_DISPLAYF_MVID = 0x200,
237
238 ASM_DISPLAYF_FULL = ASM_DISPLAYF_VERSION |
239 ASM_DISPLAYF_CULTURE |
240 ASM_DISPLAYF_PUBLIC_KEY_TOKEN |
241 ASM_DISPLAYF_RETARGET |
242 ASM_DISPLAYF_PROCESSORARCHITECTURE,
243 } ASM_DISPLAY_FLAGS;
244
245 typedef enum
246 {
247 ASM_CMPF_NAME = 0x1,
248 ASM_CMPF_MAJOR_VERSION = 0x2,
249 ASM_CMPF_MINOR_VERSION = 0x4,
250 ASM_CMPF_BUILD_NUMBER = 0x8,
251 ASM_CMPF_REVISION_NUMBER = 0x10,
252 ASM_CMPF_VERSION = ASM_CMPF_MAJOR_VERSION |
253 ASM_CMPF_MINOR_VERSION |
254 ASM_CMPF_BUILD_NUMBER |
255 ASM_CMPF_REVISION_NUMBER,
256 ASM_CMPF_PUBLIC_KEY_TOKEN = 0x20,
257 ASM_CMPF_CULTURE = 0x40,
258 ASM_CMPF_CUSTOM = 0x80,
259 ASM_CMPF_DEFAULT = 0x100,
260 ASM_CMPF_RETARGET = 0x200,
261 ASM_CMPF_ARCHITECTURE = 0x400,
262 ASM_CMPF_CONFIG_MASK = 0x800,
263 ASM_CMPF_MVID = 0x1000,
264 ASM_CMPF_SIGNATURE = 0x2000,
265 ASM_CMPF_IL_ALL = ASM_CMPF_NAME |
266 ASM_CMPF_VERSION |
267 ASM_CMPF_PUBLIC_KEY_TOKEN |
268 ASM_CMPF_CULTURE,
269 ASM_CMPF_IL_NO_VERSION = ASM_CMPF_NAME |
270 ASM_CMPF_PUBLIC_KEY_TOKEN |
271 ASM_CMPF_CULTURE
272 } ASM_CMP_FLAGS;
273
274 HRESULT SetProperty(
275 [in] DWORD PropertyId,
276 [in] LPVOID pvProperty,
277 [in] DWORD cbProperty);
278
279 HRESULT GetProperty(
280 [in] DWORD PropertyId,
281 [out] LPVOID pvProperty,
282 [in, out] LPDWORD pcbProperty);
283
284 HRESULT Finalize();
285
286 HRESULT GetDisplayName(
287 [out] LPOLESTR szDisplayName,
288 [in, out] LPDWORD pccDisplayName,
289 [in] DWORD dwDisplayFlags);
290
291 HRESULT Reserved(
292 [in] REFIID refIID,
293 [in] IUnknown *pUnkReserved1,
294 [in] IUnknown *pUnkReserved2,
295 [in] LPCOLESTR szReserved,
296 [in] LONGLONG llReserved,
297 [in] LPVOID pvReserved,
298 [in] DWORD cbReserved,
299 [out] LPVOID *ppReserved);
300
301 HRESULT GetName(
302 [in, out] LPDWORD lpcwBuffer,
303 [out] WCHAR *pwzName);
304
305 HRESULT GetVersion(
306 [out] LPDWORD pdwVersionHi,
307 [out] LPDWORD pdwVersionLow);
308
309 HRESULT IsEqual(
310 [in] IAssemblyName *pName,
311 [in] DWORD dwCmpFlags);
312
313 HRESULT Clone([out] IAssemblyName **pName);
314}
315
316[
317 local,
318 object,
319 uuid(21b8916c-f28e-11d2-a473-00c04f8ef448),
320 pointer_default(unique)
321]
322interface IAssemblyEnum : IUnknown
323{
324 HRESULT GetNextAssembly(
325 [in] LPVOID pvReserved,
326 [out] IAssemblyName **ppName,
327 [in] DWORD dwFlags);
328
329 HRESULT Reset(void);
330
331 HRESULT Clone([out] IAssemblyEnum **ppEnum);
332}
333
334[
335 local,
336 object,
337 uuid(582dac66-e678-449f-aba6-6faaec8a9394),
338 pointer_default(unique)
339]
340interface IInstallReferenceItem : IUnknown
341{
342
343}
344
345[
346 local,
347 object,
348 uuid(56b1a988-7c0c-4aa2-8639-c3eb5a90226f),
349 pointer_default(unique)
350]
351interface IInstallReferenceEnum : IUnknown
352{
353
354}
355
356cpp_quote("HRESULT WINAPI ClearDownloadCache(void);")
357cpp_quote("HRESULT WINAPI CompareAssemblyIdentity(LPCWSTR,BOOL,LPCWSTR,BOOL,BOOL*,AssemblyComparisonResult*);")
358cpp_quote("HRESULT WINAPI CreateAssemblyCache(IAssemblyCache**,DWORD);")
359cpp_quote("HRESULT WINAPI CreateAssemblyEnum(IAssemblyEnum**,IUnknown*,IAssemblyName*,DWORD,LPVOID);")
360cpp_quote("HRESULT WINAPI CreateAssemblyNameObject(LPASSEMBLYNAME*,LPCWSTR,DWORD,LPVOID);")
361cpp_quote("HRESULT WINAPI CreateInstallReferenceEnum(IInstallReferenceEnum**,IAssemblyName*,DWORD,LPVOID);")
362cpp_quote("HRESULT WINAPI GetAssemblyIdentityFromFile(LPCWSTR,REFIID,IUnknown**);")
363cpp_quote("HRESULT WINAPI GetCachePath(ASM_CACHE_FLAGS,LPWSTR,PDWORD);")
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette