Buffer size needs to be specified in bytes on input.
[wine] / include / msi.h
1 /*
2  * Copyright (C) 2002,2003 Mike McCormack
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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17  */
18
19 #ifndef __WINE_MSI_H
20 #define __WINE_MSI_H
21
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25
26 #ifndef _MSI_NO_CRYPTO
27 #include <wincrypt.h>
28 #endif
29
30 typedef unsigned long MSIHANDLE;
31
32 typedef enum tagINSTALLSTATE
33 {
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
46 } INSTALLSTATE;
47
48 typedef enum tagINSTALLUILEVEL
49 {
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
60 } INSTALLUILEVEL;
61
62 typedef enum tagUSERINFOSTATE
63 {
64     USERINFOSTATE_MOREDATA = -3,
65     USERINFOSTATE_INVALIDARG = -2,
66     USERINFOSTATE_UNKNOWN = -1,
67     USERINFOSTATE_ABSENT = 0,
68     USERINFOSTATE_PRESENT = 1,
69 } USERINFOSTATE;
70
71 typedef enum tagINSTALLLEVEL
72 {
73     INSTALLLEVEL_DEFAULT = 0,
74     INSTALLLEVEL_MINIMUM = 1,
75     INSTALLLEVEL_MAXIMUM = 0xFFFF
76 } INSTALLLEVEL;
77
78 typedef enum tagINSTALLMESSAGE
79 {
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
95 } INSTALLMESSAGE;
96
97 typedef enum tagREINSTALLMODE
98 {
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
110 } REINSTALLMODE;
111
112 typedef enum tagINSTALLLOGMODE
113 {
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))
131 } INSTALLLOGMODE;
132
133 typedef enum tagINSTALLLOGATTRIBUTES
134 {
135     INSTALLLOGATTRIBUTES_APPEND = 0x00000001,
136     INSTALLLOGATTRIBUTES_FLUSHEACHLINE = 0x00000002
137 } INSTALLLOGATTRIBUTES;
138
139 typedef enum tagINSTALLMODE
140 {
141     INSTALLMODE_NODETECTION_ANY     = -4,
142     INSTALLMODE_NOSOURCERESOLUTION  = -3,
143     INSTALLMODE_NODETECTION         = -2,
144     INSTALLMODE_EXISTING            = -1,
145     INSTALLMODE_DEFAULT             = 0
146 } INSTALLMODE;
147
148 typedef enum tagADVERTISEFLAGS
149 {
150     ADVERTISEFLAGS_MACHINEASSIGN = 0,
151     ADVERTISEFLAGS_USERASSIGN = 1
152 } ADVERTISEFLAGS;
153
154 typedef enum tagINSTALLTYPE
155 {
156     INSTALLTYPE_DEFAULT = 0,
157     INSTALLTYPE_NETWORK_IMAGE = 1
158 } INSTALLTYPE;
159
160 typedef enum tagMSIINSTALLCONTEXT
161 {
162     MSIINSTALLCONTEXT_FIRSTVISIBLE  =   0,
163     MSIINSTALLCONTEXT_NONE          =   0,
164     MSIINSTALLCONTEXT_USERMANAGED   =   1,
165     MSIINSTALLCONTEXT_USERUNMANAGED =   2,
166     MSIINSTALLCONTEXT_MACHINE       =   4,
167     MSIINSTALLCONTEXT_ALL           = (MSIINSTALLCONTEXT_USERMANAGED | MSIINSTALLCONTEXT_USERUNMANAGED | MSIINSTALLCONTEXT_MACHINE),
168     MSIINSTALLCONTEXT_ALLUSERMANAGED=   8,
169 } MSIINSTALLCONTEXT;
170
171 typedef enum tagMSISOURCETYPE
172 {
173     MSISOURCETYPE_UNKNOWN = 0x00000000L,
174     MSISOURCETYPE_NETWORK = 0x00000001L,
175     MSISOURCETYPE_URL     = 0x00000002L,
176     MSISOURCETYPE_MEDIA   = 0x00000004
177 } MSISOURCETYPE;
178
179 typedef enum tagMSICODE
180 {
181     MSICODE_PRODUCT = 0x00000000L,
182     MSICODE_PATCH = 0x40000000L
183 } MSICODE;
184
185 #define MAX_FEATURE_CHARS 38
186
187 /* Strings defined in msi.h */
188 /* Advertised Information */
189
190 #define INSTALLPROPERTY_PACKAGENAMEA "PackageName"
191 static const WCHAR INSTALLPROPERTY_PACKAGENAMEW[] = {'P','a','c','k','a','g','e','N','a','m','e',0};
192 #define INSTALLPROPERTY_PACKAGENAME WINELIB_NAME_AW(INSTALLPROPERTY_PACKAGENAME)
193
194 #define INSTALLPROPERTY_TRANSFORMSA "Transforms"
195 static const WCHAR INSTALLPROPERTY_TRANSFORMSW[] = {'T','r','a','n','s','f','o','r','m','s',0};
196 #define INSTALLPROPERTY_TRANSFORMS WINELIB_NAME_AW(INSTALLPROPERTY_TRANSFORMS)
197
198 #define INSTALLPROPERTY_LANGUAGEA "Language"
199 static const WCHAR INSTALLPROPERTY_LANGUAGEW[] = {'L','a','n','g','u','a','g','e',0};
200 #define INSTALLPROPERTY_LANGUAGE WINELIB_NAME_AW(INSTALLPROPERTY_LANGUAGE)
201
202 #define INSTALLPROPERTY_PRODUCTNAMEA "ProductName"
203 static const WCHAR INSTALLPROPERTY_PRODUCTNAMEW[] = {'P','r','o','d','u','c','t','N','a','m','e',0};
204 #define INSTALLPROPERTY_PRODUCTNAME WINELIB_NAME_AW(INSTALLPROPERTY_PRODUCTNAME)
205
206 #define INSTALLPROPERTY_ASSIGNMENTTYPEA "AssignmentType"
207 static const WCHAR INSTALLPROPERTY_ASSIGNMENTTYPEW[] = {'A','s','s','i','g','n','m','e','n','t','T','y','p','e',0};
208 #define INSTALLPROPERTY_ASSIGNMENTTYPE WINELIB_NAME_AW(INSTALLPROPERTY_ASSIGNMENTTYPE)
209
210 #define INSTALLPROPERTY_PACKAGECODEA "PackageCode"
211 static const WCHAR INSTALLPROPERTY_PACKAGECODEW[] = {'P','a','c','k','a','g','e','C','o','d','e',0};
212 #define INSTALLPROPERTY_PACKAGECODE WINELIB_NAME_AW(INSTALLPROPERTY_PACKAGECODE)
213
214 #define INSTALLPROPERTY_VERSIONA "Version"
215 static const WCHAR INSTALLPROPERTY_VERSIONW[]= {'V','e','r','s','i','o','n',0};
216 #define INSTALLPROPERTY_VERSION WINELIB_NAME_AW(INSTALLPROPERTY_VERSION)
217
218 /* MSI version 1.1 and above */
219
220 #define INSTALLPROPERTY_PRODUCTICONA "ProductIcon"
221 static const WCHAR INSTALLPROPERTY_PRODUCTICONW[]  = {'P','r','o','d','u','c','t','I','c','o','n',0};
222 #define INSTALLPROPERTY_PRODUCTICON WINELIB_NAME_AW(INSTALLPROPERTY_PRODUCTICON)
223
224 /* MSI version 1.5 and above */
225 #define INSTALLPROPERTY_INSTANCETYPEA "InstanceType"
226 static const WCHAR INSTALLPROPERTY_INSTANCETYPEW[] = {'I','n','s','t','a','n','c','e','T','y','p','e',0};
227 #define INSTALLPROPERTY_INSTANCETYPE WINELIB_NAME_AW(INSTALLPROPERTY_INSTANCETYPE)
228
229 /* MSI version 3 and above */
230 #define INSTALLPROPERTY_AUTHORIZED_LUA_APPA "AuthorizedLUAApp"
231 static const WCHAR INSTALLPROPERTY_AUTHORIZED_LUA_APPW[] = {'A','u','t','h','o','r','i','z','e','d','L','U','A','A','p','p',0};
232 #define INSTALLPROPERTY_AUTHORIZED_LUA_APP WINELIB_NAME_AW(INSTALLPROPERTY_AUTHORIZED_LUA_APP)
233
234
235 /* Installed Information */
236 #define INSTALLPROPERTY_INSTALLEDPRODUCTNAMEA "InstalledProductName"
237 static const WCHAR INSTALLPROPERTY_INSTALLEDPRODUCTNAMEW[] = {'I','n','s','t','a','l','l','e','d','P','r','o','d','u','c','t','N','a','m','e',0};
238 #define INSTALLPROPERTY_INSTALLEDPRODUCTNAME WINELIB_NAME_AW(INSTALLPROPERTY_INSTALLEDPRODUCTNAME)
239
240 #define INSTALLPROPERTY_VERSIONSTRINGA "VersionString"
241 static const WCHAR INSTALLPROPERTY_VERSIONSTRINGW[] = {'V','e','r','s','i','o','n','S','t','r','i','n','g',0};
242 #define INSTALLPROPERTY_VERSIONSTRING WINELIB_NAME_AW(INSTALLPROPERTY_VERSIONSTRING)
243
244 #define INSTALLPROPERTY_HELPLINKA "HelpLink"
245 static const WCHAR INSTALLPROPERTY_HELPLINKW[] = {'H','e','l','p','L','i','n','k',0};
246 #define INSTALLPROPERTY_HELPLINK WINELIB_NAME_AW(INSTALLPROPERTY_HELPLINK)
247
248 #define INSTALLPROPERTY_HELPTELEPHONEA "HelpTelephone"
249 static const WCHAR INSTALLPROPERTY_HELPTELEPHONEW[] = {'H','e','l','p','T','e','l','e','p','h','o','n','e',0};
250 #define INSTALLPROPERTY_HELPTELEPHONE WINELIB_NAME_AW(INSTALLPROPERTY_HELPTELEPHONE)
251
252 #define INSTALLPROPERTY_INSTALLLOCATIONA "InstallLocation"
253 static const WCHAR INSTALLPROPERTY_INSTALLLOCATIONW[] = {'I','n','s','t','a','l','l','L','o','c','a','t','i','o','n',0};
254 #define INSTALLPROPERTY_INSTALLLOCATION WINELIB_NAME_AW(INSTALLPROPERTY_INSTALLLOCATION)
255
256 #define INSTALLPROPERTY_INSTALLSOURCEA "InstallSource"
257 static const WCHAR INSTALLPROPERTY_INSTALLSOURCEW[] = {'I','n','s','t','a','l','l','S','o','u','r','c','e',0};
258 #define INSTALLPROPERTY_INSTALLSOURCE WINELIB_NAME_AW(INSTALLPROPERTY_INSTALLSOURCE)
259
260 #define INSTALLPROPERTY_INSTALLDATEA "InstallDate"
261 static const WCHAR INSTALLPROPERTY_INSTALLDATEW[] = {'I','n','s','t','a','l','l','D','a','t','e',0};
262 #define INSTALLPROPERTY_INSTALLDATE WINELIB_NAME_AW(INSTALLPROPERTY_INSTALLDATE)
263
264 #define INSTALLPROPERTY_PUBLISHERA "Publisher"
265 static const WCHAR INSTALLPROPERTY_PUBLISHERW[] ={'P','u','b','l','i','s','h','e','r',0};
266 #define INSTALLPROPERTY_PUBLISHER WINELIB_NAME_AW(INSTALLPROPERTY_PUBLISHER)
267
268 #define INSTALLPROPERTY_LOCALPACKAGEA "LocalPackage"
269 static const WCHAR INSTALLPROPERTY_LOCALPACKAGEW[] = {'L','o','c','a','l','P','a','c','k','a','g','e',0};
270 #define INSTALLPROPERTY_LOCALPACKAGE WINELIB_NAME_AW(INSTALLPROPERTY_LOCALPACKAGE)
271
272 #define INSTALLPROPERTY_URLINFOABOUTA "URLInfoAbout"
273 static const WCHAR INSTALLPROPERTY_URLINFOABOUTW[] = {'U','R','L','I','n','f','o','A','b','o','u','t',0};
274 #define INSTALLPROPERTY_URLINFOABOUT WINELIB_NAME_AW(INSTALLPROPERTY_URLINFOABOUT)
275
276 #define INSTALLPROPERTY_URLUPDATEINFOA "URLUpdateInfo"
277 static const WCHAR INSTALLPROPERTY_URLUPDATEINFOW[] = {'U','R','L','U','p','d','a','t','e','I','n','f','o',0};
278 #define INSTALLPROPERTY_URLUPDATEINFO WINELIB_NAME_AW(INSTALLPROPERTY_URLUPDATEINFO)
279
280 #define INSTALLPROPERTY_VERSIONMINORA "VersionMinor"
281 static const WCHAR INSTALLPROPERTY_VERSIONMINORW[] = {'V','e','r','s','i','o','n','M','i','n','o','r',0};
282 #define INSTALLPROPERTY_VERSIONMINOR WINELIB_NAME_AW(INSTALLPROPERTY_VERSIONMINOR)
283
284 #define INSTALLPROPERTY_VERSIONMAJORA "VersionMajor"
285 static const WCHAR INSTALLPROPERTY_VERSIONMAJORW[] = {'V','e','r','s','i','o','n','M','a','j','o','r',0};
286 #define INSTALLPROPERTY_VERSIONMAJOR WINELIB_NAME_AW(INSTALLPROPERTY_VERSIONMAJOR)
287
288 #define INSTALLPROPERTY_PRODUCTIDA "ProductID"
289 static const WCHAR INSTALLPROPERTY_PRODUCTIDW[] = {'P','r','o','d','u','c','t','I','D',0};
290 #define INSTALLPROPERTY_PRODUCTID WINELIB_NAME_AW(INSTALLPROPERTY_PRODUCTID)
291
292 #define INSTALLPROPERTY_REGCOMPANYA "RegCompany"
293 static const WCHAR INSTALLPROPERTY_REGCOMPANYW[] = {'R','e','g','C','o','m','p','a','n','y',0};
294 #define INSTALLPROPERTY_REGCOMPANY WINELIB_NAME_AW(INSTALLPROPERTY_REGCOMPANY)
295
296 #define INSTALLPROPERTY_REGOWNERA "RegOwner"
297 static const WCHAR INSTALLPROPERTY_REGOWNERW[] = {'R','e','g','O','w','n','e','r',0};
298 #define INSTALLPROPERTY_REGOWNER WINELIB_NAME_AW(INSTALLPROPERTY_REGOWNER)
299
300 /* MSI Version 3.0 and greater */
301 #define INSTALLPROPERTY_UNINSTALLABLEA "Uninstallable"
302 static const WCHAR INSTALLPROPERTY_UNINSTALLABLEW[] = {'U','n','i','n','s','t','a','l','l','a','b','l','e',0};
303 #define INSTALLPROPERTY_UNINSTALLABLE WINELIB_NAME_AW(INSTALLPROPERTY_UNINSTALLABLE)
304
305 #define INSTALLPROPERTY_PRODUCTSTATEA "State"
306 static const WCHAR INSTALLPROPERTY_PRODUCTSTATEW[] = {'S','t','a','t','e',0};
307 #define INSTALLPROPERTY_PRODUCTSTATE WINELIB_NAME_AW(INSTALLPROPERTY_PRODUCTSTATE)
308
309 #define INSTALLPROPERTY_PATCHSTATEA "State"
310 static const WCHAR INSTALLPROPERTY_PATCHSTATEW[] ={'S','t','a','t','e',0};
311 #define INSTALLPROPERTY_PATCHSTATE WINELIB_NAME_AW(INSTALLPROPERTY_PATCHSTATE)
312
313 #define INSTALLPROPERTY_PATCHTYPEA "PatchType"
314 static const WCHAR INSTALLPROPERTY_PATCHTYPEW[] = {'P','a','t','c','h','T','y','p','e',0};
315 #define INSTALLPROPERTY_PATCHTYPE WINELIB_NAME_AW(INSTALLPROPERTY_PATCHTYPE)
316
317 #define INSTALLPROPERTY_LUAENABLEDA "LUAEnabled"
318 static const WCHAR INSTALLPROPERTY_LUAENABLEDW[] = {'L','U','A','E','n','a','b','l','e','d',0};
319 #define INSTALLPROPERTY_LUAENABLED WINELIB_NAME_AW(INSTALLPROPERTY_LUAENABLED)
320
321 #define INSTALLPROPERTY_DISPLAYNAMEA "DisplayName"
322 static const WCHAR INSTALLPROPERTY_DISPLAYNAMEW[] = {'D','i','s','p','l','a','y','N','a','m','e',0};
323 #define INSTALLPROPERTY_DISPLAYNAME WINELIB_NAME_AW(INSTALLPROPERTY_DISPLAYNAME)
324
325 #define INSTALLPROPERTY_MOREINFOURLA "MoreInfoURL"
326 static const WCHAR INSTALLPROPERTY_MOREINFOURLW[] = {'M','o','r','e','I','n','f','o','U','R','L',0};
327 #define INSTALLPROPERTY_MOREINFOURL WINELIB_NAME_AW(INSTALLPROPERTY_MOREINFOURL)
328
329 /* Source List Info */
330 #define INSTALLPROPERTY_LASTUSEDSOURCEA "LastUsedSource"
331 static const WCHAR INSTALLPROPERTY_LASTUSEDSOURCEW[] = {'L','a','s','t','U','s','e','d','S','o','u','r','c','e',0};
332 #define INSTALLPROPERTY_LASTUSEDSOURCE WINELIB_NAME_AW(INSTALLPROPERTY_LASTUSEDSOURCEW)
333
334 #define INSTALLPROPERTY_LASTUSEDTYPEA "LastUsedType"
335 static const WCHAR INSTALLPROPERTY_LASTUSEDTYPEW[] = {'L','a','s','t','U','s','e','d','T','y','p','e',0};
336 #define INSTALLPROPERTY_LASTUSEDTYPE WINELIB_NAME_AW(INSTALLPROPERTY_LASTUSEDTYPE)
337
338 #define INSTALLPROPERTY_MEDIAPACKAGEPATHA "MediaPackagePath"
339 static const WCHAR INSTALLPROPERTY_MEDIAPACKAGEPATHW[] = {'M','e','d','i','a','P','a','c','k','a','g','e','P','a','t','h',0};
340 #define INSTALLPROPERTY_MEDIAPACKAGEPATH WINELIB_NAME_AW(INSTALLPROPERTY_MEDIAPACKAGEPATH)
341
342 #define INSTALLPROPERTY_DISKPROMPTA "DiskPrompt"
343 static const WCHAR INSTALLPROPERTY_DISKPROMPTW[] = {'D','i','s','k','P','r','o','m','p','t',0};
344 #define INSTALLPROPERTY_DISKPROMPT WINELIB_NAME_AW(INSTALLPROPERTY_DISKPROMPT)
345
346 typedef INT (CALLBACK *INSTALLUI_HANDLERA)(LPVOID, UINT, LPCSTR);
347 typedef INT (CALLBACK *INSTALLUI_HANDLERW)(LPVOID, UINT, LPCWSTR);
348
349 UINT WINAPI MsiAdvertiseProductA(LPCSTR, LPCSTR, LPCSTR, LANGID);
350 UINT WINAPI MsiAdvertiseProductW(LPCWSTR, LPCWSTR, LPCWSTR, LANGID);
351 #define     MsiAdvertiseProduct WINELIB_NAME_AW(MsiAdvertiseProduct)
352
353 UINT WINAPI MsiAdvertiseProductExA(LPCSTR, LPCSTR, LPCSTR, LANGID, DWORD, DWORD);
354 UINT WINAPI MsiAdvertiseProductExW(LPCWSTR, LPCWSTR, LPCWSTR, LANGID, DWORD, DWORD);
355 #define     MsiAdvertiseProductEx WINELIB_NAME_AW(MsiAdvertiseProductEx)
356
357 UINT WINAPI MsiInstallProductA(LPCSTR, LPCSTR);
358 UINT WINAPI MsiInstallProductW(LPCWSTR, LPCWSTR);
359 #define     MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
360
361 UINT WINAPI MsiReinstallProductA(LPCSTR, DWORD);
362 UINT WINAPI MsiReinstallProductW(LPCWSTR, DWORD);
363 #define     MsiReinstallProduct WINELIB_NAME_AW(MsiReinstallProduct)
364
365 UINT WINAPI MsiApplyPatchA(LPCSTR, LPCSTR, INSTALLTYPE, LPCSTR);
366 UINT WINAPI MsiApplyPatchW(LPCWSTR, LPCWSTR, INSTALLTYPE, LPCWSTR);
367 #define     MsiApplyPatch WINELIB_NAME_AW(MsiApplyPatch)
368
369 UINT WINAPI MsiEnumProductsA(DWORD, LPSTR);
370 UINT WINAPI MsiEnumProductsW(DWORD, LPWSTR);
371 #define     MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
372
373 UINT WINAPI MsiEnumFeaturesA(LPCSTR, DWORD, LPSTR, LPSTR);
374 UINT WINAPI MsiEnumFeaturesW(LPCWSTR, DWORD, LPWSTR, LPWSTR);
375 #define     MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
376
377 UINT WINAPI MsiEnumComponentsA(DWORD, LPSTR);
378 UINT WINAPI MsiEnumComponentsW(DWORD, LPWSTR);
379 #define     MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
380
381 UINT WINAPI MsiEnumClientsA(LPCSTR, DWORD, LPSTR);
382 UINT WINAPI MsiEnumClientsW(LPCWSTR, DWORD, LPWSTR);
383 #define     MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
384
385 UINT WINAPI MsiOpenPackageA(LPCSTR, MSIHANDLE*);
386 UINT WINAPI MsiOpenPackageW(LPCWSTR, MSIHANDLE*);
387 #define     MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
388
389 UINT WINAPI MsiOpenPackageExA(LPCSTR, DWORD, MSIHANDLE*);
390 UINT WINAPI MsiOpenPackageExW(LPCWSTR, DWORD, MSIHANDLE*);
391 #define     MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
392
393 UINT WINAPI MsiOpenProductA(LPCSTR, MSIHANDLE*);
394 UINT WINAPI MsiOpenProductW(LPCWSTR, MSIHANDLE*);
395 #define     MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
396
397 UINT WINAPI MsiProvideComponentFromDescriptorA(LPCSTR,LPSTR,DWORD*,DWORD*);
398 UINT WINAPI MsiProvideComponentFromDescriptorW(LPCWSTR,LPWSTR,DWORD*,DWORD*);
399 #define     MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
400
401 UINT WINAPI MsiGetProductPropertyA(MSIHANDLE,LPCSTR,LPSTR,DWORD*);
402 UINT WINAPI MsiGetProductPropertyW(MSIHANDLE,LPCWSTR,LPWSTR,DWORD*);
403 #define     MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
404
405 UINT WINAPI MsiVerifyPackageA(LPCSTR);
406 UINT WINAPI MsiVerifyPackageW(LPCWSTR);
407 #define     MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
408
409 INSTALLSTATE WINAPI MsiQueryProductStateA(LPCSTR);
410 INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR);
411 #define      MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
412
413 UINT WINAPI MsiConfigureProductA(LPCSTR, int, INSTALLSTATE);
414 UINT WINAPI MsiConfigureProductW(LPCWSTR, int, INSTALLSTATE);
415 #define     MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
416
417 UINT WINAPI MsiConfigureProductExA(LPCSTR, int, INSTALLSTATE, LPCSTR);
418 UINT WINAPI MsiConfigureProductExW(LPCWSTR, int, INSTALLSTATE, LPCWSTR);
419 #define     MsiConfigureProductEx WINELIB_NAME_AW(MsiConfigureProductEx);
420
421 UINT WINAPI MsiConfigureFeatureA(LPCSTR, LPCSTR, INSTALLSTATE);
422 UINT WINAPI MsiConfigureFeatureW(LPCWSTR, LPCWSTR, INSTALLSTATE);
423 #define     MsiConfigureFeature WINELIB_NAME_AW(MsiConfigureFeature);
424
425 UINT WINAPI MsiGetProductCodeA(LPCSTR, LPSTR);
426 UINT WINAPI MsiGetProductCodeW(LPCWSTR, LPWSTR);
427 #define     MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
428
429 UINT WINAPI MsiGetProductInfoA(LPCSTR, LPCSTR, LPSTR, DWORD *);
430 UINT WINAPI MsiGetProductInfoW(LPCWSTR, LPCWSTR, LPWSTR, DWORD *);
431 #define     MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
432
433 UINT WINAPI MsiEnableLogA(DWORD, LPCSTR, DWORD);
434 UINT WINAPI MsiEnableLogW(DWORD, LPCWSTR, DWORD);
435 #define     MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
436
437 INSTALLUI_HANDLERA WINAPI MsiSetExternalUIA(INSTALLUI_HANDLERA, DWORD, LPVOID);
438 INSTALLUI_HANDLERW WINAPI MsiSetExternalUIW(INSTALLUI_HANDLERW, DWORD, LPVOID);
439 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
440
441 INSTALLSTATE WINAPI MsiGetComponentPathA(LPCSTR, LPCSTR, LPSTR, DWORD*);
442 INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR, LPCWSTR, LPWSTR, DWORD*);
443 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
444
445 INSTALLSTATE WINAPI MsiQueryFeatureStateA(LPCSTR, LPCSTR);
446 INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR, LPCWSTR);
447 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
448
449 UINT WINAPI MsiGetFeatureUsageA(LPCSTR, LPCSTR, DWORD*, WORD*);
450 UINT WINAPI MsiGetFeatureUsageW(LPCWSTR, LPCWSTR, DWORD*, WORD*);
451 #define MsiGetFeatureUsage WINELIB_NAME_AW(MsiGetFeatureUsage)
452
453 UINT WINAPI MsiEnumRelatedProductsA(LPCSTR, DWORD, DWORD, LPSTR);
454 UINT WINAPI MsiEnumRelatedProductsW(LPCWSTR, DWORD, DWORD, LPWSTR);
455 #define MsiEnumRelatedProducts WINELIB_NAME_AW(MsiEnumRelatedProducts)
456
457 UINT WINAPI MsiProvideAssemblyA(LPCSTR, LPCSTR, DWORD, DWORD, LPSTR, DWORD*);
458 UINT WINAPI MsiProvideAssemblyW(LPCWSTR, LPCWSTR, DWORD, DWORD, LPWSTR, DWORD*);
459 #define MsiProvideAssembly WINELIB_NAME_AW(MsiProvideAssembly)
460
461 UINT WINAPI MsiEnumComponentQualifiersA(LPSTR, DWORD, LPSTR, DWORD*, LPSTR, DWORD*);
462 UINT WINAPI MsiEnumComponentQualifiersW(LPWSTR, DWORD, LPWSTR, DWORD*, LPWSTR, DWORD*);
463 #define MsiEnumComponentQualifiers WINELIB_NAME_AW(MsiEnumComponentQualifiers)
464
465 UINT WINAPI MsiGetFileVersionA(LPCSTR, LPSTR, DWORD*, LPSTR, DWORD*);
466 UINT WINAPI MsiGetFileVersionW(LPCWSTR, LPWSTR, DWORD*, LPWSTR, DWORD*);
467 #define MsiGetFileVersion WINELIB_NAME_AW(MsiGetFileVersion)
468
469 UINT WINAPI MsiMessageBoxA(HWND, LPCSTR, LPCSTR, UINT, WORD, DWORD);
470 UINT WINAPI MsiMessageBoxW(HWND, LPCWSTR, LPCWSTR, UINT, WORD, DWORD);
471 #define MsiMessageBox WINELIB_NAME_AW(MsiMessageBox)
472
473 UINT WINAPI MsiProvideQualifiedComponentExA(LPCSTR, LPCSTR, DWORD, LPSTR, DWORD, DWORD, LPSTR, DWORD*);
474 UINT WINAPI MsiProvideQualifiedComponentExW(LPCWSTR, LPCWSTR, DWORD, LPWSTR, DWORD, DWORD, LPWSTR, DWORD*);
475 #define MsiProvideQualifiedComponentEx WINELIB_NAME_AW(MsiProvideQualifiedComponentEx)
476
477 UINT WINAPI MsiProvideQualifiedComponentA(LPCSTR, LPCSTR, DWORD, LPSTR, DWORD*);
478 UINT WINAPI MsiProvideQualifiedComponentW(LPCWSTR, LPCWSTR, DWORD, LPWSTR, DWORD*);
479 #define MsiProvideQualifiedComponent WINELIB_NAME_AW(MsiProvideQualifiedComponent)
480
481 USERINFOSTATE WINAPI MsiGetUserInfoA(LPCSTR, LPSTR, DWORD*, LPSTR, DWORD*, LPSTR, DWORD*);
482 USERINFOSTATE WINAPI MsiGetUserInfoW(LPCWSTR, LPWSTR, DWORD*, LPWSTR, DWORD*, LPWSTR, DWORD*);
483 #define MsiGetUserInfo WINELIB_NAME_AW(MsiGetUserInfo)
484
485 UINT WINAPI MsiCollectUserInfoA(LPCSTR);
486 UINT WINAPI MsiCollectUserInfoW(LPCWSTR);
487 #define MsiCollectUserInfo WINELIB_NAME_AW(MsiCollectUserInfo)
488
489 UINT WINAPI MsiReinstallFeatureA(LPCSTR, LPCSTR, DWORD);
490 UINT WINAPI MsiReinstallFeatureW(LPCWSTR, LPCWSTR, DWORD);
491 #define MsiReinstallFeature WINELIB_NAME_AW(MsiReinstallFeature)
492
493 UINT WINAPI MsiGetShortcutTargetA(LPCSTR, LPSTR, LPSTR, LPSTR);
494 UINT WINAPI MsiGetShortcutTargetW(LPCWSTR, LPWSTR, LPWSTR, LPWSTR);
495 #define MsiGetShortcutTarget WINELIB_NAME_AW(MsiGetShortcutTarget)
496
497 INSTALLSTATE WINAPI MsiUseFeatureW(LPCWSTR, LPCWSTR);
498 INSTALLSTATE WINAPI MsiUseFeatureA(LPCSTR, LPCSTR);
499 #define MsiUseFeature WINELIB_NAME_AW(MsiUseFeature)
500
501 INSTALLSTATE WINAPI MsiUseFeatureExW(LPCWSTR, LPCWSTR, DWORD, DWORD);
502 INSTALLSTATE WINAPI MsiUseFeatureExA(LPCSTR, LPCSTR, DWORD, DWORD);
503 #define MsiUseFeatureEx WINELIB_NAME_AW(MsiUseFeatureEx)
504
505 HRESULT WINAPI MsiGetFileSignatureInformationA(LPCSTR, DWORD, PCCERT_CONTEXT*, BYTE*, DWORD*);
506 HRESULT WINAPI MsiGetFileSignatureInformationW(LPCWSTR, DWORD, PCCERT_CONTEXT*, BYTE*, DWORD*);
507 #define MsiGetFileSignatureInformation WINELIB_NAME_AW(MsiGetFileSignatureInformation)
508
509 INSTALLSTATE WINAPI MsiLocateComponentA(LPCSTR, LPSTR, DWORD *);
510 INSTALLSTATE WINAPI MsiLocateComponentW(LPCWSTR, LPWSTR, DWORD *);
511 #define  MsiLocateComponent WINELIB_NAME_AW(MsiLocateComponent)
512
513 UINT WINAPI MsiSourceListGetInfoA(LPCSTR, LPCSTR, MSIINSTALLCONTEXT, DWORD, LPCSTR, LPSTR, LPDWORD);
514 UINT WINAPI MsiSourceListGetInfoW(LPCWSTR, LPCWSTR, MSIINSTALLCONTEXT, DWORD, LPCWSTR, LPWSTR, LPDWORD);
515 #define     MsiSourceListGetInfo WINELIB_NAME_AW(MsiSourceListGetInfo)
516
517 UINT WINAPI MsiSourceListSetInfoA(LPCSTR, LPCSTR, MSIINSTALLCONTEXT, DWORD, LPCSTR, LPCSTR);
518 UINT WINAPI MsiSourceListSetInfoW(LPCWSTR, LPCWSTR, MSIINSTALLCONTEXT, DWORD, LPCWSTR, LPCWSTR);
519 #define     MsiSourceListSetInfo WINELIB_NAME_AW(MsiSourceListSetInfo)
520
521 UINT WINAPI MsiSourceListAddSourceExA(LPCSTR, LPCSTR, MSIINSTALLCONTEXT, DWORD, LPCSTR, DWORD);
522 UINT WINAPI MsiSourceListAddSourceExW(LPCWSTR, LPCWSTR, MSIINSTALLCONTEXT, DWORD, LPCWSTR, DWORD);
523 #define     MsiSourceListAddSourceEx WINELIB_NAME_AW(MsiSourceListAddSourceEx)
524
525 UINT WINAPI MsiSourceListAddMediaDiskA(LPCSTR, LPCSTR, MSIINSTALLCONTEXT, DWORD, DWORD, LPCSTR, LPCSTR);
526 UINT WINAPI MsiSourceListAddMediaDiskW(LPCWSTR, LPCWSTR, MSIINSTALLCONTEXT, DWORD, DWORD, LPCWSTR, LPCWSTR);
527 #define     MsiSourceListAddMediaDisk WINELIB_NAME_AW(MsiSourceListAddMediaDisk)
528
529 UINT WINAPI MsiEnumPatchesA(LPCSTR, DWORD, LPSTR, LPSTR, DWORD*);
530 UINT WINAPI MsiEnumPatchesW(LPCWSTR, DWORD, LPWSTR, LPWSTR, DWORD*);
531 #define     MsiEnumPatches WINELIB_NAME_AW(MsiEnumPatches)
532
533 /* Non Unicode */
534 UINT WINAPI MsiCloseHandle(MSIHANDLE);
535 UINT WINAPI MsiCloseAllHandles(void);
536 INSTALLUILEVEL WINAPI MsiSetInternalUI(INSTALLUILEVEL, HWND*);
537
538 #ifdef __cplusplus
539 }
540 #endif
541
542 #endif /* __WINE_MSI_H */