include: Add NTSYSAPI to the exported ntdll functions.
[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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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_NOTUSED = -7,
35     INSTALLSTATE_BADCONFIG = -6,
36     INSTALLSTATE_INCOMPLETE = -5,
37     INSTALLSTATE_SOURCEABSENT = -4,
38     INSTALLSTATE_MOREDATA = -3,
39     INSTALLSTATE_INVALIDARG = -2,
40     INSTALLSTATE_UNKNOWN = -1,
41     INSTALLSTATE_BROKEN = 0,
42     INSTALLSTATE_ADVERTISED = 1,
43     INSTALLSTATE_ABSENT = 2,
44     INSTALLSTATE_LOCAL = 3,
45     INSTALLSTATE_SOURCE = 4,
46     INSTALLSTATE_DEFAULT = 5
47 } INSTALLSTATE;
48
49 typedef enum tagINSTALLUILEVEL
50 {
51     INSTALLUILEVEL_NOCHANGE = 0,
52     INSTALLUILEVEL_DEFAULT = 1,
53     INSTALLUILEVEL_NONE = 2,
54     INSTALLUILEVEL_BASIC = 3,
55     INSTALLUILEVEL_REDUCED = 4,
56     INSTALLUILEVEL_FULL = 5,
57     INSTALLUILEVEL_HIDECANCEL = 0x20,
58     INSTALLUILEVEL_PROGRESSONLY = 0x40,
59     INSTALLUILEVEL_ENDDIALOG = 0x80,
60     INSTALLUILEVEL_SOURCERESONLY = 0x100
61 } INSTALLUILEVEL;
62
63 typedef enum tagUSERINFOSTATE
64 {
65     USERINFOSTATE_MOREDATA = -3,
66     USERINFOSTATE_INVALIDARG = -2,
67     USERINFOSTATE_UNKNOWN = -1,
68     USERINFOSTATE_ABSENT = 0,
69     USERINFOSTATE_PRESENT = 1,
70 } USERINFOSTATE;
71
72 typedef enum tagINSTALLLEVEL
73 {
74     INSTALLLEVEL_DEFAULT = 0,
75     INSTALLLEVEL_MINIMUM = 1,
76     INSTALLLEVEL_MAXIMUM = 0xFFFF
77 } INSTALLLEVEL;
78
79 typedef enum tagINSTALLMESSAGE
80 {
81     INSTALLMESSAGE_FATALEXIT = 0,
82     INSTALLMESSAGE_ERROR = 0x01000000,
83     INSTALLMESSAGE_WARNING = 0x02000000,
84     INSTALLMESSAGE_USER = 0x03000000,
85     INSTALLMESSAGE_INFO = 0x04000000,
86     INSTALLMESSAGE_FILESINUSE = 0x05000000,
87     INSTALLMESSAGE_RESOLVESOURCE = 0x06000000,
88     INSTALLMESSAGE_OUTOFDISKSPACE = 0x07000000,
89     INSTALLMESSAGE_ACTIONSTART = 0x08000000,
90     INSTALLMESSAGE_ACTIONDATA = 0x09000000,
91     INSTALLMESSAGE_PROGRESS = 0x0a000000,
92     INSTALLMESSAGE_COMMONDATA = 0x0b000000,
93     INSTALLMESSAGE_INITIALIZE = 0x0c000000,
94     INSTALLMESSAGE_TERMINATE = 0x0d000000,
95     INSTALLMESSAGE_SHOWDIALOG = 0x0e000000
96 } INSTALLMESSAGE;
97
98 typedef enum tagREINSTALLMODE
99 {
100     REINSTALLMODE_REPAIR = 0x00000001,
101     REINSTALLMODE_FILEMISSING = 0x00000002,
102     REINSTALLMODE_FILEOLDERVERSION = 0x00000004,
103     REINSTALLMODE_FILEEQUALVERSION = 0x00000008,
104     REINSTALLMODE_FILEEXACT = 0x00000010,
105     REINSTALLMODE_FILEVERIFY = 0x00000020,
106     REINSTALLMODE_FILEREPLACE = 0x00000040,
107     REINSTALLMODE_MACHINEDATA = 0x00000080,
108     REINSTALLMODE_USERDATA = 0x00000100,
109     REINSTALLMODE_SHORTCUT = 0x00000200,
110     REINSTALLMODE_PACKAGE = 0x00000400
111 } REINSTALLMODE;
112
113 typedef enum tagINSTALLLOGMODE
114 {
115     INSTALLLOGMODE_FATALEXIT      = (1 << (INSTALLMESSAGE_FATALEXIT >> 24)),
116     INSTALLLOGMODE_ERROR          = (1 << (INSTALLMESSAGE_ERROR >> 24)),
117     INSTALLLOGMODE_WARNING        = (1 << (INSTALLMESSAGE_WARNING >> 24)),
118     INSTALLLOGMODE_USER           = (1 << (INSTALLMESSAGE_USER >> 24)),
119     INSTALLLOGMODE_INFO           = (1 << (INSTALLMESSAGE_INFO >> 24)),
120     INSTALLLOGMODE_RESOLVESOURCE  = (1 << (INSTALLMESSAGE_RESOLVESOURCE >> 24)),
121     INSTALLLOGMODE_OUTOFDISKSPACE = (1 << (INSTALLMESSAGE_OUTOFDISKSPACE >> 24)),
122     INSTALLLOGMODE_ACTIONSTART    = (1 << (INSTALLMESSAGE_ACTIONSTART >> 24)),
123     INSTALLLOGMODE_ACTIONDATA     = (1 << (INSTALLMESSAGE_ACTIONDATA >> 24)),
124     INSTALLLOGMODE_COMMONDATA     = (1 << (INSTALLMESSAGE_COMMONDATA >> 24)),
125     INSTALLLOGMODE_PROPERTYDUMP   = (1 << (INSTALLMESSAGE_PROGRESS >> 24)),
126     INSTALLLOGMODE_VERBOSE        = (1 << (INSTALLMESSAGE_INITIALIZE >> 24)),
127     INSTALLLOGMODE_EXTRADEBUG     = (1 << (INSTALLMESSAGE_TERMINATE >> 24)),
128     INSTALLLOGMODE_PROGRESS       = (1 << (INSTALLMESSAGE_PROGRESS >> 24)),
129     INSTALLLOGMODE_INITIALIZE     = (1 << (INSTALLMESSAGE_INITIALIZE >> 24)),
130     INSTALLLOGMODE_TERMINATE      = (1 << (INSTALLMESSAGE_TERMINATE >> 24)),
131     INSTALLLOGMODE_SHOWDIALOG     = (1 << (INSTALLMESSAGE_SHOWDIALOG >> 24))
132 } INSTALLLOGMODE;
133
134 typedef enum tagINSTALLLOGATTRIBUTES
135 {
136     INSTALLLOGATTRIBUTES_APPEND = 0x00000001,
137     INSTALLLOGATTRIBUTES_FLUSHEACHLINE = 0x00000002
138 } INSTALLLOGATTRIBUTES;
139
140 typedef enum tagINSTALLMODE
141 {
142     INSTALLMODE_NODETECTION_ANY     = -4,
143     INSTALLMODE_NOSOURCERESOLUTION  = -3,
144     INSTALLMODE_NODETECTION         = -2,
145     INSTALLMODE_EXISTING            = -1,
146     INSTALLMODE_DEFAULT             = 0
147 } INSTALLMODE;
148
149 typedef enum tagADVERTISEFLAGS
150 {
151     ADVERTISEFLAGS_MACHINEASSIGN = 0,
152     ADVERTISEFLAGS_USERASSIGN = 1
153 } ADVERTISEFLAGS;
154
155 typedef enum tagSCRIPTFLAGS
156 {
157     SCRIPTFLAGS_CACHEINFO = 1,
158     SCRIPTFLAGS_SHORTCUTS = 4,
159     SCRIPTFLAGS_MACHINEASSIGN = 8,
160     SCRIPTFLAGS_REGDATA_APPINFO = 0x10,
161     SCRIPTFLAGS_REGDATA_CNFGINFO = 0x20,
162     SCRIPTFLAGS_VALIDATE_TRANSFORMS_LIST = 0x40,
163     SCRIPTFLAGS_REGDATA_CLASSINFO = 0x80,
164     SCRIPTFLAGS_REGDATA_EXTENSIONINFO = 0x100,
165 } SCRIPTFLAGS;
166
167 typedef enum tagINSTALLTYPE
168 {
169     INSTALLTYPE_DEFAULT = 0,
170     INSTALLTYPE_NETWORK_IMAGE = 1,
171     INSTALLTYPE_SINGLE_INSTANCE = 2,
172 } INSTALLTYPE;
173
174 typedef enum tagMSIINSTALLCONTEXT
175 {
176     MSIINSTALLCONTEXT_FIRSTVISIBLE  =   0,
177     MSIINSTALLCONTEXT_NONE          =   0,
178     MSIINSTALLCONTEXT_USERMANAGED   =   1,
179     MSIINSTALLCONTEXT_USERUNMANAGED =   2,
180     MSIINSTALLCONTEXT_MACHINE       =   4,
181     MSIINSTALLCONTEXT_ALL           = (MSIINSTALLCONTEXT_USERMANAGED | MSIINSTALLCONTEXT_USERUNMANAGED | MSIINSTALLCONTEXT_MACHINE),
182     MSIINSTALLCONTEXT_ALLUSERMANAGED=   8,
183 } MSIINSTALLCONTEXT;
184
185 typedef enum tagMSISOURCETYPE
186 {
187     MSISOURCETYPE_UNKNOWN = 0x00000000L,
188     MSISOURCETYPE_NETWORK = 0x00000001L,
189     MSISOURCETYPE_URL     = 0x00000002L,
190     MSISOURCETYPE_MEDIA   = 0x00000004
191 } MSISOURCETYPE;
192
193 typedef enum tagMSICODE
194 {
195     MSICODE_PRODUCT = 0x00000000L,
196     MSICODE_PATCH = 0x40000000L
197 } MSICODE;
198
199 typedef struct _MSIFILEHASHINFO {
200     ULONG dwFileHashInfoSize;
201     ULONG dwData[4];
202 } MSIFILEHASHINFO, *PMSIFILEHASHINFO;
203
204 #define MAX_FEATURE_CHARS 38
205
206 /* Strings defined in msi.h */
207 /* Advertised Information */
208
209 #define INSTALLPROPERTY_PACKAGENAMEA "PackageName"
210 static const WCHAR INSTALLPROPERTY_PACKAGENAMEW[] = {'P','a','c','k','a','g','e','N','a','m','e',0};
211 #define INSTALLPROPERTY_PACKAGENAME WINELIB_NAME_AW(INSTALLPROPERTY_PACKAGENAME)
212
213 #define INSTALLPROPERTY_TRANSFORMSA "Transforms"
214 static const WCHAR INSTALLPROPERTY_TRANSFORMSW[] = {'T','r','a','n','s','f','o','r','m','s',0};
215 #define INSTALLPROPERTY_TRANSFORMS WINELIB_NAME_AW(INSTALLPROPERTY_TRANSFORMS)
216
217 #define INSTALLPROPERTY_LANGUAGEA "Language"
218 static const WCHAR INSTALLPROPERTY_LANGUAGEW[] = {'L','a','n','g','u','a','g','e',0};
219 #define INSTALLPROPERTY_LANGUAGE WINELIB_NAME_AW(INSTALLPROPERTY_LANGUAGE)
220
221 #define INSTALLPROPERTY_PRODUCTNAMEA "ProductName"
222 static const WCHAR INSTALLPROPERTY_PRODUCTNAMEW[] = {'P','r','o','d','u','c','t','N','a','m','e',0};
223 #define INSTALLPROPERTY_PRODUCTNAME WINELIB_NAME_AW(INSTALLPROPERTY_PRODUCTNAME)
224
225 #define INSTALLPROPERTY_ASSIGNMENTTYPEA "AssignmentType"
226 static const WCHAR INSTALLPROPERTY_ASSIGNMENTTYPEW[] = {'A','s','s','i','g','n','m','e','n','t','T','y','p','e',0};
227 #define INSTALLPROPERTY_ASSIGNMENTTYPE WINELIB_NAME_AW(INSTALLPROPERTY_ASSIGNMENTTYPE)
228
229 #define INSTALLPROPERTY_PACKAGECODEA "PackageCode"
230 static const WCHAR INSTALLPROPERTY_PACKAGECODEW[] = {'P','a','c','k','a','g','e','C','o','d','e',0};
231 #define INSTALLPROPERTY_PACKAGECODE WINELIB_NAME_AW(INSTALLPROPERTY_PACKAGECODE)
232
233 #define INSTALLPROPERTY_VERSIONA "Version"
234 static const WCHAR INSTALLPROPERTY_VERSIONW[]= {'V','e','r','s','i','o','n',0};
235 #define INSTALLPROPERTY_VERSION WINELIB_NAME_AW(INSTALLPROPERTY_VERSION)
236
237 /* MSI version 1.1 and above */
238
239 #define INSTALLPROPERTY_PRODUCTICONA "ProductIcon"
240 static const WCHAR INSTALLPROPERTY_PRODUCTICONW[]  = {'P','r','o','d','u','c','t','I','c','o','n',0};
241 #define INSTALLPROPERTY_PRODUCTICON WINELIB_NAME_AW(INSTALLPROPERTY_PRODUCTICON)
242
243 /* MSI version 1.5 and above */
244 #define INSTALLPROPERTY_INSTANCETYPEA "InstanceType"
245 static const WCHAR INSTALLPROPERTY_INSTANCETYPEW[] = {'I','n','s','t','a','n','c','e','T','y','p','e',0};
246 #define INSTALLPROPERTY_INSTANCETYPE WINELIB_NAME_AW(INSTALLPROPERTY_INSTANCETYPE)
247
248 /* MSI version 3 and above */
249 #define INSTALLPROPERTY_AUTHORIZED_LUA_APPA "AuthorizedLUAApp"
250 static const WCHAR INSTALLPROPERTY_AUTHORIZED_LUA_APPW[] = {'A','u','t','h','o','r','i','z','e','d','L','U','A','A','p','p',0};
251 #define INSTALLPROPERTY_AUTHORIZED_LUA_APP WINELIB_NAME_AW(INSTALLPROPERTY_AUTHORIZED_LUA_APP)
252
253
254 /* Installed Information */
255 #define INSTALLPROPERTY_INSTALLEDPRODUCTNAMEA "InstalledProductName"
256 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};
257 #define INSTALLPROPERTY_INSTALLEDPRODUCTNAME WINELIB_NAME_AW(INSTALLPROPERTY_INSTALLEDPRODUCTNAME)
258
259 #define INSTALLPROPERTY_VERSIONSTRINGA "VersionString"
260 static const WCHAR INSTALLPROPERTY_VERSIONSTRINGW[] = {'V','e','r','s','i','o','n','S','t','r','i','n','g',0};
261 #define INSTALLPROPERTY_VERSIONSTRING WINELIB_NAME_AW(INSTALLPROPERTY_VERSIONSTRING)
262
263 #define INSTALLPROPERTY_HELPLINKA "HelpLink"
264 static const WCHAR INSTALLPROPERTY_HELPLINKW[] = {'H','e','l','p','L','i','n','k',0};
265 #define INSTALLPROPERTY_HELPLINK WINELIB_NAME_AW(INSTALLPROPERTY_HELPLINK)
266
267 #define INSTALLPROPERTY_HELPTELEPHONEA "HelpTelephone"
268 static const WCHAR INSTALLPROPERTY_HELPTELEPHONEW[] = {'H','e','l','p','T','e','l','e','p','h','o','n','e',0};
269 #define INSTALLPROPERTY_HELPTELEPHONE WINELIB_NAME_AW(INSTALLPROPERTY_HELPTELEPHONE)
270
271 #define INSTALLPROPERTY_INSTALLLOCATIONA "InstallLocation"
272 static const WCHAR INSTALLPROPERTY_INSTALLLOCATIONW[] = {'I','n','s','t','a','l','l','L','o','c','a','t','i','o','n',0};
273 #define INSTALLPROPERTY_INSTALLLOCATION WINELIB_NAME_AW(INSTALLPROPERTY_INSTALLLOCATION)
274
275 #define INSTALLPROPERTY_INSTALLSOURCEA "InstallSource"
276 static const WCHAR INSTALLPROPERTY_INSTALLSOURCEW[] = {'I','n','s','t','a','l','l','S','o','u','r','c','e',0};
277 #define INSTALLPROPERTY_INSTALLSOURCE WINELIB_NAME_AW(INSTALLPROPERTY_INSTALLSOURCE)
278
279 #define INSTALLPROPERTY_INSTALLDATEA "InstallDate"
280 static const WCHAR INSTALLPROPERTY_INSTALLDATEW[] = {'I','n','s','t','a','l','l','D','a','t','e',0};
281 #define INSTALLPROPERTY_INSTALLDATE WINELIB_NAME_AW(INSTALLPROPERTY_INSTALLDATE)
282
283 #define INSTALLPROPERTY_PUBLISHERA "Publisher"
284 static const WCHAR INSTALLPROPERTY_PUBLISHERW[] ={'P','u','b','l','i','s','h','e','r',0};
285 #define INSTALLPROPERTY_PUBLISHER WINELIB_NAME_AW(INSTALLPROPERTY_PUBLISHER)
286
287 #define INSTALLPROPERTY_LOCALPACKAGEA "LocalPackage"
288 static const WCHAR INSTALLPROPERTY_LOCALPACKAGEW[] = {'L','o','c','a','l','P','a','c','k','a','g','e',0};
289 #define INSTALLPROPERTY_LOCALPACKAGE WINELIB_NAME_AW(INSTALLPROPERTY_LOCALPACKAGE)
290
291 #define INSTALLPROPERTY_URLINFOABOUTA "URLInfoAbout"
292 static const WCHAR INSTALLPROPERTY_URLINFOABOUTW[] = {'U','R','L','I','n','f','o','A','b','o','u','t',0};
293 #define INSTALLPROPERTY_URLINFOABOUT WINELIB_NAME_AW(INSTALLPROPERTY_URLINFOABOUT)
294
295 #define INSTALLPROPERTY_URLUPDATEINFOA "URLUpdateInfo"
296 static const WCHAR INSTALLPROPERTY_URLUPDATEINFOW[] = {'U','R','L','U','p','d','a','t','e','I','n','f','o',0};
297 #define INSTALLPROPERTY_URLUPDATEINFO WINELIB_NAME_AW(INSTALLPROPERTY_URLUPDATEINFO)
298
299 #define INSTALLPROPERTY_VERSIONMINORA "VersionMinor"
300 static const WCHAR INSTALLPROPERTY_VERSIONMINORW[] = {'V','e','r','s','i','o','n','M','i','n','o','r',0};
301 #define INSTALLPROPERTY_VERSIONMINOR WINELIB_NAME_AW(INSTALLPROPERTY_VERSIONMINOR)
302
303 #define INSTALLPROPERTY_VERSIONMAJORA "VersionMajor"
304 static const WCHAR INSTALLPROPERTY_VERSIONMAJORW[] = {'V','e','r','s','i','o','n','M','a','j','o','r',0};
305 #define INSTALLPROPERTY_VERSIONMAJOR WINELIB_NAME_AW(INSTALLPROPERTY_VERSIONMAJOR)
306
307 #define INSTALLPROPERTY_PRODUCTIDA "ProductID"
308 static const WCHAR INSTALLPROPERTY_PRODUCTIDW[] = {'P','r','o','d','u','c','t','I','D',0};
309 #define INSTALLPROPERTY_PRODUCTID WINELIB_NAME_AW(INSTALLPROPERTY_PRODUCTID)
310
311 #define INSTALLPROPERTY_REGCOMPANYA "RegCompany"
312 static const WCHAR INSTALLPROPERTY_REGCOMPANYW[] = {'R','e','g','C','o','m','p','a','n','y',0};
313 #define INSTALLPROPERTY_REGCOMPANY WINELIB_NAME_AW(INSTALLPROPERTY_REGCOMPANY)
314
315 #define INSTALLPROPERTY_REGOWNERA "RegOwner"
316 static const WCHAR INSTALLPROPERTY_REGOWNERW[] = {'R','e','g','O','w','n','e','r',0};
317 #define INSTALLPROPERTY_REGOWNER WINELIB_NAME_AW(INSTALLPROPERTY_REGOWNER)
318
319 /* MSI Version 3.0 and greater */
320 #define INSTALLPROPERTY_UNINSTALLABLEA "Uninstallable"
321 static const WCHAR INSTALLPROPERTY_UNINSTALLABLEW[] = {'U','n','i','n','s','t','a','l','l','a','b','l','e',0};
322 #define INSTALLPROPERTY_UNINSTALLABLE WINELIB_NAME_AW(INSTALLPROPERTY_UNINSTALLABLE)
323
324 #define INSTALLPROPERTY_PRODUCTSTATEA "State"
325 static const WCHAR INSTALLPROPERTY_PRODUCTSTATEW[] = {'S','t','a','t','e',0};
326 #define INSTALLPROPERTY_PRODUCTSTATE WINELIB_NAME_AW(INSTALLPROPERTY_PRODUCTSTATE)
327
328 #define INSTALLPROPERTY_PATCHSTATEA "State"
329 static const WCHAR INSTALLPROPERTY_PATCHSTATEW[] ={'S','t','a','t','e',0};
330 #define INSTALLPROPERTY_PATCHSTATE WINELIB_NAME_AW(INSTALLPROPERTY_PATCHSTATE)
331
332 #define INSTALLPROPERTY_PATCHTYPEA "PatchType"
333 static const WCHAR INSTALLPROPERTY_PATCHTYPEW[] = {'P','a','t','c','h','T','y','p','e',0};
334 #define INSTALLPROPERTY_PATCHTYPE WINELIB_NAME_AW(INSTALLPROPERTY_PATCHTYPE)
335
336 #define INSTALLPROPERTY_LUAENABLEDA "LUAEnabled"
337 static const WCHAR INSTALLPROPERTY_LUAENABLEDW[] = {'L','U','A','E','n','a','b','l','e','d',0};
338 #define INSTALLPROPERTY_LUAENABLED WINELIB_NAME_AW(INSTALLPROPERTY_LUAENABLED)
339
340 #define INSTALLPROPERTY_DISPLAYNAMEA "DisplayName"
341 static const WCHAR INSTALLPROPERTY_DISPLAYNAMEW[] = {'D','i','s','p','l','a','y','N','a','m','e',0};
342 #define INSTALLPROPERTY_DISPLAYNAME WINELIB_NAME_AW(INSTALLPROPERTY_DISPLAYNAME)
343
344 #define INSTALLPROPERTY_MOREINFOURLA "MoreInfoURL"
345 static const WCHAR INSTALLPROPERTY_MOREINFOURLW[] = {'M','o','r','e','I','n','f','o','U','R','L',0};
346 #define INSTALLPROPERTY_MOREINFOURL WINELIB_NAME_AW(INSTALLPROPERTY_MOREINFOURL)
347
348 /* Source List Info */
349 #define INSTALLPROPERTY_LASTUSEDSOURCEA "LastUsedSource"
350 static const WCHAR INSTALLPROPERTY_LASTUSEDSOURCEW[] = {'L','a','s','t','U','s','e','d','S','o','u','r','c','e',0};
351 #define INSTALLPROPERTY_LASTUSEDSOURCE WINELIB_NAME_AW(INSTALLPROPERTY_LASTUSEDSOURCEW)
352
353 #define INSTALLPROPERTY_LASTUSEDTYPEA "LastUsedType"
354 static const WCHAR INSTALLPROPERTY_LASTUSEDTYPEW[] = {'L','a','s','t','U','s','e','d','T','y','p','e',0};
355 #define INSTALLPROPERTY_LASTUSEDTYPE WINELIB_NAME_AW(INSTALLPROPERTY_LASTUSEDTYPE)
356
357 #define INSTALLPROPERTY_MEDIAPACKAGEPATHA "MediaPackagePath"
358 static const WCHAR INSTALLPROPERTY_MEDIAPACKAGEPATHW[] = {'M','e','d','i','a','P','a','c','k','a','g','e','P','a','t','h',0};
359 #define INSTALLPROPERTY_MEDIAPACKAGEPATH WINELIB_NAME_AW(INSTALLPROPERTY_MEDIAPACKAGEPATH)
360
361 #define INSTALLPROPERTY_DISKPROMPTA "DiskPrompt"
362 static const WCHAR INSTALLPROPERTY_DISKPROMPTW[] = {'D','i','s','k','P','r','o','m','p','t',0};
363 #define INSTALLPROPERTY_DISKPROMPT WINELIB_NAME_AW(INSTALLPROPERTY_DISKPROMPT)
364
365 typedef INT (CALLBACK *INSTALLUI_HANDLERA)(LPVOID, UINT, LPCSTR);
366 typedef INT (CALLBACK *INSTALLUI_HANDLERW)(LPVOID, UINT, LPCWSTR);
367
368 UINT WINAPI MsiAdvertiseProductA(LPCSTR, LPCSTR, LPCSTR, LANGID);
369 UINT WINAPI MsiAdvertiseProductW(LPCWSTR, LPCWSTR, LPCWSTR, LANGID);
370 #define     MsiAdvertiseProduct WINELIB_NAME_AW(MsiAdvertiseProduct)
371
372 UINT WINAPI MsiAdvertiseProductExA(LPCSTR, LPCSTR, LPCSTR, LANGID, DWORD, DWORD);
373 UINT WINAPI MsiAdvertiseProductExW(LPCWSTR, LPCWSTR, LPCWSTR, LANGID, DWORD, DWORD);
374 #define     MsiAdvertiseProductEx WINELIB_NAME_AW(MsiAdvertiseProductEx)
375
376 UINT WINAPI MsiInstallProductA(LPCSTR, LPCSTR);
377 UINT WINAPI MsiInstallProductW(LPCWSTR, LPCWSTR);
378 #define     MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
379
380 UINT WINAPI MsiReinstallProductA(LPCSTR, DWORD);
381 UINT WINAPI MsiReinstallProductW(LPCWSTR, DWORD);
382 #define     MsiReinstallProduct WINELIB_NAME_AW(MsiReinstallProduct)
383
384 UINT WINAPI MsiApplyPatchA(LPCSTR, LPCSTR, INSTALLTYPE, LPCSTR);
385 UINT WINAPI MsiApplyPatchW(LPCWSTR, LPCWSTR, INSTALLTYPE, LPCWSTR);
386 #define     MsiApplyPatch WINELIB_NAME_AW(MsiApplyPatch)
387
388 UINT WINAPI MsiEnumProductsA(DWORD, LPSTR);
389 UINT WINAPI MsiEnumProductsW(DWORD, LPWSTR);
390 #define     MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
391
392 UINT WINAPI MsiEnumProductsExA(LPCSTR, LPCSTR, DWORD, DWORD, CHAR[39], MSIINSTALLCONTEXT*, LPSTR, LPDWORD);
393 UINT WINAPI MsiEnumProductsExW(LPCWSTR, LPCWSTR, DWORD, DWORD, WCHAR[39], MSIINSTALLCONTEXT*, LPWSTR, LPDWORD);
394 #define     MsiEnumProductsEx WINELIB_NAME_AW(MsiEnumProductsEx)
395
396 UINT WINAPI MsiEnumFeaturesA(LPCSTR, DWORD, LPSTR, LPSTR);
397 UINT WINAPI MsiEnumFeaturesW(LPCWSTR, DWORD, LPWSTR, LPWSTR);
398 #define     MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
399
400 UINT WINAPI MsiEnumComponentsA(DWORD, LPSTR);
401 UINT WINAPI MsiEnumComponentsW(DWORD, LPWSTR);
402 #define     MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
403
404 UINT WINAPI MsiEnumClientsA(LPCSTR, DWORD, LPSTR);
405 UINT WINAPI MsiEnumClientsW(LPCWSTR, DWORD, LPWSTR);
406 #define     MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
407
408 UINT WINAPI MsiOpenPackageA(LPCSTR, MSIHANDLE*);
409 UINT WINAPI MsiOpenPackageW(LPCWSTR, MSIHANDLE*);
410 #define     MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
411
412 UINT WINAPI MsiOpenPackageExA(LPCSTR, DWORD, MSIHANDLE*);
413 UINT WINAPI MsiOpenPackageExW(LPCWSTR, DWORD, MSIHANDLE*);
414 #define     MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
415
416 UINT WINAPI MsiOpenProductA(LPCSTR, MSIHANDLE*);
417 UINT WINAPI MsiOpenProductW(LPCWSTR, MSIHANDLE*);
418 #define     MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
419
420 UINT WINAPI MsiGetProductPropertyA(MSIHANDLE,LPCSTR,LPSTR,LPDWORD);
421 UINT WINAPI MsiGetProductPropertyW(MSIHANDLE,LPCWSTR,LPWSTR,LPDWORD);
422 #define     MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
423
424 UINT WINAPI MsiVerifyPackageA(LPCSTR);
425 UINT WINAPI MsiVerifyPackageW(LPCWSTR);
426 #define     MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
427
428 UINT WINAPI MsiQueryComponentStateA(LPCSTR,LPCSTR,MSIINSTALLCONTEXT,LPCSTR,INSTALLSTATE*);
429 UINT WINAPI MsiQueryComponentStateW(LPCWSTR,LPCWSTR,MSIINSTALLCONTEXT,LPCWSTR,INSTALLSTATE*);
430 #define     MsiQueryComponentState WINELIB_NAME_AW(MsiQueryComponentState)
431
432 INSTALLSTATE WINAPI MsiQueryProductStateA(LPCSTR);
433 INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR);
434 #define      MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
435
436 UINT WINAPI MsiConfigureProductA(LPCSTR, int, INSTALLSTATE);
437 UINT WINAPI MsiConfigureProductW(LPCWSTR, int, INSTALLSTATE);
438 #define     MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
439
440 UINT WINAPI MsiConfigureProductExA(LPCSTR, int, INSTALLSTATE, LPCSTR);
441 UINT WINAPI MsiConfigureProductExW(LPCWSTR, int, INSTALLSTATE, LPCWSTR);
442 #define     MsiConfigureProductEx WINELIB_NAME_AW(MsiConfigureProductEx);
443
444 UINT WINAPI MsiConfigureFeatureA(LPCSTR, LPCSTR, INSTALLSTATE);
445 UINT WINAPI MsiConfigureFeatureW(LPCWSTR, LPCWSTR, INSTALLSTATE);
446 #define     MsiConfigureFeature WINELIB_NAME_AW(MsiConfigureFeature);
447
448 UINT WINAPI MsiGetProductCodeA(LPCSTR, LPSTR);
449 UINT WINAPI MsiGetProductCodeW(LPCWSTR, LPWSTR);
450 #define     MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
451
452 UINT WINAPI MsiGetProductInfoA(LPCSTR, LPCSTR, LPSTR, LPDWORD);
453 UINT WINAPI MsiGetProductInfoW(LPCWSTR, LPCWSTR, LPWSTR, LPDWORD);
454 #define     MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
455
456 UINT WINAPI MsiEnableLogA(DWORD, LPCSTR, DWORD);
457 UINT WINAPI MsiEnableLogW(DWORD, LPCWSTR, DWORD);
458 #define     MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
459
460 INSTALLUI_HANDLERA WINAPI MsiSetExternalUIA(INSTALLUI_HANDLERA, DWORD, LPVOID);
461 INSTALLUI_HANDLERW WINAPI MsiSetExternalUIW(INSTALLUI_HANDLERW, DWORD, LPVOID);
462 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
463
464 INSTALLSTATE WINAPI MsiGetComponentPathA(LPCSTR, LPCSTR, LPSTR, LPDWORD);
465 INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR, LPCWSTR, LPWSTR, LPDWORD);
466 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
467
468 INSTALLSTATE WINAPI MsiQueryFeatureStateA(LPCSTR, LPCSTR);
469 INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR, LPCWSTR);
470 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
471
472 UINT WINAPI MsiGetFeatureUsageA(LPCSTR, LPCSTR, LPDWORD, LPWORD);
473 UINT WINAPI MsiGetFeatureUsageW(LPCWSTR, LPCWSTR, LPDWORD, LPWORD);
474 #define MsiGetFeatureUsage WINELIB_NAME_AW(MsiGetFeatureUsage)
475
476 UINT WINAPI MsiEnumRelatedProductsA(LPCSTR, DWORD, DWORD, LPSTR);
477 UINT WINAPI MsiEnumRelatedProductsW(LPCWSTR, DWORD, DWORD, LPWSTR);
478 #define MsiEnumRelatedProducts WINELIB_NAME_AW(MsiEnumRelatedProducts)
479
480 UINT WINAPI MsiProvideAssemblyA(LPCSTR, LPCSTR, DWORD, DWORD, LPSTR, LPDWORD);
481 UINT WINAPI MsiProvideAssemblyW(LPCWSTR, LPCWSTR, DWORD, DWORD, LPWSTR, LPDWORD);
482 #define MsiProvideAssembly WINELIB_NAME_AW(MsiProvideAssembly)
483
484 UINT WINAPI MsiEnumComponentQualifiersA(LPCSTR, DWORD, LPSTR, LPDWORD, LPSTR, LPDWORD);
485 UINT WINAPI MsiEnumComponentQualifiersW(LPCWSTR, DWORD, LPWSTR, LPDWORD, LPWSTR, LPDWORD);
486 #define MsiEnumComponentQualifiers WINELIB_NAME_AW(MsiEnumComponentQualifiers)
487
488 UINT WINAPI MsiGetFileVersionA(LPCSTR, LPSTR, LPDWORD, LPSTR, LPDWORD);
489 UINT WINAPI MsiGetFileVersionW(LPCWSTR, LPWSTR, LPDWORD, LPWSTR, LPDWORD);
490 #define MsiGetFileVersion WINELIB_NAME_AW(MsiGetFileVersion)
491
492 UINT WINAPI MsiMessageBoxA(HWND, LPCSTR, LPCSTR, UINT, WORD, DWORD);
493 UINT WINAPI MsiMessageBoxW(HWND, LPCWSTR, LPCWSTR, UINT, WORD, DWORD);
494 #define MsiMessageBox WINELIB_NAME_AW(MsiMessageBox)
495
496 UINT WINAPI MsiProvideQualifiedComponentExA(LPCSTR, LPCSTR, DWORD, LPCSTR, DWORD, DWORD, LPSTR, LPDWORD);
497 UINT WINAPI MsiProvideQualifiedComponentExW(LPCWSTR, LPCWSTR, DWORD, LPCWSTR, DWORD, DWORD, LPWSTR, LPDWORD);
498 #define MsiProvideQualifiedComponentEx WINELIB_NAME_AW(MsiProvideQualifiedComponentEx)
499
500 UINT WINAPI MsiProvideQualifiedComponentA(LPCSTR, LPCSTR, DWORD, LPSTR, LPDWORD);
501 UINT WINAPI MsiProvideQualifiedComponentW(LPCWSTR, LPCWSTR, DWORD, LPWSTR, LPDWORD);
502 #define MsiProvideQualifiedComponent WINELIB_NAME_AW(MsiProvideQualifiedComponent)
503
504 USERINFOSTATE WINAPI MsiGetUserInfoA(LPCSTR, LPSTR, LPDWORD, LPSTR, LPDWORD, LPSTR, LPDWORD);
505 USERINFOSTATE WINAPI MsiGetUserInfoW(LPCWSTR, LPWSTR, LPDWORD, LPWSTR, LPDWORD, LPWSTR, LPDWORD);
506 #define MsiGetUserInfo WINELIB_NAME_AW(MsiGetUserInfo)
507
508 UINT WINAPI MsiCollectUserInfoA(LPCSTR);
509 UINT WINAPI MsiCollectUserInfoW(LPCWSTR);
510 #define MsiCollectUserInfo WINELIB_NAME_AW(MsiCollectUserInfo)
511
512 UINT WINAPI MsiReinstallFeatureA(LPCSTR, LPCSTR, DWORD);
513 UINT WINAPI MsiReinstallFeatureW(LPCWSTR, LPCWSTR, DWORD);
514 #define MsiReinstallFeature WINELIB_NAME_AW(MsiReinstallFeature)
515
516 UINT WINAPI MsiGetShortcutTargetA(LPCSTR, LPSTR, LPSTR, LPSTR);
517 UINT WINAPI MsiGetShortcutTargetW(LPCWSTR, LPWSTR, LPWSTR, LPWSTR);
518 #define MsiGetShortcutTarget WINELIB_NAME_AW(MsiGetShortcutTarget)
519
520 INSTALLSTATE WINAPI MsiUseFeatureW(LPCWSTR, LPCWSTR);
521 INSTALLSTATE WINAPI MsiUseFeatureA(LPCSTR, LPCSTR);
522 #define MsiUseFeature WINELIB_NAME_AW(MsiUseFeature)
523
524 INSTALLSTATE WINAPI MsiUseFeatureExW(LPCWSTR, LPCWSTR, DWORD, DWORD);
525 INSTALLSTATE WINAPI MsiUseFeatureExA(LPCSTR, LPCSTR, DWORD, DWORD);
526 #define MsiUseFeatureEx WINELIB_NAME_AW(MsiUseFeatureEx)
527
528 HRESULT WINAPI MsiGetFileSignatureInformationA(LPCSTR, DWORD, PCCERT_CONTEXT*, LPBYTE, LPDWORD);
529 HRESULT WINAPI MsiGetFileSignatureInformationW(LPCWSTR, DWORD, PCCERT_CONTEXT*, LPBYTE, LPDWORD);
530 #define MsiGetFileSignatureInformation WINELIB_NAME_AW(MsiGetFileSignatureInformation)
531
532 INSTALLSTATE WINAPI MsiLocateComponentA(LPCSTR, LPSTR, LPDWORD);
533 INSTALLSTATE WINAPI MsiLocateComponentW(LPCWSTR, LPWSTR, LPDWORD);
534 #define  MsiLocateComponent WINELIB_NAME_AW(MsiLocateComponent)
535
536 UINT WINAPI MsiSourceListAddSourceA(LPCSTR, LPCSTR, DWORD, LPCSTR);
537 UINT WINAPI MsiSourceListAddSourceW(LPCWSTR, LPCWSTR, DWORD, LPCWSTR);
538 #define     MsiSourceListAddSource WINELIB_NAME_AW(MsiSourceListAddSource)
539
540 UINT WINAPI MsiSourceListClearAllA(LPCSTR, LPCSTR, DWORD);
541 UINT WINAPI MsiSourceListClearAllW(LPCWSTR, LPCWSTR, DWORD);
542 #define     MsiSourceListClearAll WINELIB_NAME_AW(MsiSourceListClearAll)
543
544 UINT WINAPI MsiSourceListGetInfoA(LPCSTR, LPCSTR, MSIINSTALLCONTEXT, DWORD, LPCSTR, LPSTR, LPDWORD);
545 UINT WINAPI MsiSourceListGetInfoW(LPCWSTR, LPCWSTR, MSIINSTALLCONTEXT, DWORD, LPCWSTR, LPWSTR, LPDWORD);
546 #define     MsiSourceListGetInfo WINELIB_NAME_AW(MsiSourceListGetInfo)
547
548 UINT WINAPI MsiSourceListSetInfoA(LPCSTR, LPCSTR, MSIINSTALLCONTEXT, DWORD, LPCSTR, LPCSTR);
549 UINT WINAPI MsiSourceListSetInfoW(LPCWSTR, LPCWSTR, MSIINSTALLCONTEXT, DWORD, LPCWSTR, LPCWSTR);
550 #define     MsiSourceListSetInfo WINELIB_NAME_AW(MsiSourceListSetInfo)
551
552 UINT WINAPI MsiSourceListAddSourceExA(LPCSTR, LPCSTR, MSIINSTALLCONTEXT, DWORD, LPCSTR, DWORD);
553 UINT WINAPI MsiSourceListAddSourceExW(LPCWSTR, LPCWSTR, MSIINSTALLCONTEXT, DWORD, LPCWSTR, DWORD);
554 #define     MsiSourceListAddSourceEx WINELIB_NAME_AW(MsiSourceListAddSourceEx)
555
556 UINT WINAPI MsiSourceListAddMediaDiskA(LPCSTR, LPCSTR, MSIINSTALLCONTEXT, DWORD, DWORD, LPCSTR, LPCSTR);
557 UINT WINAPI MsiSourceListAddMediaDiskW(LPCWSTR, LPCWSTR, MSIINSTALLCONTEXT, DWORD, DWORD, LPCWSTR, LPCWSTR);
558 #define     MsiSourceListAddMediaDisk WINELIB_NAME_AW(MsiSourceListAddMediaDisk)
559
560 UINT WINAPI MsiEnumPatchesA(LPCSTR, DWORD, LPSTR, LPSTR, LPDWORD);
561 UINT WINAPI MsiEnumPatchesW(LPCWSTR, DWORD, LPWSTR, LPWSTR, LPDWORD);
562 #define     MsiEnumPatches WINELIB_NAME_AW(MsiEnumPatches)
563
564 UINT WINAPI MsiGetFileHashA(LPCSTR, DWORD, PMSIFILEHASHINFO);
565 UINT WINAPI MsiGetFileHashW(LPCWSTR, DWORD, PMSIFILEHASHINFO);
566 #define     MsiGetFileHash WINELIB_NAME_AW(MsiGetFileHash)
567
568 UINT WINAPI MsiAdvertiseScriptA(LPCSTR, DWORD, PHKEY, BOOL);
569 UINT WINAPI MsiAdvertiseScriptW(LPCWSTR, DWORD, PHKEY, BOOL);
570 #define     MsiAdvertiseScript WINELIB_NAME_AW(MsiAdvertiseScript)
571
572 /* Non Unicode */
573 UINT WINAPI MsiCloseHandle(MSIHANDLE);
574 UINT WINAPI MsiCloseAllHandles(void);
575 INSTALLUILEVEL WINAPI MsiSetInternalUI(INSTALLUILEVEL, HWND*);
576
577 #ifdef __cplusplus
578 }
579 #endif
580
581 #endif /* __WINE_MSI_H */