2 * Copyright (C) 2002,2003 Mike McCormack
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
26 #ifndef _MSI_NO_CRYPTO
30 typedef unsigned long MSIHANDLE
;
32 typedef enum tagINSTALLSTATE
34 INSTALLSTATE_BADCONFIG
= -6,
35 INSTALLSTATE_INCOMPLETE
= -5,
36 INSTALLSTATE_SOURCEABSENT
= -4,
37 INSTALLSTATE_MOREDATA
= -3,
38 INSTALLSTATE_INVALIDARG
= -2,
39 INSTALLSTATE_UNKNOWN
= -1,
40 INSTALLSTATE_BROKEN
= 0,
41 INSTALLSTATE_ADVERTISED
= 1,
42 INSTALLSTATE_ABSENT
= 2,
43 INSTALLSTATE_LOCAL
= 3,
44 INSTALLSTATE_SOURCE
= 4,
45 INSTALLSTATE_DEFAULT
= 5
48 typedef enum tagINSTALLUILEVEL
50 INSTALLUILEVEL_NOCHANGE
= 0,
51 INSTALLUILEVEL_DEFAULT
= 1,
52 INSTALLUILEVEL_NONE
= 2,
53 INSTALLUILEVEL_BASIC
= 3,
54 INSTALLUILEVEL_REDUCED
= 4,
55 INSTALLUILEVEL_FULL
= 5,
56 INSTALLUILEVEL_HIDECANCEL
= 0x20,
57 INSTALLUILEVEL_PROGRESSONLY
= 0x40,
58 INSTALLUILEVEL_ENDDIALOG
= 0x80,
59 INSTALLUILEVEL_SOURCERESONLY
= 0x100
62 typedef enum tagUSERINFOSTATE
64 USERINFOSTATE_MOREDATA
= -3,
65 USERINFOSTATE_INVALIDARG
= -2,
66 USERINFOSTATE_UNKNOWN
= -1,
67 USERINFOSTATE_ABSENT
= 0,
68 USERINFOSTATE_PRESENT
= 1,
71 typedef enum tagINSTALLLEVEL
73 INSTALLLEVEL_DEFAULT
= 0,
74 INSTALLLEVEL_MINIMUM
= 1,
75 INSTALLLEVEL_MAXIMUM
= 0xFFFF
78 typedef enum tagINSTALLMESSAGE
80 INSTALLMESSAGE_FATALEXIT
= 0,
81 INSTALLMESSAGE_ERROR
= 0x01000000,
82 INSTALLMESSAGE_WARNING
= 0x02000000,
83 INSTALLMESSAGE_USER
= 0x03000000,
84 INSTALLMESSAGE_INFO
= 0x04000000,
85 INSTALLMESSAGE_FILESINUSE
= 0x05000000,
86 INSTALLMESSAGE_RESOLVESOURCE
= 0x06000000,
87 INSTALLMESSAGE_OUTOFDISKSPACE
= 0x07000000,
88 INSTALLMESSAGE_ACTIONSTART
= 0x08000000,
89 INSTALLMESSAGE_ACTIONDATA
= 0x09000000,
90 INSTALLMESSAGE_PROGRESS
= 0x0a000000,
91 INSTALLMESSAGE_COMMONDATA
= 0x0b000000,
92 INSTALLMESSAGE_INITIALIZE
= 0x0c000000,
93 INSTALLMESSAGE_TERMINATE
= 0x0d000000,
94 INSTALLMESSAGE_SHOWDIALOG
= 0x0e000000
97 typedef enum tagREINSTALLMODE
99 REINSTALLMODE_REPAIR
= 0x00000001,
100 REINSTALLMODE_FILEMISSING
= 0x00000002,
101 REINSTALLMODE_FILEOLDERVERSION
= 0x00000004,
102 REINSTALLMODE_FILEEQUALVERSION
= 0x00000008,
103 REINSTALLMODE_FILEEXACT
= 0x00000010,
104 REINSTALLMODE_FILEVERIFY
= 0x00000020,
105 REINSTALLMODE_FILEREPLACE
= 0x00000040,
106 REINSTALLMODE_MACHINEDATA
= 0x00000080,
107 REINSTALLMODE_USERDATA
= 0x00000100,
108 REINSTALLMODE_SHORTCUT
= 0x00000200,
109 REINSTALLMODE_PACKAGE
= 0x00000400
112 typedef enum tagINSTALLLOGMODE
114 INSTALLLOGMODE_FATALEXIT
= (1 << (INSTALLMESSAGE_FATALEXIT
>> 24)),
115 INSTALLLOGMODE_ERROR
= (1 << (INSTALLMESSAGE_ERROR
>> 24)),
116 INSTALLLOGMODE_WARNING
= (1 << (INSTALLMESSAGE_WARNING
>> 24)),
117 INSTALLLOGMODE_USER
= (1 << (INSTALLMESSAGE_USER
>> 24)),
118 INSTALLLOGMODE_INFO
= (1 << (INSTALLMESSAGE_INFO
>> 24)),
119 INSTALLLOGMODE_RESOLVESOURCE
= (1 << (INSTALLMESSAGE_RESOLVESOURCE
>> 24)),
120 INSTALLLOGMODE_OUTOFDISKSPACE
= (1 << (INSTALLMESSAGE_OUTOFDISKSPACE
>> 24)),
121 INSTALLLOGMODE_ACTIONSTART
= (1 << (INSTALLMESSAGE_ACTIONSTART
>> 24)),
122 INSTALLLOGMODE_ACTIONDATA
= (1 << (INSTALLMESSAGE_ACTIONDATA
>> 24)),
123 INSTALLLOGMODE_COMMONDATA
= (1 << (INSTALLMESSAGE_COMMONDATA
>> 24)),
124 INSTALLLOGMODE_PROPERTYDUMP
= (1 << (INSTALLMESSAGE_PROGRESS
>> 24)),
125 INSTALLLOGMODE_VERBOSE
= (1 << (INSTALLMESSAGE_INITIALIZE
>> 24)),
126 INSTALLLOGMODE_EXTRADEBUG
= (1 << (INSTALLMESSAGE_TERMINATE
>> 24)),
127 INSTALLLOGMODE_PROGRESS
= (1 << (INSTALLMESSAGE_PROGRESS
>> 24)),
128 INSTALLLOGMODE_INITIALIZE
= (1 << (INSTALLMESSAGE_INITIALIZE
>> 24)),
129 INSTALLLOGMODE_TERMINATE
= (1 << (INSTALLMESSAGE_TERMINATE
>> 24)),
130 INSTALLLOGMODE_SHOWDIALOG
= (1 << (INSTALLMESSAGE_SHOWDIALOG
>> 24))
133 typedef enum tagINSTALLLOGATTRIBUTES
135 INSTALLLOGATTRIBUTES_APPEND
= 0x00000001,
136 INSTALLLOGATTRIBUTES_FLUSHEACHLINE
= 0x00000002
137 } INSTALLLOGATTRIBUTES
;
139 typedef enum tagADVERTISEFLAGS
141 ADVERTISEFLAGS_MACHINEASSIGN
= 0,
142 ADVERTISEFLAGS_USERASSIGN
= 1
145 typedef enum tagINSTALLTYPE
147 INSTALLTYPE_DEFAULT
= 0,
148 INSTALLTYPE_NETWORK_IMAGE
= 1
151 #define MAX_FEATURE_CHARS 38
153 typedef INT (CALLBACK
*INSTALLUI_HANDLERA
)(LPVOID
, UINT
, LPCSTR
);
154 typedef INT (CALLBACK
*INSTALLUI_HANDLERW
)(LPVOID
, UINT
, LPCWSTR
);
156 UINT WINAPI
MsiAdvertiseProductA(LPCSTR
, LPCSTR
, LPCSTR
, LANGID
);
157 UINT WINAPI
MsiAdvertiseProductW(LPCWSTR
, LPCWSTR
, LPCWSTR
, LANGID
);
158 #define MsiAdvertiseProduct WINELIB_NAME_AW(MsiAdvertiseProduct)
160 UINT WINAPI
MsiAdvertiseProductExA(LPCSTR
, LPCSTR
, LPCSTR
, LANGID
, DWORD
, DWORD
);
161 UINT WINAPI
MsiAdvertiseProductExW(LPCWSTR
, LPCWSTR
, LPCWSTR
, LANGID
, DWORD
, DWORD
);
162 #define MsiAdvertiseProductEx WINELIB_NAME_AW(MsiAdvertiseProductEx)
164 UINT WINAPI
MsiInstallProductA(LPCSTR
, LPCSTR
);
165 UINT WINAPI
MsiInstallProductW(LPCWSTR
, LPCWSTR
);
166 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
168 UINT WINAPI
MsiReinstallProductA(LPCSTR
, DWORD
);
169 UINT WINAPI
MsiReinstallProductW(LPCWSTR
, DWORD
);
170 #define MsiReinstallProduct WINELIB_NAME_AW(MsiReinstallProduct)
172 UINT WINAPI
MsiApplyPatchA(LPCSTR
, LPCSTR
, INSTALLTYPE
, LPCSTR
);
173 UINT WINAPI
MsiApplyPatchW(LPCWSTR
, LPCWSTR
, INSTALLTYPE
, LPCWSTR
);
174 #define MsiApplyPatch WINELIB_NAME_AW(MsiApplyPatch)
176 UINT WINAPI
MsiEnumProductsA(DWORD
, LPSTR
);
177 UINT WINAPI
MsiEnumProductsW(DWORD
, LPWSTR
);
178 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
180 UINT WINAPI
MsiEnumFeaturesA(LPCSTR
, DWORD
, LPSTR
, LPSTR
);
181 UINT WINAPI
MsiEnumFeaturesW(LPCWSTR
, DWORD
, LPWSTR
, LPWSTR
);
182 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
184 UINT WINAPI
MsiEnumComponentsA(DWORD
, LPSTR
);
185 UINT WINAPI
MsiEnumComponentsW(DWORD
, LPWSTR
);
186 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
188 UINT WINAPI
MsiEnumClientsA(LPCSTR
, DWORD
, LPSTR
);
189 UINT WINAPI
MsiEnumClientsW(LPCWSTR
, DWORD
, LPWSTR
);
190 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
192 UINT WINAPI
MsiOpenDatabaseA(LPCSTR
, LPCSTR
, MSIHANDLE
*);
193 UINT WINAPI
MsiOpenDatabaseW(LPCWSTR
, LPCWSTR
, MSIHANDLE
*);
194 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
196 UINT WINAPI
MsiOpenPackageA(LPCSTR
, MSIHANDLE
*);
197 UINT WINAPI
MsiOpenPackageW(LPCWSTR
, MSIHANDLE
*);
198 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
200 UINT WINAPI
MsiOpenPackageExA(LPCSTR
, DWORD
, MSIHANDLE
*);
201 UINT WINAPI
MsiOpenPackageExW(LPCWSTR
, DWORD
, MSIHANDLE
*);
202 #define MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
204 UINT WINAPI
MsiOpenProductA(LPCSTR
, MSIHANDLE
*);
205 UINT WINAPI
MsiOpenProductW(LPCWSTR
, MSIHANDLE
*);
206 #define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
208 UINT WINAPI
MsiProvideComponentFromDescriptorA(LPCSTR
,LPSTR
,DWORD
*,DWORD
*);
209 UINT WINAPI
MsiProvideComponentFromDescriptorW(LPCWSTR
,LPWSTR
,DWORD
*,DWORD
*);
210 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
212 UINT WINAPI
MsiGetProductPropertyA(MSIHANDLE
,LPCSTR
,LPSTR
,DWORD
*);
213 UINT WINAPI
MsiGetProductPropertyW(MSIHANDLE
,LPCWSTR
,LPWSTR
,DWORD
*);
214 #define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
216 UINT WINAPI
MsiGetPropertyA(MSIHANDLE
, LPCSTR
, LPSTR
, DWORD
*);
217 UINT WINAPI
MsiGetPropertyW(MSIHANDLE
, LPCWSTR
, LPWSTR
, DWORD
*);
218 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
220 UINT WINAPI
MsiVerifyPackageA(LPCSTR
);
221 UINT WINAPI
MsiVerifyPackageW(LPCWSTR
);
222 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
224 INSTALLSTATE WINAPI
MsiQueryProductStateA(LPCSTR
);
225 INSTALLSTATE WINAPI
MsiQueryProductStateW(LPCWSTR
);
226 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
228 UINT WINAPI
MsiConfigureProductA(LPCSTR
, int, INSTALLSTATE
);
229 UINT WINAPI
MsiConfigureProductW(LPCWSTR
, int, INSTALLSTATE
);
230 #define MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
232 UINT WINAPI
MsiConfigureProductExA(LPCSTR
, int, INSTALLSTATE
, LPCSTR
);
233 UINT WINAPI
MsiConfigureProductExW(LPCWSTR
, int, INSTALLSTATE
, LPCWSTR
);
234 #define MsiConfigureProductEx WINELIB_NAME_AW(MsiConfigureProductEx);
236 UINT WINAPI
MsiGetProductCodeA(LPCSTR
, LPSTR
);
237 UINT WINAPI
MsiGetProductCodeW(LPCWSTR
, LPWSTR
);
238 #define MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
240 UINT WINAPI
MsiGetProductInfoA(LPCSTR
, LPCSTR
, LPSTR
, DWORD
*);
241 UINT WINAPI
MsiGetProductInfoW(LPCWSTR
, LPCWSTR
, LPWSTR
, DWORD
*);
242 #define MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
244 UINT WINAPI
MsiEnableLogA(DWORD
, LPCSTR
, DWORD
);
245 UINT WINAPI
MsiEnableLogW(DWORD
, LPCWSTR
, DWORD
);
246 #define MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
248 INSTALLUI_HANDLERA WINAPI
MsiSetExternalUIA(INSTALLUI_HANDLERA
, DWORD
, LPVOID
);
249 INSTALLUI_HANDLERW WINAPI
MsiSetExternalUIW(INSTALLUI_HANDLERW
, DWORD
, LPVOID
);
250 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
252 INSTALLSTATE WINAPI
MsiGetComponentPathA(LPCSTR
, LPCSTR
, LPSTR
, DWORD
*);
253 INSTALLSTATE WINAPI
MsiGetComponentPathW(LPCWSTR
, LPCWSTR
, LPWSTR
, DWORD
*);
254 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
256 INSTALLSTATE WINAPI
MsiQueryFeatureStateA(LPCSTR
, LPCSTR
);
257 INSTALLSTATE WINAPI
MsiQueryFeatureStateW(LPCWSTR
, LPCWSTR
);
258 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
260 UINT WINAPI
MsiGetFeatureUsageA(LPCSTR
, LPCSTR
, DWORD
*, WORD
*);
261 UINT WINAPI
MsiGetFeatureUsageW(LPCWSTR
, LPCWSTR
, DWORD
*, WORD
*);
262 #define MsiGetFeatureUsage WINELIB_NAME_AW(MsiGetFeatureUsage)
264 UINT WINAPI
MsiEnumRelatedProductsA(LPCSTR
, DWORD
, DWORD
, LPSTR
);
265 UINT WINAPI
MsiEnumRelatedProductsW(LPCWSTR
, DWORD
, DWORD
, LPWSTR
);
266 #define MsiEnumRelatedProducts WINELIB_NAME_AW(MsiEnumRelatedProducts)
268 UINT WINAPI
MsiProvideAssemblyA(LPCSTR
, LPCSTR
, DWORD
, DWORD
, LPSTR
, DWORD
*);
269 UINT WINAPI
MsiProvideAssemblyW(LPCWSTR
, LPCWSTR
, DWORD
, DWORD
, LPWSTR
, DWORD
*);
270 #define MsiProvideAssembly WINELIB_NAME_AW(MsiProvideAssembly)
272 UINT WINAPI
MsiEnumComponentQualifiersA(LPSTR
, DWORD
, LPSTR
, DWORD
*, LPSTR
, DWORD
*);
273 UINT WINAPI
MsiEnumComponentQualifiersW(LPWSTR
, DWORD
, LPWSTR
, DWORD
*, LPWSTR
, DWORD
*);
274 #define MsiEnumComponentQualifiers WINELIB_NAME_AW(MsiEnumComponentQualifiers)
276 UINT WINAPI
MsiGetFileVersionA(LPCSTR
, LPSTR
, DWORD
*, LPSTR
, DWORD
*);
277 UINT WINAPI
MsiGetFileVersionW(LPCWSTR
, LPWSTR
, DWORD
*, LPWSTR
, DWORD
*);
278 #define MsiGetFileVersion WINELIB_NAME_AW(MsiGetFileVersion)
280 UINT WINAPI
MsiMessageBoxA(HWND
, LPCSTR
, LPCSTR
, UINT
, WORD
, DWORD
);
281 UINT WINAPI
MsiMessageBoxW(HWND
, LPCWSTR
, LPCWSTR
, UINT
, WORD
, DWORD
);
282 #define MsiMessageBox WINELIB_NAME_AW(MsiMessageBox)
284 UINT WINAPI
MsiProvideQualifiedComponentExA(LPCSTR
, LPCSTR
, DWORD
, LPSTR
, DWORD
, DWORD
, LPSTR
, DWORD
*);
285 UINT WINAPI
MsiProvideQualifiedComponentExW(LPCWSTR
, LPCWSTR
, DWORD
, LPWSTR
, DWORD
, DWORD
, LPWSTR
, DWORD
*);
286 #define MsiProvideQualifiedComponentEx WINELIB_NAME_AW(MsiProvideQualifiedComponentEx)
288 UINT WINAPI
MsiProvideQualifiedComponentA(LPCSTR
, LPCSTR
, DWORD
, LPSTR
, DWORD
*);
289 UINT WINAPI
MsiProvideQualifiedComponentW(LPCWSTR
, LPCWSTR
, DWORD
, LPWSTR
, DWORD
*);
290 #define MsiProvideQualifiedComponent WINELIB_NAME_AW(MsiProvideQualifiedComponent)
292 USERINFOSTATE WINAPI
MsiGetUserInfoA(LPCSTR
, LPSTR
, DWORD
*, LPSTR
, DWORD
*, LPSTR
, DWORD
*);
293 USERINFOSTATE WINAPI
MsiGetUserInfoW(LPCWSTR
, LPWSTR
, DWORD
*, LPWSTR
, DWORD
*, LPWSTR
, DWORD
*);
294 #define MsiGetUserInfo WINELIB_NAME_AW(MsiGetUserInfo)
296 UINT WINAPI
MsiCollectUserInfoA(LPCSTR
);
297 UINT WINAPI
MsiCollectUserInfoW(LPCWSTR
);
298 #define MsiCollectUserInfo WINELIB_NAME_AW(MsiCollectUserInfo)
300 UINT WINAPI
MsiReinstallFeatureA(LPCSTR
, LPCSTR
, DWORD
);
301 UINT WINAPI
MsiReinstallFeatureW(LPCWSTR
, LPCWSTR
, DWORD
);
302 #define MsiReinstallFeature WINELIB_NAME_AW(MsiReinstallFeature)
304 UINT WINAPI
MsiGetShortcutTargetA(LPCSTR
, LPSTR
, LPSTR
, LPSTR
);
305 UINT WINAPI
MsiGetShortcutTargetW(LPCWSTR
, LPWSTR
, LPWSTR
, LPWSTR
);
306 #define MsiGetShortcutTarget WINELIB_NAME_AW(MsiGetShortcutTarget)
308 INSTALLSTATE WINAPI
MsiUseFeatureW(LPCWSTR
, LPCWSTR
);
309 INSTALLSTATE WINAPI
MsiUseFeatureA(LPCSTR
, LPCSTR
);
310 #define MsiUseFeature WINELIB_NAME_AW(MsiUseFeature)
312 INSTALLSTATE WINAPI
MsiUseFeatureExW(LPCWSTR
, LPCWSTR
, DWORD
, DWORD
);
313 INSTALLSTATE WINAPI
MsiUseFeatureExA(LPCSTR
, LPCSTR
, DWORD
, DWORD
);
314 #define MsiUseFeatureEx WINELIB_NAME_AW(MsiUseFeatureEx)
316 HRESULT WINAPI
MsiGetFileSignatureInformationA(LPCSTR
, DWORD
, PCCERT_CONTEXT
*, BYTE
*, DWORD
*);
317 HRESULT WINAPI
MsiGetFileSignatureInformationW(LPCWSTR
, DWORD
, PCCERT_CONTEXT
*, BYTE
*, DWORD
*);
318 #define MsiGetFileSignatureInformation WINELIB_NAME_AW(MsiGetFileSignatureInformation)
320 INSTALLSTATE WINAPI
MsiLocateComponentA(LPCSTR
, LPSTR
, DWORD
*);
321 INSTALLSTATE WINAPI
MsiLocateComponentW(LPCWSTR
, LPWSTR
, DWORD
*);
322 #define MsiLocateComponent WINELIB_NAME_AW(MsiLocateComponent)
325 UINT WINAPI
MsiCloseHandle(MSIHANDLE
);
326 UINT WINAPI
MsiCloseAllHandles(void);
327 INSTALLUILEVEL WINAPI
MsiSetInternalUI(INSTALLUILEVEL
, HWND
*);
333 #endif /* __WINE_MSI_H */