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 tagINSTALLLEVEL
60 INSTALLLEVEL_DEFAULT
= 0,
61 INSTALLLEVEL_MINIMUM
= 1,
62 INSTALLLEVEL_MAXIMUM
= 0xFFFF
65 typedef enum tagINSTALLMESSAGE
67 INSTALLMESSAGE_FATALEXIT
= 0,
68 INSTALLMESSAGE_ERROR
= 0x01000000,
69 INSTALLMESSAGE_WARNING
= 0x02000000,
70 INSTALLMESSAGE_USER
= 0x03000000,
71 INSTALLMESSAGE_INFO
= 0x04000000,
72 INSTALLMESSAGE_FILESINUSE
= 0x05000000,
73 INSTALLMESSAGE_RESOLVESOURCE
= 0x06000000,
74 INSTALLMESSAGE_OUTOFDISKSPACE
= 0x07000000,
75 INSTALLMESSAGE_ACTIONSTART
= 0x08000000,
76 INSTALLMESSAGE_ACTIONDATA
= 0x09000000,
77 INSTALLMESSAGE_PROGRESS
= 0x0a000000,
78 INSTALLMESSAGE_COMMONDATA
= 0x0b000000,
79 INSTALLMESSAGE_INITIALIZE
= 0x0c000000,
80 INSTALLMESSAGE_TERMINATE
= 0x0d000000,
81 INSTALLMESSAGE_SHOWDIALOG
= 0x0e000000
84 typedef enum tagREINSTALLMODE
86 REINSTALLMODE_REPAIR
= 0x00000001,
87 REINSTALLMODE_FILEMISSING
= 0x00000002,
88 REINSTALLMODE_FILEOLDERVERSION
= 0x00000004,
89 REINSTALLMODE_FILEEQUALVERSION
= 0x00000008,
90 REINSTALLMODE_FILEEXACT
= 0x00000010,
91 REINSTALLMODE_FILEVERIFY
= 0x00000020,
92 REINSTALLMODE_FILEREPLACE
= 0x00000040,
93 REINSTALLMODE_MACHINEDATA
= 0x00000080,
94 REINSTALLMODE_USERDATA
= 0x00000100,
95 REINSTALLMODE_SHORTCUT
= 0x00000200,
96 REINSTALLMODE_PACKAGE
= 0x00000400
99 typedef enum tagINSTALLLOGMODE
101 INSTALLLOGMODE_FATALEXIT
= (1 << (INSTALLMESSAGE_FATALEXIT
>> 24)),
102 INSTALLLOGMODE_ERROR
= (1 << (INSTALLMESSAGE_ERROR
>> 24)),
103 INSTALLLOGMODE_WARNING
= (1 << (INSTALLMESSAGE_WARNING
>> 24)),
104 INSTALLLOGMODE_USER
= (1 << (INSTALLMESSAGE_USER
>> 24)),
105 INSTALLLOGMODE_INFO
= (1 << (INSTALLMESSAGE_INFO
>> 24)),
106 INSTALLLOGMODE_RESOLVESOURCE
= (1 << (INSTALLMESSAGE_RESOLVESOURCE
>> 24)),
107 INSTALLLOGMODE_OUTOFDISKSPACE
= (1 << (INSTALLMESSAGE_OUTOFDISKSPACE
>> 24)),
108 INSTALLLOGMODE_ACTIONSTART
= (1 << (INSTALLMESSAGE_ACTIONSTART
>> 24)),
109 INSTALLLOGMODE_ACTIONDATA
= (1 << (INSTALLMESSAGE_ACTIONDATA
>> 24)),
110 INSTALLLOGMODE_COMMONDATA
= (1 << (INSTALLMESSAGE_COMMONDATA
>> 24)),
111 INSTALLLOGMODE_PROPERTYDUMP
= (1 << (INSTALLMESSAGE_PROGRESS
>> 24)),
112 INSTALLLOGMODE_VERBOSE
= (1 << (INSTALLMESSAGE_INITIALIZE
>> 24)),
113 INSTALLLOGMODE_EXTRADEBUG
= (1 << (INSTALLMESSAGE_TERMINATE
>> 24)),
114 INSTALLLOGMODE_PROGRESS
= (1 << (INSTALLMESSAGE_PROGRESS
>> 24)),
115 INSTALLLOGMODE_INITIALIZE
= (1 << (INSTALLMESSAGE_INITIALIZE
>> 24)),
116 INSTALLLOGMODE_TERMINATE
= (1 << (INSTALLMESSAGE_TERMINATE
>> 24)),
117 INSTALLLOGMODE_SHOWDIALOG
= (1 << (INSTALLMESSAGE_SHOWDIALOG
>> 24))
120 typedef enum tagADVERTISEFLAGS
122 ADVERTISEFLAGS_MACHINEASSIGN
= 0,
123 ADVERTISEFLAGS_USERASSIGN
= 1
126 #define MAX_FEATURE_CHARS 38
128 typedef INT (CALLBACK
*INSTALLUI_HANDLERA
)(LPVOID pvContext
, UINT iMessageType
,
130 typedef INT (CALLBACK
*INSTALLUI_HANDLERW
)(LPVOID pvContext
, UINT iMessageType
,
133 UINT WINAPI
MsiAdvertiseProductA(LPCSTR
, LPCSTR
, LPCSTR
, LANGID
);
134 UINT WINAPI
MsiAdvertiseProductW(LPCWSTR
, LPCWSTR
, LPCWSTR
, LANGID
);
135 #define MsiAdvertiseProduct WINELIB_NAME_AW(MsiAdvertiseProduct)
137 UINT WINAPI
MsiInstallProductA(LPCSTR
, LPCSTR
);
138 UINT WINAPI
MsiInstallProductW(LPCWSTR
, LPCWSTR
);
139 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
141 UINT WINAPI
MsiReinstallProductA(LPCSTR
, DWORD
);
142 UINT WINAPI
MsiReinstallProductW(LPCWSTR
, DWORD
);
143 #define MsiReinstallProduct WINELIB_NAME_AW(MsiReinstallProduct)
145 UINT WINAPI
MsiEnumProductsA(DWORD index
, LPSTR lpguid
);
146 UINT WINAPI
MsiEnumProductsW(DWORD index
, LPWSTR lpguid
);
147 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
149 UINT WINAPI
MsiEnumFeaturesA(LPCSTR
, DWORD
, LPSTR
, LPSTR
);
150 UINT WINAPI
MsiEnumFeaturesW(LPCWSTR
, DWORD
, LPWSTR
, LPWSTR
);
151 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
153 UINT WINAPI
MsiEnumComponentsA(DWORD
, LPSTR
);
154 UINT WINAPI
MsiEnumComponentsW(DWORD
, LPWSTR
);
155 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
157 UINT WINAPI
MsiEnumClientsA(LPCSTR
, DWORD
, LPSTR
);
158 UINT WINAPI
MsiEnumClientsW(LPCWSTR
, DWORD
, LPWSTR
);
159 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
161 UINT WINAPI
MsiOpenDatabaseA(LPCSTR
, LPCSTR
, MSIHANDLE
*);
162 UINT WINAPI
MsiOpenDatabaseW(LPCWSTR
, LPCWSTR
, MSIHANDLE
*);
163 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
165 UINT WINAPI
MsiOpenPackageA(LPCSTR
, MSIHANDLE
*);
166 UINT WINAPI
MsiOpenPackageW(LPCWSTR
, MSIHANDLE
*);
167 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
169 UINT WINAPI
MsiOpenPackageExA(LPCSTR
, DWORD
, MSIHANDLE
*);
170 UINT WINAPI
MsiOpenPackageExW(LPCWSTR
, DWORD
, MSIHANDLE
*);
171 #define MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
173 UINT WINAPI
MsiOpenProductA(LPCSTR
, MSIHANDLE
*);
174 UINT WINAPI
MsiOpenProductW(LPCWSTR
, MSIHANDLE
*);
175 #define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
177 UINT WINAPI
MsiGetSummaryInformationA(MSIHANDLE
, LPCSTR
, UINT
, MSIHANDLE
*);
178 UINT WINAPI
MsiGetSummaryInformationW(MSIHANDLE
, LPCWSTR
, UINT
, MSIHANDLE
*);
179 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
181 UINT WINAPI
MsiSummaryInfoGetPropertyA(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPSTR
,DWORD
*);
182 UINT WINAPI
MsiSummaryInfoGetPropertyW(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPWSTR
,DWORD
*);
183 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
185 UINT WINAPI
MsiProvideComponentFromDescriptorA(LPCSTR
,LPSTR
,DWORD
*,DWORD
*);
186 UINT WINAPI
MsiProvideComponentFromDescriptorW(LPCWSTR
,LPWSTR
,DWORD
*,DWORD
*);
187 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
189 UINT WINAPI
MsiGetProductPropertyA(MSIHANDLE
,LPCSTR
,LPSTR
,DWORD
*);
190 UINT WINAPI
MsiGetProductPropertyW(MSIHANDLE
,LPCWSTR
,LPWSTR
,DWORD
*);
191 #define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
193 UINT WINAPI
MsiGetPropertyA(MSIHANDLE
, LPCSTR
, LPSTR
, DWORD
*);
194 UINT WINAPI
MsiGetPropertyW(MSIHANDLE
, LPCWSTR
, LPWSTR
, DWORD
*);
195 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
197 UINT WINAPI
MsiVerifyPackageA(LPCSTR
);
198 UINT WINAPI
MsiVerifyPackageW(LPCWSTR
);
199 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
201 INSTALLSTATE WINAPI
MsiQueryProductStateA(LPCSTR
);
202 INSTALLSTATE WINAPI
MsiQueryProductStateW(LPCWSTR
);
203 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
205 UINT WINAPI
MsiConfigureProductA(LPCSTR szProduct
, int iInstallLevel
, INSTALLSTATE eInstallState
);
206 UINT WINAPI
MsiConfigureProductW(LPCWSTR szProduct
, int iInstallLevel
, INSTALLSTATE eInstallState
);
207 #define MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
209 UINT WINAPI
MsiGetProductCodeA(LPCSTR szComponent
, LPSTR szBuffer
);
210 UINT WINAPI
MsiGetProductCodeW(LPCWSTR szComponent
, LPWSTR szBuffer
);
211 #define MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
213 UINT WINAPI
MsiGetProductInfoA(LPCSTR szProduct
, LPCSTR szAttribute
, LPSTR szBuffer
, DWORD
*pcchValueBuf
);
214 UINT WINAPI
MsiGetProductInfoW(LPCWSTR szProduct
, LPCWSTR szAttribute
, LPWSTR szBuffer
, DWORD
*pcchValueBuf
);
215 #define MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
217 UINT WINAPI
MsiEnableLogA(DWORD dwLogMode
, LPCSTR szLogFile
, BOOL fAppend
);
218 UINT WINAPI
MsiEnableLogW(DWORD dwLogMode
, LPCWSTR szLogFile
, BOOL fAppend
);
219 #define MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
221 INSTALLUI_HANDLERA WINAPI
MsiSetExternalUIA(INSTALLUI_HANDLERA
, DWORD
, LPVOID
);
222 INSTALLUI_HANDLERW WINAPI
MsiSetExternalUIW(INSTALLUI_HANDLERW
, DWORD
, LPVOID
);
223 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
225 INSTALLSTATE WINAPI
MsiGetComponentPathA(LPCSTR
, LPCSTR
, LPSTR
, DWORD
*);
226 INSTALLSTATE WINAPI
MsiGetComponentPathW(LPCWSTR
, LPCWSTR
, LPWSTR
, DWORD
*);
227 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
229 INSTALLSTATE WINAPI
MsiQueryFeatureStateA(LPCSTR szProduct
, LPCSTR szFeature
);
230 INSTALLSTATE WINAPI
MsiQueryFeatureStateW(LPCWSTR szProduct
, LPCWSTR szFeature
);
231 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
236 UINT WINAPI
MsiCloseHandle(MSIHANDLE
);
237 UINT WINAPI
MsiCloseAllHandles();
238 INSTALLUILEVEL WINAPI
MsiSetInternalUI(INSTALLUILEVEL
, HWND
*);
244 #endif /* __WINE_MSI_H */