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
54 typedef enum tagINSTALLLEVEL
56 INSTALLLEVEL_DEFAULT
= 0,
57 INSTALLLEVEL_MINIMUM
= 1,
58 INSTALLLEVEL_MAXIMUM
= 0xFFFF
61 typedef enum tagINSTALLMESSAGE
63 INSTALLMESSAGE_FATALEXIT
= 0,
64 INSTALLMESSAGE_ERROR
= 0x01000000,
65 INSTALLMESSAGE_WARNING
= 0x02000000,
66 INSTALLMESSAGE_USER
= 0x03000000,
67 INSTALLMESSAGE_INFO
= 0x04000000,
68 INSTALLMESSAGE_FILESINUSE
= 0x05000000,
69 INSTALLMESSAGE_RESOLVESOURCE
= 0x06000000,
70 INSTALLMESSAGE_OUTOFDISKSPACE
= 0x07000000,
71 INSTALLMESSAGE_ACTIONSTART
= 0x08000000,
72 INSTALLMESSAGE_ACTIONDATA
= 0x09000000,
73 INSTALLMESSAGE_PROGRESS
= 0x0a000000,
74 INSTALLMESSAGE_COMMONDATA
= 0x0b000000,
75 INSTALLMESSAGE_INITIALIZE
= 0x0c000000,
76 INSTALLMESSAGE_TERMINATE
= 0x0d000000,
77 INSTALLMESSAGE_SHOWDIALOG
= 0x0e000000
80 typedef enum tagREINSTALLMODE
82 REINSTALLMODE_REPAIR
= 0x00000001,
83 REINSTALLMODE_FILEMISSING
= 0x00000002,
84 REINSTALLMODE_FILEOLDERVERSION
= 0x00000004,
85 REINSTALLMODE_FILEEQUALVERSION
= 0x00000008,
86 REINSTALLMODE_FILEEXACT
= 0x00000010,
87 REINSTALLMODE_FILEVERIFY
= 0x00000020,
88 REINSTALLMODE_FILEREPLACE
= 0x00000040,
89 REINSTALLMODE_MACHINEDATA
= 0x00000080,
90 REINSTALLMODE_USERDATA
= 0x00000100,
91 REINSTALLMODE_SHORTCUT
= 0x00000200,
92 REINSTALLMODE_PACKAGE
= 0x00000400
95 typedef enum tagINSTALLLOGMODE
97 INSTALLLOGMODE_FATALEXIT
= (1 << (INSTALLMESSAGE_FATALEXIT
>> 24)),
98 INSTALLLOGMODE_ERROR
= (1 << (INSTALLMESSAGE_ERROR
>> 24)),
99 INSTALLLOGMODE_WARNING
= (1 << (INSTALLMESSAGE_WARNING
>> 24)),
100 INSTALLLOGMODE_USER
= (1 << (INSTALLMESSAGE_USER
>> 24)),
101 INSTALLLOGMODE_INFO
= (1 << (INSTALLMESSAGE_INFO
>> 24)),
102 INSTALLLOGMODE_RESOLVESOURCE
= (1 << (INSTALLMESSAGE_RESOLVESOURCE
>> 24)),
103 INSTALLLOGMODE_OUTOFDISKSPACE
= (1 << (INSTALLMESSAGE_OUTOFDISKSPACE
>> 24)),
104 INSTALLLOGMODE_ACTIONSTART
= (1 << (INSTALLMESSAGE_ACTIONSTART
>> 24)),
105 INSTALLLOGMODE_ACTIONDATA
= (1 << (INSTALLMESSAGE_ACTIONDATA
>> 24)),
106 INSTALLLOGMODE_COMMONDATA
= (1 << (INSTALLMESSAGE_COMMONDATA
>> 24)),
107 INSTALLLOGMODE_PROPERTYDUMP
= (1 << (INSTALLMESSAGE_PROGRESS
>> 24)),
108 INSTALLLOGMODE_VERBOSE
= (1 << (INSTALLMESSAGE_INITIALIZE
>> 24)),
109 INSTALLLOGMODE_EXTRADEBUG
= (1 << (INSTALLMESSAGE_TERMINATE
>> 24)),
110 INSTALLLOGMODE_PROGRESS
= (1 << (INSTALLMESSAGE_PROGRESS
>> 24)),
111 INSTALLLOGMODE_INITIALIZE
= (1 << (INSTALLMESSAGE_INITIALIZE
>> 24)),
112 INSTALLLOGMODE_TERMINATE
= (1 << (INSTALLMESSAGE_TERMINATE
>> 24)),
113 INSTALLLOGMODE_SHOWDIALOG
= (1 << (INSTALLMESSAGE_SHOWDIALOG
>> 24))
116 #define MAX_FEATURE_CHARS 38
118 typedef INT (CALLBACK
*INSTALLUI_HANDLERA
)(LPVOID pvContext
, UINT iMessageType
,
120 typedef INT (CALLBACK
*INSTALLUI_HANDLERW
)(LPVOID pvContext
, UINT iMessageType
,
123 UINT WINAPI
MsiAdvertiseProductA(LPCSTR
, LPCSTR
, LPCSTR
, LANGID
);
124 UINT WINAPI
MsiAdvertiseProductW(LPCWSTR
, LPCWSTR
, LPCWSTR
, LANGID
);
125 #define MsiAdvertiseProduct WINELIB_NAME_AW(MsiAdvertiseProduct)
127 UINT WINAPI
MsiInstallProductA(LPCSTR
, LPCSTR
);
128 UINT WINAPI
MsiInstallProductW(LPCWSTR
, LPCWSTR
);
129 #define MsiInstallProduct WINELIB_NAME_AW(MsiInstallProduct)
131 UINT WINAPI
MsiReinstallProductA(LPCSTR
, DWORD
);
132 UINT WINAPI
MsiReinstallProductW(LPCWSTR
, DWORD
);
133 #define MsiReinstallProduct WINELIB_NAME_AW(MsiReinstallProduct)
135 UINT WINAPI
MsiEnumProductsA(DWORD index
, LPSTR lpguid
);
136 UINT WINAPI
MsiEnumProductsW(DWORD index
, LPWSTR lpguid
);
137 #define MsiEnumProducts WINELIB_NAME_AW(MsiEnumProducts)
139 UINT WINAPI
MsiEnumFeaturesA(LPCSTR
, DWORD
, LPSTR
, LPSTR
);
140 UINT WINAPI
MsiEnumFeaturesW(LPCWSTR
, DWORD
, LPWSTR
, LPWSTR
);
141 #define MsiEnumFeatures WINELIB_NAME_AW(MsiEnumFeatures)
143 UINT WINAPI
MsiEnumComponentsA(DWORD
, LPSTR
);
144 UINT WINAPI
MsiEnumComponentsW(DWORD
, LPWSTR
);
145 #define MsiEnumComponents WINELIB_NAME_AW(MsiEnumComponents)
147 UINT WINAPI
MsiEnumClientsA(LPCSTR
, DWORD
, LPSTR
);
148 UINT WINAPI
MsiEnumClientsW(LPCWSTR
, DWORD
, LPWSTR
);
149 #define MsiEnumClients WINELIB_NAME_AW(MsiEnumClients)
151 UINT WINAPI
MsiOpenDatabaseA(LPCSTR
, LPCSTR
, MSIHANDLE
*);
152 UINT WINAPI
MsiOpenDatabaseW(LPCWSTR
, LPCWSTR
, MSIHANDLE
*);
153 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
155 UINT WINAPI
MsiOpenPackageA(LPCSTR
, MSIHANDLE
*);
156 UINT WINAPI
MsiOpenPackageW(LPCWSTR
, MSIHANDLE
*);
157 #define MsiOpenPackage WINELIB_NAME_AW(MsiOpenPackage)
159 UINT WINAPI
MsiOpenPackageExA(LPCSTR
, DWORD
, MSIHANDLE
*);
160 UINT WINAPI
MsiOpenPackageExW(LPCWSTR
, DWORD
, MSIHANDLE
*);
161 #define MsiOpenPackageEx WINELIB_NAME_AW(MsiOpenPackageEx)
163 UINT WINAPI
MsiOpenProductA(LPCSTR
, MSIHANDLE
*);
164 UINT WINAPI
MsiOpenProductW(LPCWSTR
, MSIHANDLE
*);
165 #define MsiOpenProduct WINELIB_NAME_AW(MsiOpenProduct)
167 UINT WINAPI
MsiGetSummaryInformationA(MSIHANDLE
, LPCSTR
, UINT
, MSIHANDLE
*);
168 UINT WINAPI
MsiGetSummaryInformationW(MSIHANDLE
, LPCWSTR
, UINT
, MSIHANDLE
*);
169 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
171 UINT WINAPI
MsiSummaryInfoGetPropertyA(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPSTR
,DWORD
*);
172 UINT WINAPI
MsiSummaryInfoGetPropertyW(MSIHANDLE
,UINT
,UINT
*,INT
*,FILETIME
*,LPWSTR
,DWORD
*);
173 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
175 UINT WINAPI
MsiProvideComponentFromDescriptorA(LPCSTR
,LPSTR
,DWORD
*,DWORD
*);
176 UINT WINAPI
MsiProvideComponentFromDescriptorW(LPCWSTR
,LPWSTR
,DWORD
*,DWORD
*);
177 #define MsiProvideComponentFromDescriptor WINELIB_NAME_AW(MsiProvideComponentFromDescriptor)
179 UINT WINAPI
MsiGetProductPropertyA(MSIHANDLE
,LPCSTR
,LPSTR
,DWORD
*);
180 UINT WINAPI
MsiGetProductPropertyW(MSIHANDLE
,LPCWSTR
,LPWSTR
,DWORD
*);
181 #define MsiGetProductProperty WINELIB_NAME_AW(MsiGetProductProperty)
183 UINT WINAPI
MsiGetPropertyA(MSIHANDLE
, LPCSTR
, LPSTR
, DWORD
*);
184 UINT WINAPI
MsiGetPropertyW(MSIHANDLE
, LPCWSTR
, LPWSTR
, DWORD
*);
185 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
187 UINT WINAPI
MsiVerifyPackageA(LPCSTR
);
188 UINT WINAPI
MsiVerifyPackageW(LPCWSTR
);
189 #define MsiVerifyPackage WINELIB_NAME_AW(MsiVerifyPackage)
191 INSTALLSTATE WINAPI
MsiQueryProductStateA(LPCSTR
);
192 INSTALLSTATE WINAPI
MsiQueryProductStateW(LPCWSTR
);
193 #define MsiQueryProductState WINELIB_NAME_AW(MsiQueryProductState)
195 UINT WINAPI
MsiConfigureProductA(LPCSTR szProduct
, int iInstallLevel
, INSTALLSTATE eInstallState
);
196 UINT WINAPI
MsiConfigureProductW(LPCWSTR szProduct
, int iInstallLevel
, INSTALLSTATE eInstallState
);
197 #define MsiConfigureProduct WINELIB_NAME_AW(MsiConfigureProduct);
199 UINT WINAPI
MsiGetProductCodeA(LPCSTR szComponent
, LPSTR szBuffer
);
200 UINT WINAPI
MsiGetProductCodeW(LPCWSTR szComponent
, LPWSTR szBuffer
);
201 #define MsiGetProductCode WINELIB_NAME_AW(MsiGetProductCode)
203 UINT WINAPI
MsiGetProductInfoA(LPCSTR szProduct
, LPCSTR szAttribute
, LPSTR szBuffer
, DWORD
*pcchValueBuf
);
204 UINT WINAPI
MsiGetProductInfoW(LPCWSTR szProduct
, LPCWSTR szAttribute
, LPWSTR szBuffer
, DWORD
*pcchValueBuf
);
205 #define MsiGetProductInfo WINELIB_NAME_AW(MsiGetProductInfo)
207 UINT WINAPI
MsiEnableLogA(DWORD dwLogMode
, LPCSTR szLogFile
, BOOL fAppend
);
208 UINT WINAPI
MsiEnableLogW(DWORD dwLogMode
, LPCWSTR szLogFile
, BOOL fAppend
);
209 #define MsiEnableLog WINELIB_NAME_AW(MsiEnableLog)
211 INSTALLUI_HANDLERA WINAPI
MsiSetExternalUIA(INSTALLUI_HANDLERA
, DWORD
, LPVOID
);
212 INSTALLUI_HANDLERW WINAPI
MsiSetExternalUIW(INSTALLUI_HANDLERW
, DWORD
, LPVOID
);
213 #define MsiSetExternalUI WINELIB_NAME_AW(MsiSetExternalUI)
215 INSTALLSTATE WINAPI
MsiGetComponentPathA(LPCSTR
, LPCSTR
, LPSTR
, DWORD
*);
216 INSTALLSTATE WINAPI
MsiGetComponentPathW(LPCWSTR
, LPCWSTR
, LPWSTR
, DWORD
*);
217 #define MsiGetComponentPath WINELIB_NAME_AW(MsiGetComponentPath)
219 INSTALLSTATE WINAPI
MsiQueryFeatureStateA(LPCSTR szProduct
, LPCSTR szFeature
);
220 INSTALLSTATE WINAPI
MsiQueryFeatureStateW(LPCWSTR szProduct
, LPCWSTR szFeature
);
221 #define MsiQueryFeatureState WINELIB_NAME_AW(MsiQueryFeatureState)
226 UINT WINAPI
MsiCloseHandle(MSIHANDLE
);
227 UINT WINAPI
MsiCloseAllHandles();
233 #endif /* __WINE_MSI_H */