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 typedef unsigned long MSIHANDLE;
28 typedef enum tagINSTALLSTATE
30 INSTALLSTATE_BADCONFIG = -6,
31 INSTALLSTATE_INCOMPLETE = -5,
32 INSTALLSTATE_SOURCEABSENT = -4,
33 INSTALLSTATE_MOREDATA = -3,
34 INSTALLSTATE_INVALIDARG = -2,
35 INSTALLSTATE_UNKNOWN = -1,
36 INSTALLSTATE_BROKEN = 0,
37 INSTALLSTATE_ADVERTISED = 1,
38 INSTALLSTATE_ABSENT = 2,
39 INSTALLSTATE_LOCAL = 3,
40 INSTALLSTATE_SOURCE = 4,
41 INSTALLSTATE_DEFAULT = 5
44 typedef enum tagINSTALLUILEVEL
46 INSTALLUILEVEL_NOCHANGE = 0,
47 INSTALLUILEVEL_DEFAULT = 1,
48 INSTALLUILEVEL_NONE = 2,
49 INSTALLUILEVEL_BASIC = 3,
50 INSTALLUILEVEL_REDUCED = 4,
51 INSTALLUILEVEL_FULL = 5,
52 INSTALLUILEVEL_HIDECANCEL = 0x20,
53 INSTALLUILEVEL_PROGRESSONLY = 0x40,
54 INSTALLUILEVEL_ENDDIALOG = 0x80,
55 INSTALLUILEVEL_SOURCERESONLY = 0x100
58 typedef enum tagUSERINFOSTATE
60 USERINFOSTATE_MOREDATA = -3,
61 USERINFOSTATE_INVALIDARG = -2,
62 USERINFOSTATE_UNKNOWN = -1,
63 USERINFOSTATE_ABSENT = 0,
64 USERINFOSTATE_PRESENT = 1,
67 typedef enum tagINSTALLLEVEL
69 INSTALLLEVEL_DEFAULT = 0,
70 INSTALLLEVEL_MINIMUM = 1,
71 INSTALLLEVEL_MAXIMUM = 0xFFFF
74 typedef enum tagINSTALLMESSAGE
76 INSTALLMESSAGE_FATALEXIT = 0,
77 INSTALLMESSAGE_ERROR = 0x01000000,
78 INSTALLMESSAGE_WARNING = 0x02000000,
79 INSTALLMESSAGE_USER = 0x03000000,
80 INSTALLMESSAGE_INFO = 0x04000000,
81 INSTALLMESSAGE_FILESINUSE = 0x05000000,
82 INSTALLMESSAGE_RESOLVESOURCE = 0x06000000,
83 INSTALLMESSAGE_OUTOFDISKSPACE = 0x07000000,
84 INSTALLMESSAGE_ACTIONSTART = 0x08000000,
85 INSTALLMESSAGE_ACTIONDATA = 0x09000000,
86 INSTALLMESSAGE_PROGRESS = 0x0a000000,
87 INSTALLMESSAGE_COMMONDATA = 0x0b000000,
88 INSTALLMESSAGE_INITIALIZE = 0x0c000000,
89 INSTALLMESSAGE_TERMINATE = 0x0d000000,
90 INSTALLMESSAGE_SHOWDIALOG = 0x0e000000
93 typedef enum tagREINSTALLMODE
95 REINSTALLMODE_REPAIR = 0x00000001,
96 REINSTALLMODE_FILEMISSING = 0x00000002,
97 REINSTALLMODE_FILEOLDERVERSION = 0x00000004,
98 REINSTALLMODE_FILEEQUALVERSION = 0x00000008,
99 REINSTALLMODE_FILEEXACT = 0x00000010,
100 REINSTALLMODE_FILEVERIFY = 0x00000020,
101 REINSTALLMODE_FILEREPLACE = 0x00000040,
102 REINSTALLMODE_MACHINEDATA = 0x00000080,
103 REINSTALLMODE_USERDATA = 0x00000100,
104 REINSTALLMODE_SHORTCUT = 0x00000200,
105 REINSTALLMODE_PACKAGE = 0x00000400
108 typedef enum tagINSTALLLOGMODE
110 INSTALLLOGMODE_FATALEXIT = (1 << (INSTALLMESSAGE_FATALEXIT >> 24)),
111 INSTALLLOGMODE_ERROR = (1 << (INSTALLMESSAGE_ERROR >> 24)),
112 INSTALLLOGMODE_WARNING = (1 << (INSTALLMESSAGE_WARNING >> 24)),
113 INSTALLLOGMODE_USER = (1 << (INSTALLMESSAGE_USER >> 24)),
114 INSTALLLOGMODE_INFO = (1 << (INSTALLMESSAGE_INFO >> 24)),
115 INSTALLLOGMODE_RESOLVESOURCE = (1 << (INSTALLMESSAGE_RESOLVESOURCE >> 24)),
116 INSTALLLOGMODE_OUTOFDISKSPACE = (1 << (INSTALLMESSAGE_OUTOFDISKSPACE >> 24)),
117 INSTALLLOGMODE_ACTIONSTART = (1 << (INSTALLMESSAGE_ACTIONSTART >> 24)),
118 INSTALLLOGMODE_ACTIONDATA = (1 << (INSTALLMESSAGE_ACTIONDATA >> 24)),
119 INSTALLLOGMODE_COMMONDATA = (1 << (INSTALLMESSAGE_COMMONDATA >> 24)),
120 INSTALLLOGMODE_PROPERTYDUMP = (1 << (INSTALLMESSAGE_PROGRESS >> 24)),
121 INSTALLLOGMODE_VERBOSE = (1 << (INSTALLMESSAGE_INITIALIZE >> 24)),
122 INSTALLLOGMODE_EXTRADEBUG = (1 << (INSTALLMESSAGE_TERMINATE >> 24)),
123 INSTALLLOGMODE_PROGRESS = (1 << (INSTALLMESSAGE_PROGRESS >> 24)),
124 INSTALLLOGMODE_INITIALIZE = (1 << (INSTALLMESSAGE_INITIALIZE >> 24)),
125 INSTALLLOGMODE_TERMINATE = (1 << (INSTALLMESSAGE_TERMINATE >> 24)),
126 INSTALLLOGMODE_SHOWDIALOG = (1 << (INSTALLMESSAGE_SHOWDIALOG >> 24))
129 typedef enum tagINSTALLLOGATTRIBUTES
131 INSTALLLOGATTRIBUTES_APPEND = 0x00000001,
132 INSTALLLOGATTRIBUTES_FLUSHEACHLINE = 0x00000002
133 } INSTALLLOGATTRIBUTES;
135 typedef enum tagADVERTISEFLAGS
137 ADVERTISEFLAGS_MACHINEASSIGN = 0,
138 ADVERTISEFLAGS_USERASSIGN = 1
141 typedef enum tagINSTALLTYPE
143 INSTALLTYPE_DEFAULT = 0,
144 INSTALLTYPE_NETWORK_IMAGE = 1
147 #define MAX_FEATURE_CHARS 38
149 typedef INT (CALLBACK *INSTALLUI_HANDLERA)(LPVOID, UINT, LPCSTR);
150 typedef INT (CALLBACK *INSTALLUI_HANDLERW)(LPVOID, UINT, LPCWSTR);
152 UINT WINAPI MsiAdvertiseProductA(LPCSTR, LPCSTR, LPCSTR, LANGID);
153 UINT WINAPI MsiAdvertiseProductW(LPCWSTR, LPCWSTR, LPCWSTR, LANGID);
154 #define MsiAdvertiseProduct WINELIB_NAME_AW(MsiAdvertiseProduct)
156 UINT WINAPI MsiAdvertiseProductExA(LPCSTR, LPCSTR, LPCSTR, LANGID, DWORD, DWORD);
157 UINT WINAPI MsiAdvertiseProductExW(LPCWSTR, LPCWSTR, LPCWSTR, LANGID, DWORD, DWORD);
158 #define MsiAdvertiseProductEx WINELIB_NAME_AW(MsiAdvertiseProductEx)
160 UINT WINAPI MsiInstallProductA(LPCSTR, LPCSTR);
161 UINT WINAPI MsiInstallProductW(LPCWSTR, LPCWSTR);
162 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
164 UINT WINAPI MsiReinstallProductA(LPCSTR, DWORD);
165 UINT WINAPI MsiReinstallProductW(LPCWSTR, DWORD);
166 #define MsiReinstallProduct WINELIB_NAME_AW(MsiReinstallProduct)
168 UINT WINAPI MsiApplyPatchA(LPCSTR, LPCSTR, INSTALLTYPE, LPCSTR);
169 UINT WINAPI MsiApplyPatchW(LPCWSTR, LPCWSTR, INSTALLTYPE, LPCWSTR);
170 #define MsiApplyPatch WINELIB_NAME_AW(MsiApplyPatch)
172 UINT WINAPI MsiEnumProductsA(DWORD, LPSTR);
173 UINT WINAPI MsiEnumProductsW(DWORD, LPWSTR);
174 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
176 UINT WINAPI MsiEnumFeaturesA(LPCSTR, DWORD, LPSTR, LPSTR);
177 UINT WINAPI MsiEnumFeaturesW(LPCWSTR, DWORD, LPWSTR, LPWSTR);
178 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
180 UINT WINAPI MsiEnumComponentsA(DWORD, LPSTR);
181 UINT WINAPI MsiEnumComponentsW(DWORD, LPWSTR);
182 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
184 UINT WINAPI MsiEnumClientsA(LPCSTR, DWORD, LPSTR);
185 UINT WINAPI MsiEnumClientsW(LPCWSTR, DWORD, LPWSTR);
186 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
188 UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE *);
189 UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE *);
190 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
192 UINT WINAPI MsiOpenPackageA(LPCSTR, MSIHANDLE*);
193 UINT WINAPI MsiOpenPackageW(LPCWSTR, MSIHANDLE*);
194 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
196 UINT WINAPI MsiOpenPackageExA(LPCSTR, DWORD, MSIHANDLE*);
197 UINT WINAPI MsiOpenPackageExW(LPCWSTR, DWORD, MSIHANDLE*);
198 #define MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
200 UINT WINAPI MsiOpenProductA(LPCSTR, MSIHANDLE*);
201 UINT WINAPI MsiOpenProductW(LPCWSTR, MSIHANDLE*);
202 #define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
204 UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *);
205 UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *);
206 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
208 UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPSTR,DWORD*);
209 UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPWSTR,DWORD*);
210 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
212 UINT WINAPI MsiSummaryInfoPersist(MSIHANDLE);
214 UINT WINAPI MsiSummaryInfoSetPropertyA(MSIHANDLE, UINT, UINT, INT, FILETIME*, LPSTR);
215 UINT WINAPI MsiSummaryInfoSetPropertyW(MSIHANDLE, UINT, UINT, INT, FILETIME*, LPWSTR);
216 #define MsiSummaryInfoSetProperty WINELIB_NAME_AW(MsiSummaryInfoSetProperty)
218 UINT WINAPI MsiProvideComponentFromDescriptorA(LPCSTR,LPSTR,DWORD*,DWORD*);
219 UINT WINAPI MsiProvideComponentFromDescriptorW(LPCWSTR,LPWSTR,DWORD*,DWORD*);
220 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
222 UINT WINAPI MsiGetProductPropertyA(MSIHANDLE,LPCSTR,LPSTR,DWORD*);
223 UINT WINAPI MsiGetProductPropertyW(MSIHANDLE,LPCWSTR,LPWSTR,DWORD*);
224 #define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
226 UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, DWORD*);
227 UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, DWORD*);
228 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
230 UINT WINAPI MsiVerifyPackageA(LPCSTR);
231 UINT WINAPI MsiVerifyPackageW(LPCWSTR);
232 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
234 INSTALLSTATE WINAPI MsiQueryProductStateA(LPCSTR);
235 INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR);
236 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
238 UINT WINAPI MsiConfigureProductA(LPCSTR, int, INSTALLSTATE);
239 UINT WINAPI MsiConfigureProductW(LPCWSTR, int, INSTALLSTATE);
240 #define MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
242 UINT WINAPI MsiConfigureProductExA(LPCSTR, int, INSTALLSTATE, LPCSTR);
243 UINT WINAPI MsiConfigureProductExW(LPCWSTR, int, INSTALLSTATE, LPCWSTR);
244 #define MsiConfigureProductEx WINELIB_NAME_AW(MsiConfigureProductEx);
246 UINT WINAPI MsiGetProductCodeA(LPCSTR, LPSTR);
247 UINT WINAPI MsiGetProductCodeW(LPCWSTR, LPWSTR);
248 #define MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
250 UINT WINAPI MsiGetProductInfoA(LPCSTR, LPCSTR, LPSTR, DWORD *);
251 UINT WINAPI MsiGetProductInfoW(LPCWSTR, LPCWSTR, LPWSTR, DWORD *);
252 #define MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
254 UINT WINAPI MsiEnableLogA(DWORD, LPCSTR, DWORD);
255 UINT WINAPI MsiEnableLogW(DWORD, LPCWSTR, DWORD);
256 #define MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
258 INSTALLUI_HANDLERA WINAPI MsiSetExternalUIA(INSTALLUI_HANDLERA, DWORD, LPVOID);
259 INSTALLUI_HANDLERW WINAPI MsiSetExternalUIW(INSTALLUI_HANDLERW, DWORD, LPVOID);
260 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
262 INSTALLSTATE WINAPI MsiGetComponentPathA(LPCSTR, LPCSTR, LPSTR, DWORD*);
263 INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR, LPCWSTR, LPWSTR, DWORD*);
264 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
266 INSTALLSTATE WINAPI MsiQueryFeatureStateA(LPCSTR, LPCSTR);
267 INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR, LPCWSTR);
268 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
270 UINT WINAPI MsiGetFeatureUsageA(LPCSTR, LPCSTR, DWORD*, WORD*);
271 UINT WINAPI MsiGetFeatureUsageW(LPCWSTR, LPCWSTR, DWORD*, WORD*);
272 #define MsiGetFeatureUsage WINELIB_NAME_AW(MsiGetFeatureUsage)
274 UINT WINAPI MsiEnumRelatedProductsA(LPCSTR, DWORD, DWORD, LPSTR);
275 UINT WINAPI MsiEnumRelatedProductsW(LPCWSTR, DWORD, DWORD, LPWSTR);
276 #define MsiEnumRelatedProducts WINELIB_NAME_AW(MsiEnumRelatedProducts)
278 UINT WINAPI MsiProvideAssemblyA(LPCSTR, LPCSTR, DWORD, DWORD, LPSTR, DWORD*);
279 UINT WINAPI MsiProvideAssemblyW(LPCWSTR, LPCWSTR, DWORD, DWORD, LPWSTR, DWORD*);
280 #define MsiProvideAssembly WINELIB_NAME_AW(MsiProvideAssembly)
282 UINT WINAPI MsiEnumComponentQualifiersA(LPSTR, DWORD, LPSTR, DWORD*, LPSTR, DWORD*);
283 UINT WINAPI MsiEnumComponentQualifiersW(LPWSTR, DWORD, LPWSTR, DWORD*, LPWSTR, DWORD*);
284 #define MsiEnumComponentQualifiers WINELIB_NAME_AW(MsiEnumComponentQualifiers)
286 UINT WINAPI MsiGetFileVersionA(LPCSTR, LPSTR, DWORD*, LPSTR, DWORD*);
287 UINT WINAPI MsiGetFileVersionW(LPCWSTR, LPWSTR, DWORD*, LPWSTR, DWORD*);
288 #define MsiGetFileVersion WINELIB_NAME_AW(MsiGetFileVersion)
290 UINT WINAPI MsiMessageBoxA(HWND, LPCSTR, LPCSTR, UINT, WORD, DWORD);
291 UINT WINAPI MsiMessageBoxW(HWND, LPCWSTR, LPCWSTR, UINT, WORD, DWORD);
292 #define MsiMessageBox WINELIB_NAME_AW(MsiMessageBox)
294 UINT WINAPI MsiProvideQualifiedComponentExA(LPCSTR, LPCSTR, DWORD, LPSTR, DWORD, DWORD, LPSTR, DWORD*);
295 UINT WINAPI MsiProvideQualifiedComponentExW(LPCWSTR, LPCWSTR, DWORD, LPWSTR, DWORD, DWORD, LPWSTR, DWORD*);
296 #define MsiProvideQualifiedComponentEx WINELIB_NAME_AW(MsiProvideQualifiedComponentEx)
298 UINT WINAPI MsiProvideQualifiedComponentA(LPCSTR, LPCSTR, DWORD, LPSTR, DWORD*);
299 UINT WINAPI MsiProvideQualifiedComponentW(LPCWSTR, LPCWSTR, DWORD, LPWSTR, DWORD*);
300 #define MsiProvideQualifiedComponent WINELIB_NAME_AW(MsiProvideQualifiedComponent)
302 USERINFOSTATE WINAPI MsiGetUserInfoA(LPCSTR, LPSTR, DWORD*, LPSTR, DWORD*, LPSTR, DWORD*);
303 USERINFOSTATE WINAPI MsiGetUserInfoW(LPCWSTR, LPWSTR, DWORD*, LPWSTR, DWORD*, LPWSTR, DWORD*);
304 #define MsiGetUserInfo WINELIB_NAME_AW(MsiGetUserInfo)
306 UINT WINAPI MsiCollectUserInfoA( LPCSTR );
307 UINT WINAPI MsiCollectUserInfoW( LPCWSTR );
308 #define MsiCollectUserInfo WINELIB_NAME_AW(MsiCollectUserInfo)
311 UINT WINAPI MsiCloseHandle(MSIHANDLE);
312 UINT WINAPI MsiCloseAllHandles(void);
313 INSTALLUILEVEL WINAPI MsiSetInternalUI(INSTALLUILEVEL, HWND*);
319 #endif /* __WINE_MSI_H */