2 * Copyright 2008 James Hawkins
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.
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.
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
21 interface IAssemblyCache
;
22 interface IAssemblyCacheItem
;
23 interface IAssemblyEnum
;
24 interface IAssemblyName
;
30 ASM_CACHE_DOWNLOAD
= 0x4,
41 peInvalid
= 0xffffffff
44 typedef enum _tagAssemblyComparisonResult
47 ACR_EquivalentFullMatch
,
48 ACR_EquivalentWeakNamed
,
49 ACR_EquivalentFXUnified
,
50 ACR_EquivalentUnified
,
51 ACR_NonEquivalentVersion
,
53 ACR_EquivalentPartialMatch
,
54 ACR_EquivalentPartialWeakNamed
,
55 ACR_EquivalentPartialUnified
,
56 ACR_EquivalentPartialFXUnified
,
57 ACR_NonEquivalentPartialVersion
58 } AssemblyComparisonResult
;
63 uuid(e707dcde
-d1cd
-11d2
-bab9
-00c04f8eceae
),
64 pointer_default(unique)
66 interface IAssemblyCache
: IUnknown
74 uuid(9e3aaeb4
-d1cd
-11d2
-bab9
-00c04f8eceae
),
75 pointer_default(unique)
77 interface IAssemblyCacheItem
: IUnknown
85 uuid(CD193BC0
-B4BC
-11d2
-9833-00C04FC31D2E
),
86 pointer_default(unique)
88 interface IAssemblyName
: IUnknown
90 typedef [unique] IAssemblyName
*LPASSEMBLYNAME
;
94 CANOF_PARSE_DISPLAY_NAME
= 0x1,
95 CANOF_SET_DEFAULT_VALUES
= 0x2,
96 CANOF_VERIFY_FRIEND_ASSEMBLYNAME
= 0x4,
97 CANOF_PARSE_FRIEND_DISPLAY_NAME
= CANOF_PARSE_DISPLAY_NAME |
98 CANOF_VERIFY_FRIEND_ASSEMBLYNAME
99 } CREATE_ASM_NAME_OBJ_FLAGS
;
103 ASM_NAME_PUBLIC_KEY
= 0,
104 ASM_NAME_PUBLIC_KEY_TOKEN
,
107 ASM_NAME_MAJOR_VERSION
,
108 ASM_NAME_MINOR_VERSION
,
109 ASM_NAME_BUILD_NUMBER
,
110 ASM_NAME_REVISION_NUMBER
,
112 ASM_NAME_PROCESSOR_ID_ARRAY
,
113 ASM_NAME_OSINFO_ARRAY
,
116 ASM_NAME_CODEBASE_URL
,
117 ASM_NAME_CODEBASE_LASTMOD
,
118 ASM_NAME_NULL_PUBLIC_KEY
,
119 ASM_NAME_NULL_PUBLIC_KEY_TOKEN
,
121 ASM_NAME_NULL_CUSTOM
,
123 ASM_NAME_FILE_MAJOR_VERSION
,
124 ASM_NAME_FILE_MINOR_VERSION
,
125 ASM_NAME_FILE_BUILD_NUMBER
,
126 ASM_NAME_FILE_REVISION_NUMBER
,
128 ASM_NAME_SIGNATURE_BLOB
,
129 ASM_NAME_CONFIG_MASK
,
130 ASM_NAME_ARCHITECTURE
,
136 ASM_DISPLAYF_VERSION
= 0x1,
137 ASM_DISPLAYF_CULTURE
= 0x2,
138 ASM_DISPLAYF_PUBLIC_KEY_TOKEN
= 0x4,
139 ASM_DISPLAYF_PUBLIC_KEY
= 0x8,
140 ASM_DISPLAYF_CUSTOM
= 0x10,
141 ASM_DISPLAYF_PROCESSORARCHITECTURE
= 0x20,
142 ASM_DISPLAYF_LANGUAGEID
= 0x40,
143 ASM_DISPLAYF_RETARGET
= 0x80,
144 ASM_DISPLAYF_CONFIG_MASK
= 0x100,
145 ASM_DISPLAYF_MVID
= 0x200,
147 ASM_DISPLAYF_FULL
= ASM_DISPLAYF_VERSION |
148 ASM_DISPLAYF_CULTURE |
149 ASM_DISPLAYF_PUBLIC_KEY_TOKEN |
150 ASM_DISPLAYF_RETARGET |
151 ASM_DISPLAYF_PROCESSORARCHITECTURE
,
157 ASM_CMPF_MAJOR_VERSION
= 0x2,
158 ASM_CMPF_MINOR_VERSION
= 0x4,
159 ASM_CMPF_BUILD_NUMBER
= 0x8,
160 ASM_CMPF_REVISION_NUMBER
= 0x10,
161 ASM_CMPF_VERSION
= ASM_CMPF_MAJOR_VERSION |
162 ASM_CMPF_MINOR_VERSION |
163 ASM_CMPF_BUILD_NUMBER |
164 ASM_CMPF_REVISION_NUMBER
,
165 ASM_CMPF_PUBLIC_KEY_TOKEN
= 0x20,
166 ASM_CMPF_CULTURE
= 0x40,
167 ASM_CMPF_CUSTOM
= 0x80,
168 ASM_CMPF_DEFAULT
= 0x100,
169 ASM_CMPF_RETARGET
= 0x200,
170 ASM_CMPF_ARCHITECTURE
= 0x400,
171 ASM_CMPF_CONFIG_MASK
= 0x800,
172 ASM_CMPF_MVID
= 0x1000,
173 ASM_CMPF_SIGNATURE
= 0x2000,
174 ASM_CMPF_IL_ALL
= ASM_CMPF_NAME |
176 ASM_CMPF_PUBLIC_KEY_TOKEN |
178 ASM_CMPF_IL_NO_VERSION
= ASM_CMPF_NAME |
179 ASM_CMPF_PUBLIC_KEY_TOKEN |
184 [in] DWORD PropertyId
,
185 [in] LPVOID pvProperty
,
186 [in] DWORD cbProperty
);
189 [in] DWORD PropertyId
,
190 [out] LPVOID pvProperty
,
191 [in, out] LPDWORD pcbProperty
);
195 HRESULT GetDisplayName
(
196 [out] LPOLESTR szDisplayName
,
197 [in, out] LPDWORD pccDisplayName
,
198 [in] DWORD dwDisplayFlags
);
202 [in] IUnknown
*pUnkReserved1
,
203 [in] IUnknown
*pUnkReserved2
,
204 [in] LPCOLESTR szReserved
,
205 [in] LONGLONG llReserved
,
206 [in] LPVOID pvReserved
,
207 [in] DWORD cbReserved
,
208 [out] LPVOID
*ppReserved
);
211 [in, out] LPDWORD lpcwBuffer
,
212 [out] WCHAR
*pwzName
);
215 [out] LPDWORD pdwVersionHi
,
216 [out] LPDWORD pdwVersionLow
);
219 [in] IAssemblyName
*pName
,
220 [in] DWORD dwCmpFlags
);
222 HRESULT Clone
([out] IAssemblyName
**pName
);
228 uuid(21b8916c
-f28e
-11d2
-a473
-00c04f8ef448
),
229 pointer_default(unique)
231 interface IAssemblyEnum
: IUnknown
239 uuid(582dac66
-e678
-449f
-aba6
-6faaec8a9394
),
240 pointer_default(unique)
242 interface IInstallReferenceItem
: IUnknown
250 uuid(56b1a988
-7c0c
-4aa2
-8639-c3eb5a90226f
),
251 pointer_default(unique)
253 interface IInstallReferenceEnum
: IUnknown
258 cpp_quote
("HRESULT WINAPI ClearDownloadCache(void);")
259 cpp_quote
("HRESULT WINAPI CompareAssemblyIdentity(LPCWSTR,BOOL,LPCWSTR,BOOL,BOOL*,AssemblyComparisonResult*);")
260 cpp_quote
("HRESULT WINAPI CreateAssemblyCache(IAssemblyCache**,DWORD);")
261 cpp_quote
("HRESULT WINAPI CreateAssemblyEnum(IAssemblyEnum**,IUnknown*,IAssemblyName*,DWORD,LPVOID);")
262 cpp_quote
("HRESULT WINAPI CreateAssemblyNameObject(LPASSEMBLYNAME*,LPCWSTR,DWORD,LPVOID);")
263 cpp_quote
("HRESULT WINAPI CreateInstallReferenceEnum(IInstallReferenceEnum**,IAssemblyName*,DWORD,LPVOID);")
264 cpp_quote
("HRESULT WINAPI GetAssemblyIdentityFromFile(LPCWSTR,REFIID,IUnknown**);")
265 cpp_quote
("HRESULT WINAPI GetCachePath(ASM_CACHE_FLAGS,LPWSTR,PDWORD);")