Implemented GetLastInputInfo.
[wine/multimedia.git] / include / msi.h
blob9554a0e7b38255cd07b0c26be667106ab535feef
1 /*
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
19 #ifndef __WINE_MSI_H
20 #define __WINE_MSI_H
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
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
42 } INSTALLSTATE;
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
56 } INSTALLUILEVEL;
58 typedef enum tagUSERINFOSTATE
60 USERINFOSTATE_MOREDATA = -3,
61 USERINFOSTATE_INVALIDARG = -2,
62 USERINFOSTATE_UNKNOWN = -1,
63 USERINFOSTATE_ABSENT = 0,
64 USERINFOSTATE_PRESENT = 1,
65 } USERINFOSTATE;
67 typedef enum tagINSTALLLEVEL
69 INSTALLLEVEL_DEFAULT = 0,
70 INSTALLLEVEL_MINIMUM = 1,
71 INSTALLLEVEL_MAXIMUM = 0xFFFF
72 } INSTALLLEVEL;
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
91 } INSTALLMESSAGE;
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
106 } REINSTALLMODE;
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))
127 } INSTALLLOGMODE;
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
139 } ADVERTISEFLAGS;
141 typedef enum tagINSTALLTYPE
143 INSTALLTYPE_DEFAULT = 0,
144 INSTALLTYPE_NETWORK_IMAGE = 1
145 } INSTALLTYPE;
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 MsiProvideComponentFromDescriptorA(LPCSTR,LPSTR,DWORD*,DWORD*);
205 UINT WINAPI MsiProvideComponentFromDescriptorW(LPCWSTR,LPWSTR,DWORD*,DWORD*);
206 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
208 UINT WINAPI MsiGetProductPropertyA(MSIHANDLE,LPCSTR,LPSTR,DWORD*);
209 UINT WINAPI MsiGetProductPropertyW(MSIHANDLE,LPCWSTR,LPWSTR,DWORD*);
210 #define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
212 UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, DWORD*);
213 UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, DWORD*);
214 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
216 UINT WINAPI MsiVerifyPackageA(LPCSTR);
217 UINT WINAPI MsiVerifyPackageW(LPCWSTR);
218 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
220 INSTALLSTATE WINAPI MsiQueryProductStateA(LPCSTR);
221 INSTALLSTATE WINAPI MsiQueryProductStateW(LPCWSTR);
222 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
224 UINT WINAPI MsiConfigureProductA(LPCSTR, int, INSTALLSTATE);
225 UINT WINAPI MsiConfigureProductW(LPCWSTR, int, INSTALLSTATE);
226 #define MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
228 UINT WINAPI MsiConfigureProductExA(LPCSTR, int, INSTALLSTATE, LPCSTR);
229 UINT WINAPI MsiConfigureProductExW(LPCWSTR, int, INSTALLSTATE, LPCWSTR);
230 #define MsiConfigureProductEx WINELIB_NAME_AW(MsiConfigureProductEx);
232 UINT WINAPI MsiGetProductCodeA(LPCSTR, LPSTR);
233 UINT WINAPI MsiGetProductCodeW(LPCWSTR, LPWSTR);
234 #define MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
236 UINT WINAPI MsiGetProductInfoA(LPCSTR, LPCSTR, LPSTR, DWORD *);
237 UINT WINAPI MsiGetProductInfoW(LPCWSTR, LPCWSTR, LPWSTR, DWORD *);
238 #define MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
240 UINT WINAPI MsiEnableLogA(DWORD, LPCSTR, DWORD);
241 UINT WINAPI MsiEnableLogW(DWORD, LPCWSTR, DWORD);
242 #define MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
244 INSTALLUI_HANDLERA WINAPI MsiSetExternalUIA(INSTALLUI_HANDLERA, DWORD, LPVOID);
245 INSTALLUI_HANDLERW WINAPI MsiSetExternalUIW(INSTALLUI_HANDLERW, DWORD, LPVOID);
246 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
248 INSTALLSTATE WINAPI MsiGetComponentPathA(LPCSTR, LPCSTR, LPSTR, DWORD*);
249 INSTALLSTATE WINAPI MsiGetComponentPathW(LPCWSTR, LPCWSTR, LPWSTR, DWORD*);
250 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
252 INSTALLSTATE WINAPI MsiQueryFeatureStateA(LPCSTR, LPCSTR);
253 INSTALLSTATE WINAPI MsiQueryFeatureStateW(LPCWSTR, LPCWSTR);
254 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
256 UINT WINAPI MsiGetFeatureUsageA(LPCSTR, LPCSTR, DWORD*, WORD*);
257 UINT WINAPI MsiGetFeatureUsageW(LPCWSTR, LPCWSTR, DWORD*, WORD*);
258 #define MsiGetFeatureUsage WINELIB_NAME_AW(MsiGetFeatureUsage)
260 UINT WINAPI MsiEnumRelatedProductsA(LPCSTR, DWORD, DWORD, LPSTR);
261 UINT WINAPI MsiEnumRelatedProductsW(LPCWSTR, DWORD, DWORD, LPWSTR);
262 #define MsiEnumRelatedProducts WINELIB_NAME_AW(MsiEnumRelatedProducts)
264 UINT WINAPI MsiProvideAssemblyA(LPCSTR, LPCSTR, DWORD, DWORD, LPSTR, DWORD*);
265 UINT WINAPI MsiProvideAssemblyW(LPCWSTR, LPCWSTR, DWORD, DWORD, LPWSTR, DWORD*);
266 #define MsiProvideAssembly WINELIB_NAME_AW(MsiProvideAssembly)
268 UINT WINAPI MsiEnumComponentQualifiersA(LPSTR, DWORD, LPSTR, DWORD*, LPSTR, DWORD*);
269 UINT WINAPI MsiEnumComponentQualifiersW(LPWSTR, DWORD, LPWSTR, DWORD*, LPWSTR, DWORD*);
270 #define MsiEnumComponentQualifiers WINELIB_NAME_AW(MsiEnumComponentQualifiers)
272 UINT WINAPI MsiGetFileVersionA(LPCSTR, LPSTR, DWORD*, LPSTR, DWORD*);
273 UINT WINAPI MsiGetFileVersionW(LPCWSTR, LPWSTR, DWORD*, LPWSTR, DWORD*);
274 #define MsiGetFileVersion WINELIB_NAME_AW(MsiGetFileVersion)
276 UINT WINAPI MsiMessageBoxA(HWND, LPCSTR, LPCSTR, UINT, WORD, DWORD);
277 UINT WINAPI MsiMessageBoxW(HWND, LPCWSTR, LPCWSTR, UINT, WORD, DWORD);
278 #define MsiMessageBox WINELIB_NAME_AW(MsiMessageBox)
280 UINT WINAPI MsiProvideQualifiedComponentExA(LPCSTR, LPCSTR, DWORD, LPSTR, DWORD, DWORD, LPSTR, DWORD*);
281 UINT WINAPI MsiProvideQualifiedComponentExW(LPCWSTR, LPCWSTR, DWORD, LPWSTR, DWORD, DWORD, LPWSTR, DWORD*);
282 #define MsiProvideQualifiedComponentEx WINELIB_NAME_AW(MsiProvideQualifiedComponentEx)
284 UINT WINAPI MsiProvideQualifiedComponentA(LPCSTR, LPCSTR, DWORD, LPSTR, DWORD*);
285 UINT WINAPI MsiProvideQualifiedComponentW(LPCWSTR, LPCWSTR, DWORD, LPWSTR, DWORD*);
286 #define MsiProvideQualifiedComponent WINELIB_NAME_AW(MsiProvideQualifiedComponent)
288 USERINFOSTATE WINAPI MsiGetUserInfoA(LPCSTR, LPSTR, DWORD*, LPSTR, DWORD*, LPSTR, DWORD*);
289 USERINFOSTATE WINAPI MsiGetUserInfoW(LPCWSTR, LPWSTR, DWORD*, LPWSTR, DWORD*, LPWSTR, DWORD*);
290 #define MsiGetUserInfo WINELIB_NAME_AW(MsiGetUserInfo)
292 UINT WINAPI MsiCollectUserInfoA( LPCSTR );
293 UINT WINAPI MsiCollectUserInfoW( LPCWSTR );
294 #define MsiCollectUserInfo WINELIB_NAME_AW(MsiCollectUserInfo)
296 /* Non Unicode */
297 UINT WINAPI MsiCloseHandle(MSIHANDLE);
298 UINT WINAPI MsiCloseAllHandles(void);
299 INSTALLUILEVEL WINAPI MsiSetInternalUI(INSTALLUILEVEL, HWND*);
301 #ifdef __cplusplus
303 #endif
305 #endif /* __WINE_MSI_H */