user32: Cache the window class name on the client side.
[wine/multimedia.git] / include / msiquery.h
blob1c52a762aa4dad0714a95efd80f8555634c98235
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 #ifndef __WINE_MSIQUERY_H
20 #define __WINE_MSIQUERY_H
22 #include <msi.h>
24 typedef enum tagMSICONDITION
26 MSICONDITION_FALSE = 0,
27 MSICONDITION_TRUE = 1,
28 MSICONDITION_NONE = 2,
29 MSICONDITION_ERROR = 3,
30 } MSICONDITION;
32 #define MSI_NULL_INTEGER 0x80000000
34 typedef enum tagMSICOLINFO
36 MSICOLINFO_NAMES = 0,
37 MSICOLINFO_TYPES = 1
38 } MSICOLINFO;
40 typedef enum tagMSICOSTTREE
42 MSICOSTTREE_SELFONLY = 0,
43 MSICOSTTREE_CHILDREN = 1,
44 MSICOSTTREE_PARENTS = 2,
45 MSICOSTTREE_PRODUCT = 3,
46 } MSICOSTTREE;
48 typedef enum tagMSIMODIFY
50 MSIMODIFY_REFRESH = 0,
51 MSIMODIFY_INSERT = 1,
52 MSIMODIFY_UPDATE = 2,
53 MSIMODIFY_ASSIGN = 3,
54 MSIMODIFY_REPLACE = 4,
55 MSIMODIFY_MERGE = 5,
56 MSIMODIFY_DELETE = 6,
57 MSIMODIFY_INSERT_TEMPORARY = 7,
58 MSIMODIFY_VALIDATE = 8,
59 MSIMODIFY_VALIDATE_NEW = 9,
60 MSIMODIFY_VALIDATE_FIELD = 10,
61 MSIMODIFY_VALIDATE_DELETE = 11
62 } MSIMODIFY;
64 #ifndef __WINESRC__
65 #define MSIDBOPEN_READONLY (LPCTSTR)0
66 #define MSIDBOPEN_TRANSACT (LPCTSTR)1
67 #define MSIDBOPEN_DIRECT (LPCTSTR)2
68 #define MSIDBOPEN_CREATE (LPCTSTR)3
69 #define MSIDBOPEN_CREATEDIRECT (LPCTSTR)4
70 #else
71 #define MSIDBOPEN_READONLY (LPCWSTR)0
72 #define MSIDBOPEN_TRANSACT (LPCWSTR)1
73 #define MSIDBOPEN_DIRECT (LPCWSTR)2
74 #define MSIDBOPEN_CREATE (LPCWSTR)3
75 #define MSIDBOPEN_CREATEDIRECT (LPCWSTR)4
76 #endif
78 typedef enum tagMSIRUNMODE
80 MSIRUNMODE_ADMIN = 0,
81 MSIRUNMODE_ADVERTISE = 1,
82 MSIRUNMODE_MAINTENANCE = 2,
83 MSIRUNMODE_ROLLBACKENABLED = 3,
84 MSIRUNMODE_LOGENABLED = 4,
85 MSIRUNMODE_OPERATIONS = 5,
86 MSIRUNMODE_REBOOTATEND = 6,
87 MSIRUNMODE_REBOOTNOW = 7,
88 MSIRUNMODE_CABINET = 8,
89 MSIRUNMODE_SOURCESHORTNAMES = 9,
90 MSIRUNMODE_TARGETSHORTNAMES = 10,
91 MSIRUNMODE_RESERVED11 = 11,
92 MSIRUNMODE_WINDOWS9X = 12,
93 MSIRUNMODE_ZAWENABLED = 13,
94 MSIRUNMODE_RESERVED14 = 14,
95 MSIRUNMODE_RESERVED15 = 15,
96 MSIRUNMODE_SCHEDULED = 16,
97 MSIRUNMODE_ROLLBACK = 17,
98 MSIRUNMODE_COMMIT = 18
99 } MSIRUNMODE;
101 typedef enum tagMSIDBERROR
103 MSIDBERROR_INVALIDARG = -3,
104 MSIDBERROR_MOREDATA = -2,
105 MSIDBERROR_FUNCTIONERROR = -1,
106 MSIDBERROR_NOERROR = 0,
107 MSIDBERROR_DUPLICATEKEY = 1,
108 MSIDBERROR_REQUIRED = 2,
109 MSIDBERROR_BADLINK = 3,
110 MSIDBERROR_OVERFLOW = 4,
111 MSIDBERROR_UNDERFLOW = 5,
112 MSIDBERROR_NOTINSET = 6,
113 MSIDBERROR_BADVERSION = 7,
114 MSIDBERROR_BADCASE = 8,
115 MSIDBERROR_BADGUID = 9,
116 MSIDBERROR_BADWILDCARD = 10,
117 MSIDBERROR_BADIDENTIFIER = 11,
118 MSIDBERROR_BADLANGUAGE = 12,
119 MSIDBERROR_BADFILENAME = 13,
120 MSIDBERROR_BADPATH = 14,
121 MSIDBERROR_BADCONDITION = 15,
122 MSIDBERROR_BADFORMATTED = 16,
123 MSIDBERROR_BADTEMPLATE = 17,
124 MSIDBERROR_BADDEFAULTDIR = 18,
125 MSIDBERROR_BADREGPATH = 19,
126 MSIDBERROR_BADCUSTOMSOURCE = 20,
127 MSIDBERROR_BADPROPERTY = 21,
128 MSIDBERROR_MISSINGDATA = 22,
129 MSIDBERROR_BADCATEGORY = 23,
130 MSIDBERROR_BADKEYTABLE = 24,
131 MSIDBERROR_BADMAXMINVALUES = 25,
132 MSIDBERROR_BADCABINET = 26,
133 MSIDBERROR_BADSHORTCUT= 27,
134 MSIDBERROR_STRINGOVERFLOW = 28,
135 MSIDBERROR_BADLOCALIZEATTRIB = 29
136 } MSIDBERROR;
138 typedef enum tagMSIDBSTATE
140 MSIDBSTATE_ERROR = -1,
141 MSIDBSTATE_READ = 0,
142 MSIDBSTATE_WRITE = 1
143 } MSIDBSTATE;
146 #ifdef __cplusplus
147 extern "C" {
148 #endif
150 /* view manipulation */
151 UINT WINAPI MsiViewFetch(MSIHANDLE,MSIHANDLE*);
152 UINT WINAPI MsiViewExecute(MSIHANDLE,MSIHANDLE);
153 UINT WINAPI MsiViewClose(MSIHANDLE);
154 UINT WINAPI MsiDatabaseOpenViewA(MSIHANDLE,LPCSTR,MSIHANDLE*);
155 UINT WINAPI MsiDatabaseOpenViewW(MSIHANDLE,LPCWSTR,MSIHANDLE*);
156 #define MsiDatabaseOpenView WINELIB_NAME_AW(MsiDatabaseOpenView)
157 MSIDBERROR WINAPI MsiViewGetErrorA(MSIHANDLE,LPSTR,LPDWORD);
158 MSIDBERROR WINAPI MsiViewGetErrorW(MSIHANDLE,LPWSTR,LPDWORD);
159 #define MsiViewGetError WINELIB_NAME_AW(MsiViewGetError)
161 MSIDBSTATE WINAPI MsiGetDatabaseState(MSIHANDLE);
163 /* record manipulation */
164 MSIHANDLE WINAPI MsiCreateRecord(UINT);
165 UINT WINAPI MsiRecordClearData(MSIHANDLE);
166 UINT WINAPI MsiRecordSetInteger(MSIHANDLE,UINT,int);
167 UINT WINAPI MsiRecordSetStringA(MSIHANDLE,UINT,LPCSTR);
168 UINT WINAPI MsiRecordSetStringW(MSIHANDLE,UINT,LPCWSTR);
169 #define MsiRecordSetString WINELIB_NAME_AW(MsiRecordSetString)
170 UINT WINAPI MsiRecordGetStringA(MSIHANDLE,UINT,LPSTR,LPDWORD);
171 UINT WINAPI MsiRecordGetStringW(MSIHANDLE,UINT,LPWSTR,LPDWORD);
172 #define MsiRecordGetString WINELIB_NAME_AW(MsiRecordGetString)
173 UINT WINAPI MsiRecordGetFieldCount(MSIHANDLE);
174 int WINAPI MsiRecordGetInteger(MSIHANDLE,UINT);
175 UINT WINAPI MsiRecordDataSize(MSIHANDLE,UINT);
176 BOOL WINAPI MsiRecordIsNull(MSIHANDLE,UINT);
177 UINT WINAPI MsiFormatRecordA(MSIHANDLE,MSIHANDLE,LPSTR,LPDWORD);
178 UINT WINAPI MsiFormatRecordW(MSIHANDLE,MSIHANDLE,LPWSTR,LPDWORD);
179 #define MsiFormatRecord WINELIB_NAME_AW(MsiFormatRecord)
180 UINT WINAPI MsiRecordSetStreamA(MSIHANDLE,UINT,LPCSTR);
181 UINT WINAPI MsiRecordSetStreamW(MSIHANDLE,UINT,LPCWSTR);
182 #define MsiRecordSetStream WINELIB_NAME_AW(MsiRecordSetStream)
183 UINT WINAPI MsiRecordReadStream(MSIHANDLE,UINT,char*,LPDWORD);
185 UINT WINAPI MsiDatabaseGetPrimaryKeysA(MSIHANDLE,LPCSTR,MSIHANDLE*);
186 UINT WINAPI MsiDatabaseGetPrimaryKeysW(MSIHANDLE,LPCWSTR,MSIHANDLE*);
187 #define MsiDatabaseGetPrimaryKeys WINELIB_NAME_AW(MsiDatabaseGetPrimaryKeys)
189 /* installing */
190 UINT WINAPI MsiDoActionA(MSIHANDLE,LPCSTR );
191 UINT WINAPI MsiDoActionW(MSIHANDLE,LPCWSTR );
192 #define MsiDoAction WINELIB_NAME_AW(MsiDoAction)
194 /* database transforms */
195 UINT WINAPI MsiDatabaseApplyTransformA(MSIHANDLE,LPCSTR,int);
196 UINT WINAPI MsiDatabaseApplyTransformW(MSIHANDLE,LPCWSTR,int);
197 #define MsiDatabaseApplyTransform WINELIB_NAME_AW(MsiDatabaseApplyTransform)
198 UINT WINAPI MsiDatabaseGenerateTransformA(MSIHANDLE,MSIHANDLE,LPCSTR,int,int);
199 UINT WINAPI MsiDatabaseGenerateTransformW(MSIHANDLE,MSIHANDLE,LPCWSTR,int,int);
200 #define MsiDatabaseGenerateTransform WINELIB_NAME_AW(MsiDatabaseGenerateTransform)
202 UINT WINAPI MsiDatabaseCommit(MSIHANDLE);
204 /* install state */
205 UINT WINAPI MsiGetFeatureStateA(MSIHANDLE,LPCSTR,INSTALLSTATE*,INSTALLSTATE*);
206 UINT WINAPI MsiGetFeatureStateW(MSIHANDLE,LPCWSTR,INSTALLSTATE*,INSTALLSTATE*);
207 #define MsiGetFeatureState WINELIB_NAME_AW(MsiGetFeatureState)
208 UINT WINAPI MsiGetFeatureValidStatesA(MSIHANDLE,LPCSTR,LPDWORD);
209 UINT WINAPI MsiGetFeatureValidStatesW(MSIHANDLE,LPCWSTR,LPDWORD);
210 #define MsiGetFeatureValidStates WINELIB_NAME_AW(MsiGetFeatureValidStates)
211 UINT WINAPI MsiSetComponentStateA(MSIHANDLE,LPCSTR,INSTALLSTATE);
212 UINT WINAPI MsiSetComponentStateW(MSIHANDLE,LPCWSTR,INSTALLSTATE);
213 #define MsiSetComponentState WINELIB_NAME_AW(MsiSetComponentState)
214 UINT WINAPI MsiGetComponentStateA(MSIHANDLE,LPCSTR,INSTALLSTATE*,INSTALLSTATE*);
215 UINT WINAPI MsiGetComponentStateW(MSIHANDLE,LPCWSTR,INSTALLSTATE*,INSTALLSTATE*);
216 #define MsiGetComponentState WINELIB_NAME_AW(MsiGetComponentState)
218 MSICONDITION WINAPI MsiEvaluateConditionA(MSIHANDLE,LPCSTR);
219 MSICONDITION WINAPI MsiEvaluateConditionW(MSIHANDLE,LPCWSTR);
220 #define MsiEvaluateCondition WINELIB_NAME_AW(MsiEvaluateCondition)
222 /* property functions */
223 UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, LPDWORD);
224 UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, LPDWORD);
225 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
227 UINT WINAPI MsiSetPropertyA(MSIHANDLE, LPCSTR, LPCSTR);
228 UINT WINAPI MsiSetPropertyW(MSIHANDLE, LPCWSTR, LPCWSTR);
229 #define MsiSetProperty WINELIB_NAME_AW(MsiSetProperty)
231 UINT WINAPI MsiGetTargetPathA(MSIHANDLE,LPCSTR,LPSTR,LPDWORD);
232 UINT WINAPI MsiGetTargetPathW(MSIHANDLE,LPCWSTR,LPWSTR,LPDWORD);
233 #define MsiGetTargetPath WINELIB_NAME_AW(MsiGetTargetPath)
235 UINT WINAPI MsiSetTargetPathA(MSIHANDLE, LPCSTR, LPCSTR);
236 UINT WINAPI MsiSetTargetPathW(MSIHANDLE, LPCWSTR, LPCWSTR);
237 #define MsiSetTargetPath WINELIB_NAME_AW(MsiSetTargetPath)
239 UINT WINAPI MsiGetSourcePathA(MSIHANDLE,LPCSTR,LPSTR,LPDWORD);
240 UINT WINAPI MsiGetSourcePathW(MSIHANDLE,LPCWSTR,LPWSTR,LPDWORD);
241 #define MsiGetSourcePath WINELIB_NAME_AW(MsiGetSourcePath)
243 MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE);
245 UINT WINAPI MsiViewGetColumnInfo(MSIHANDLE, MSICOLINFO, MSIHANDLE*);
246 INT WINAPI MsiProcessMessage(MSIHANDLE, INSTALLMESSAGE, MSIHANDLE);
248 UINT WINAPI MsiSetFeatureStateA(MSIHANDLE, LPCSTR, INSTALLSTATE);
249 UINT WINAPI MsiSetFeatureStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE);
250 #define MsiSetFeatureState WINELIB_NAME_AW(MsiSetFeatureState)
252 UINT WINAPI MsiPreviewDialogA(MSIHANDLE, LPCSTR);
253 UINT WINAPI MsiPreviewDialogW(MSIHANDLE, LPCWSTR);
254 #define MsiPreviewDialog WINELIB_NAME_AW(MsiPreviewDialog)
256 UINT WINAPI MsiPreviewBillboardA(MSIHANDLE, LPCSTR, LPCSTR);
257 UINT WINAPI MsiPreviewBillboardW(MSIHANDLE, LPCWSTR, LPCWSTR);
258 #define MsiPreviewBillboard WINELIB_NAME_AW(MsiPreviewBillboard)
260 UINT WINAPI MsiCreateTransformSummaryInfoA(MSIHANDLE, MSIHANDLE, LPCSTR, int, int);
261 UINT WINAPI MsiCreateTransformSummaryInfoW(MSIHANDLE, MSIHANDLE, LPCWSTR, int, int);
262 #define MsiCreateTransformSummaryInfo WINELIB_NAME_AW(MsiCreateTransformSummaryInfo)
264 UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *);
265 UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *);
266 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
268 UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE,UINT,PUINT,LPINT,FILETIME*,LPSTR,LPDWORD);
269 UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE,UINT,PUINT,LPINT,FILETIME*,LPWSTR,LPDWORD);
270 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
272 UINT WINAPI MsiSummaryInfoSetPropertyA(MSIHANDLE, UINT, UINT, INT, FILETIME*, LPCSTR);
273 UINT WINAPI MsiSummaryInfoSetPropertyW(MSIHANDLE, UINT, UINT, INT, FILETIME*, LPCWSTR);
274 #define MsiSummaryInfoSetProperty WINELIB_NAME_AW(MsiSummaryInfoSetProperty)
276 UINT WINAPI MsiDatabaseExportA(MSIHANDLE, LPCSTR, LPCSTR, LPCSTR);
277 UINT WINAPI MsiDatabaseExportW(MSIHANDLE, LPCWSTR, LPCWSTR, LPCWSTR);
278 #define MsiDatabaseExport WINELIB_NAME_AW(MsiDatabaseExport)
280 UINT WINAPI MsiDatabaseImportA(MSIHANDLE, LPCSTR, LPCSTR);
281 UINT WINAPI MsiDatabaseImportW(MSIHANDLE, LPCWSTR, LPCWSTR);
282 #define MsiDatabaseImport WINELIB_NAME_AW(MsiDatabaseImport)
284 UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE*);
285 UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE*);
286 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
288 MSICONDITION WINAPI MsiDatabaseIsTablePersistentA(MSIHANDLE, LPCSTR);
289 MSICONDITION WINAPI MsiDatabaseIsTablePersistentW(MSIHANDLE, LPCWSTR);
290 #define MsiDatabaseIsTablePersistent WINELIB_NAME_AW(MsiDatabaseIsTablePersistent)
292 UINT WINAPI MsiSequenceA(MSIHANDLE, LPCSTR, INT);
293 UINT WINAPI MsiSequenceW(MSIHANDLE, LPCWSTR, INT);
294 #define MsiSequence WINELIB_NAME_AW(MsiSequence)
296 UINT WINAPI MsiSummaryInfoPersist(MSIHANDLE);
297 UINT WINAPI MsiSummaryInfoGetPropertyCount(MSIHANDLE,PUINT);
299 UINT WINAPI MsiEnableUIPreview(MSIHANDLE, MSIHANDLE*);
300 BOOL WINAPI MsiGetMode(MSIHANDLE, MSIRUNMODE);
301 BOOL WINAPI MsiSetMode(MSIHANDLE, MSIRUNMODE, BOOL);
303 UINT WINAPI MsiViewModify(MSIHANDLE, MSIMODIFY, MSIHANDLE);
305 UINT WINAPI MsiGetFeatureCostA(MSIHANDLE, LPCSTR, MSICOSTTREE, INSTALLSTATE, LPINT);
306 UINT WINAPI MsiGetFeatureCostW(MSIHANDLE, LPCWSTR, MSICOSTTREE, INSTALLSTATE, LPINT);
307 #define MsiGetFeatureCost WINELIB_NAME_AW(MsiGetFeatureCost)
309 LANGID WINAPI MsiGetLanguage(MSIHANDLE);
311 UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int);
313 MSIHANDLE WINAPI MsiGetLastErrorRecord(void);
315 #ifdef __cplusplus
317 #endif
319 #endif /* __WINE_MSIQUERY_H */