VirtualBox

source: vbox/trunk/src/VBox/Additions/WINNT/Graphics/Wine/include/msiquery.h@ 33282

Last change on this file since 33282 was 25949, checked in by vboxsync, 15 years ago

crOpenGL: update to wine 1.1.36 and disable unnecessary fbo state poll

  • Property svn:eol-style set to native
File size: 12.5 KB
Line 
1/*
2 * Copyright (C) 2002,2003 Mike McCormack
3 *
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.
8 *
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.
13 *
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
17 */
18
19/*
20 * Sun LGPL Disclaimer: For the avoidance of doubt, except that if any license choice
21 * other than GPL or LGPL is available it will apply instead, Sun elects to use only
22 * the Lesser General Public License version 2.1 (LGPLv2) at this time for any software where
23 * a choice of LGPL license versions is made available with the language indicating
24 * that LGPLv2 or any later version may be used, or where a choice of which version
25 * of the LGPL is applied is otherwise unspecified.
26 */
27
28#ifndef __WINE_MSIQUERY_H
29#define __WINE_MSIQUERY_H
30
31#include <msi.h>
32
33typedef enum tagMSICONDITION
34{
35 MSICONDITION_FALSE = 0,
36 MSICONDITION_TRUE = 1,
37 MSICONDITION_NONE = 2,
38 MSICONDITION_ERROR = 3,
39} MSICONDITION;
40
41#define MSI_NULL_INTEGER 0x80000000
42
43typedef enum tagMSICOLINFO
44{
45 MSICOLINFO_NAMES = 0,
46 MSICOLINFO_TYPES = 1
47} MSICOLINFO;
48
49typedef enum tagMSICOSTTREE
50{
51 MSICOSTTREE_SELFONLY = 0,
52 MSICOSTTREE_CHILDREN = 1,
53 MSICOSTTREE_PARENTS = 2,
54 MSICOSTTREE_PRODUCT = 3,
55} MSICOSTTREE;
56
57typedef enum tagMSIMODIFY
58{
59 MSIMODIFY_SEEK = -1,
60 MSIMODIFY_REFRESH = 0,
61 MSIMODIFY_INSERT = 1,
62 MSIMODIFY_UPDATE = 2,
63 MSIMODIFY_ASSIGN = 3,
64 MSIMODIFY_REPLACE = 4,
65 MSIMODIFY_MERGE = 5,
66 MSIMODIFY_DELETE = 6,
67 MSIMODIFY_INSERT_TEMPORARY = 7,
68 MSIMODIFY_VALIDATE = 8,
69 MSIMODIFY_VALIDATE_NEW = 9,
70 MSIMODIFY_VALIDATE_FIELD = 10,
71 MSIMODIFY_VALIDATE_DELETE = 11
72} MSIMODIFY;
73
74#ifndef WINE_NO_UNICODE_MACROS
75#define MSIDBOPEN_READONLY (LPCTSTR)0
76#define MSIDBOPEN_TRANSACT (LPCTSTR)1
77#define MSIDBOPEN_DIRECT (LPCTSTR)2
78#define MSIDBOPEN_CREATE (LPCTSTR)3
79#define MSIDBOPEN_CREATEDIRECT (LPCTSTR)4
80#else
81#define MSIDBOPEN_READONLY (LPCWSTR)0
82#define MSIDBOPEN_TRANSACT (LPCWSTR)1
83#define MSIDBOPEN_DIRECT (LPCWSTR)2
84#define MSIDBOPEN_CREATE (LPCWSTR)3
85#define MSIDBOPEN_CREATEDIRECT (LPCWSTR)4
86#endif
87
88#define MSIDBOPEN_PATCHFILE 32 / sizeof(*MSIDBOPEN_READONLY)
89
90typedef enum tagMSIRUNMODE
91{
92 MSIRUNMODE_ADMIN = 0,
93 MSIRUNMODE_ADVERTISE = 1,
94 MSIRUNMODE_MAINTENANCE = 2,
95 MSIRUNMODE_ROLLBACKENABLED = 3,
96 MSIRUNMODE_LOGENABLED = 4,
97 MSIRUNMODE_OPERATIONS = 5,
98 MSIRUNMODE_REBOOTATEND = 6,
99 MSIRUNMODE_REBOOTNOW = 7,
100 MSIRUNMODE_CABINET = 8,
101 MSIRUNMODE_SOURCESHORTNAMES = 9,
102 MSIRUNMODE_TARGETSHORTNAMES = 10,
103 MSIRUNMODE_RESERVED11 = 11,
104 MSIRUNMODE_WINDOWS9X = 12,
105 MSIRUNMODE_ZAWENABLED = 13,
106 MSIRUNMODE_RESERVED14 = 14,
107 MSIRUNMODE_RESERVED15 = 15,
108 MSIRUNMODE_SCHEDULED = 16,
109 MSIRUNMODE_ROLLBACK = 17,
110 MSIRUNMODE_COMMIT = 18
111} MSIRUNMODE;
112
113typedef enum tagMSIDBERROR
114{
115 MSIDBERROR_INVALIDARG = -3,
116 MSIDBERROR_MOREDATA = -2,
117 MSIDBERROR_FUNCTIONERROR = -1,
118 MSIDBERROR_NOERROR = 0,
119 MSIDBERROR_DUPLICATEKEY = 1,
120 MSIDBERROR_REQUIRED = 2,
121 MSIDBERROR_BADLINK = 3,
122 MSIDBERROR_OVERFLOW = 4,
123 MSIDBERROR_UNDERFLOW = 5,
124 MSIDBERROR_NOTINSET = 6,
125 MSIDBERROR_BADVERSION = 7,
126 MSIDBERROR_BADCASE = 8,
127 MSIDBERROR_BADGUID = 9,
128 MSIDBERROR_BADWILDCARD = 10,
129 MSIDBERROR_BADIDENTIFIER = 11,
130 MSIDBERROR_BADLANGUAGE = 12,
131 MSIDBERROR_BADFILENAME = 13,
132 MSIDBERROR_BADPATH = 14,
133 MSIDBERROR_BADCONDITION = 15,
134 MSIDBERROR_BADFORMATTED = 16,
135 MSIDBERROR_BADTEMPLATE = 17,
136 MSIDBERROR_BADDEFAULTDIR = 18,
137 MSIDBERROR_BADREGPATH = 19,
138 MSIDBERROR_BADCUSTOMSOURCE = 20,
139 MSIDBERROR_BADPROPERTY = 21,
140 MSIDBERROR_MISSINGDATA = 22,
141 MSIDBERROR_BADCATEGORY = 23,
142 MSIDBERROR_BADKEYTABLE = 24,
143 MSIDBERROR_BADMAXMINVALUES = 25,
144 MSIDBERROR_BADCABINET = 26,
145 MSIDBERROR_BADSHORTCUT= 27,
146 MSIDBERROR_STRINGOVERFLOW = 28,
147 MSIDBERROR_BADLOCALIZEATTRIB = 29
148} MSIDBERROR;
149
150typedef enum tagMSIDBSTATE
151{
152 MSIDBSTATE_ERROR = -1,
153 MSIDBSTATE_READ = 0,
154 MSIDBSTATE_WRITE = 1
155} MSIDBSTATE;
156
157
158#ifdef __cplusplus
159extern "C" {
160#endif
161
162/* view manipulation */
163UINT WINAPI MsiViewFetch(MSIHANDLE,MSIHANDLE*);
164UINT WINAPI MsiViewExecute(MSIHANDLE,MSIHANDLE);
165UINT WINAPI MsiViewClose(MSIHANDLE);
166UINT WINAPI MsiDatabaseOpenViewA(MSIHANDLE,LPCSTR,MSIHANDLE*);
167UINT WINAPI MsiDatabaseOpenViewW(MSIHANDLE,LPCWSTR,MSIHANDLE*);
168#define MsiDatabaseOpenView WINELIB_NAME_AW(MsiDatabaseOpenView)
169MSIDBERROR WINAPI MsiViewGetErrorA(MSIHANDLE,LPSTR,LPDWORD);
170MSIDBERROR WINAPI MsiViewGetErrorW(MSIHANDLE,LPWSTR,LPDWORD);
171#define MsiViewGetError WINELIB_NAME_AW(MsiViewGetError)
172
173MSIDBSTATE WINAPI MsiGetDatabaseState(MSIHANDLE);
174
175/* record manipulation */
176MSIHANDLE WINAPI MsiCreateRecord(UINT);
177UINT WINAPI MsiRecordClearData(MSIHANDLE);
178UINT WINAPI MsiRecordSetInteger(MSIHANDLE,UINT,int);
179UINT WINAPI MsiRecordSetStringA(MSIHANDLE,UINT,LPCSTR);
180UINT WINAPI MsiRecordSetStringW(MSIHANDLE,UINT,LPCWSTR);
181#define MsiRecordSetString WINELIB_NAME_AW(MsiRecordSetString)
182UINT WINAPI MsiRecordGetStringA(MSIHANDLE,UINT,LPSTR,LPDWORD);
183UINT WINAPI MsiRecordGetStringW(MSIHANDLE,UINT,LPWSTR,LPDWORD);
184#define MsiRecordGetString WINELIB_NAME_AW(MsiRecordGetString)
185UINT WINAPI MsiRecordGetFieldCount(MSIHANDLE);
186int WINAPI MsiRecordGetInteger(MSIHANDLE,UINT);
187UINT WINAPI MsiRecordDataSize(MSIHANDLE,UINT);
188BOOL WINAPI MsiRecordIsNull(MSIHANDLE,UINT);
189UINT WINAPI MsiFormatRecordA(MSIHANDLE,MSIHANDLE,LPSTR,LPDWORD);
190UINT WINAPI MsiFormatRecordW(MSIHANDLE,MSIHANDLE,LPWSTR,LPDWORD);
191#define MsiFormatRecord WINELIB_NAME_AW(MsiFormatRecord)
192UINT WINAPI MsiRecordSetStreamA(MSIHANDLE,UINT,LPCSTR);
193UINT WINAPI MsiRecordSetStreamW(MSIHANDLE,UINT,LPCWSTR);
194#define MsiRecordSetStream WINELIB_NAME_AW(MsiRecordSetStream)
195UINT WINAPI MsiRecordReadStream(MSIHANDLE,UINT,char*,LPDWORD);
196
197UINT WINAPI MsiDatabaseGetPrimaryKeysA(MSIHANDLE,LPCSTR,MSIHANDLE*);
198UINT WINAPI MsiDatabaseGetPrimaryKeysW(MSIHANDLE,LPCWSTR,MSIHANDLE*);
199#define MsiDatabaseGetPrimaryKeys WINELIB_NAME_AW(MsiDatabaseGetPrimaryKeys)
200
201/* installing */
202UINT WINAPI MsiDoActionA(MSIHANDLE,LPCSTR );
203UINT WINAPI MsiDoActionW(MSIHANDLE,LPCWSTR );
204#define MsiDoAction WINELIB_NAME_AW(MsiDoAction)
205
206/* database transforms */
207UINT WINAPI MsiDatabaseApplyTransformA(MSIHANDLE,LPCSTR,int);
208UINT WINAPI MsiDatabaseApplyTransformW(MSIHANDLE,LPCWSTR,int);
209#define MsiDatabaseApplyTransform WINELIB_NAME_AW(MsiDatabaseApplyTransform)
210UINT WINAPI MsiDatabaseGenerateTransformA(MSIHANDLE,MSIHANDLE,LPCSTR,int,int);
211UINT WINAPI MsiDatabaseGenerateTransformW(MSIHANDLE,MSIHANDLE,LPCWSTR,int,int);
212#define MsiDatabaseGenerateTransform WINELIB_NAME_AW(MsiDatabaseGenerateTransform)
213
214UINT WINAPI MsiDatabaseCommit(MSIHANDLE);
215
216/* install state */
217UINT WINAPI MsiGetFeatureStateA(MSIHANDLE,LPCSTR,INSTALLSTATE*,INSTALLSTATE*);
218UINT WINAPI MsiGetFeatureStateW(MSIHANDLE,LPCWSTR,INSTALLSTATE*,INSTALLSTATE*);
219#define MsiGetFeatureState WINELIB_NAME_AW(MsiGetFeatureState)
220UINT WINAPI MsiGetFeatureValidStatesA(MSIHANDLE,LPCSTR,LPDWORD);
221UINT WINAPI MsiGetFeatureValidStatesW(MSIHANDLE,LPCWSTR,LPDWORD);
222#define MsiGetFeatureValidStates WINELIB_NAME_AW(MsiGetFeatureValidStates)
223UINT WINAPI MsiSetComponentStateA(MSIHANDLE,LPCSTR,INSTALLSTATE);
224UINT WINAPI MsiSetComponentStateW(MSIHANDLE,LPCWSTR,INSTALLSTATE);
225#define MsiSetComponentState WINELIB_NAME_AW(MsiSetComponentState)
226UINT WINAPI MsiGetComponentStateA(MSIHANDLE,LPCSTR,INSTALLSTATE*,INSTALLSTATE*);
227UINT WINAPI MsiGetComponentStateW(MSIHANDLE,LPCWSTR,INSTALLSTATE*,INSTALLSTATE*);
228#define MsiGetComponentState WINELIB_NAME_AW(MsiGetComponentState)
229
230MSICONDITION WINAPI MsiEvaluateConditionA(MSIHANDLE,LPCSTR);
231MSICONDITION WINAPI MsiEvaluateConditionW(MSIHANDLE,LPCWSTR);
232#define MsiEvaluateCondition WINELIB_NAME_AW(MsiEvaluateCondition)
233
234/* property functions */
235UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, LPDWORD);
236UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, LPDWORD);
237#define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
238
239UINT WINAPI MsiSetPropertyA(MSIHANDLE, LPCSTR, LPCSTR);
240UINT WINAPI MsiSetPropertyW(MSIHANDLE, LPCWSTR, LPCWSTR);
241#define MsiSetProperty WINELIB_NAME_AW(MsiSetProperty)
242
243UINT WINAPI MsiGetTargetPathA(MSIHANDLE,LPCSTR,LPSTR,LPDWORD);
244UINT WINAPI MsiGetTargetPathW(MSIHANDLE,LPCWSTR,LPWSTR,LPDWORD);
245#define MsiGetTargetPath WINELIB_NAME_AW(MsiGetTargetPath)
246
247UINT WINAPI MsiSetTargetPathA(MSIHANDLE, LPCSTR, LPCSTR);
248UINT WINAPI MsiSetTargetPathW(MSIHANDLE, LPCWSTR, LPCWSTR);
249#define MsiSetTargetPath WINELIB_NAME_AW(MsiSetTargetPath)
250
251UINT WINAPI MsiGetSourcePathA(MSIHANDLE,LPCSTR,LPSTR,LPDWORD);
252UINT WINAPI MsiGetSourcePathW(MSIHANDLE,LPCWSTR,LPWSTR,LPDWORD);
253#define MsiGetSourcePath WINELIB_NAME_AW(MsiGetSourcePath)
254
255MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE);
256
257UINT WINAPI MsiViewGetColumnInfo(MSIHANDLE, MSICOLINFO, MSIHANDLE*);
258INT WINAPI MsiProcessMessage(MSIHANDLE, INSTALLMESSAGE, MSIHANDLE);
259
260UINT WINAPI MsiSetFeatureStateA(MSIHANDLE, LPCSTR, INSTALLSTATE);
261UINT WINAPI MsiSetFeatureStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE);
262#define MsiSetFeatureState WINELIB_NAME_AW(MsiSetFeatureState)
263
264UINT WINAPI MsiPreviewDialogA(MSIHANDLE, LPCSTR);
265UINT WINAPI MsiPreviewDialogW(MSIHANDLE, LPCWSTR);
266#define MsiPreviewDialog WINELIB_NAME_AW(MsiPreviewDialog)
267
268UINT WINAPI MsiPreviewBillboardA(MSIHANDLE, LPCSTR, LPCSTR);
269UINT WINAPI MsiPreviewBillboardW(MSIHANDLE, LPCWSTR, LPCWSTR);
270#define MsiPreviewBillboard WINELIB_NAME_AW(MsiPreviewBillboard)
271
272UINT WINAPI MsiCreateTransformSummaryInfoA(MSIHANDLE, MSIHANDLE, LPCSTR, int, int);
273UINT WINAPI MsiCreateTransformSummaryInfoW(MSIHANDLE, MSIHANDLE, LPCWSTR, int, int);
274#define MsiCreateTransformSummaryInfo WINELIB_NAME_AW(MsiCreateTransformSummaryInfo)
275
276UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *);
277UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *);
278#define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
279
280UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE,UINT,PUINT,LPINT,FILETIME*,LPSTR,LPDWORD);
281UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE,UINT,PUINT,LPINT,FILETIME*,LPWSTR,LPDWORD);
282#define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
283
284UINT WINAPI MsiSummaryInfoSetPropertyA(MSIHANDLE, UINT, UINT, INT, FILETIME*, LPCSTR);
285UINT WINAPI MsiSummaryInfoSetPropertyW(MSIHANDLE, UINT, UINT, INT, FILETIME*, LPCWSTR);
286#define MsiSummaryInfoSetProperty WINELIB_NAME_AW(MsiSummaryInfoSetProperty)
287
288UINT WINAPI MsiDatabaseExportA(MSIHANDLE, LPCSTR, LPCSTR, LPCSTR);
289UINT WINAPI MsiDatabaseExportW(MSIHANDLE, LPCWSTR, LPCWSTR, LPCWSTR);
290#define MsiDatabaseExport WINELIB_NAME_AW(MsiDatabaseExport)
291
292UINT WINAPI MsiDatabaseImportA(MSIHANDLE, LPCSTR, LPCSTR);
293UINT WINAPI MsiDatabaseImportW(MSIHANDLE, LPCWSTR, LPCWSTR);
294#define MsiDatabaseImport WINELIB_NAME_AW(MsiDatabaseImport)
295
296UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE*);
297UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE*);
298#define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
299
300MSICONDITION WINAPI MsiDatabaseIsTablePersistentA(MSIHANDLE, LPCSTR);
301MSICONDITION WINAPI MsiDatabaseIsTablePersistentW(MSIHANDLE, LPCWSTR);
302#define MsiDatabaseIsTablePersistent WINELIB_NAME_AW(MsiDatabaseIsTablePersistent)
303
304UINT WINAPI MsiSequenceA(MSIHANDLE, LPCSTR, INT);
305UINT WINAPI MsiSequenceW(MSIHANDLE, LPCWSTR, INT);
306#define MsiSequence WINELIB_NAME_AW(MsiSequence)
307
308UINT WINAPI MsiSummaryInfoPersist(MSIHANDLE);
309UINT WINAPI MsiSummaryInfoGetPropertyCount(MSIHANDLE,PUINT);
310
311UINT WINAPI MsiEnableUIPreview(MSIHANDLE, MSIHANDLE*);
312BOOL WINAPI MsiGetMode(MSIHANDLE, MSIRUNMODE);
313UINT WINAPI MsiSetMode(MSIHANDLE, MSIRUNMODE, BOOL);
314
315UINT WINAPI MsiViewModify(MSIHANDLE, MSIMODIFY, MSIHANDLE);
316
317UINT WINAPI MsiGetFeatureCostA(MSIHANDLE, LPCSTR, MSICOSTTREE, INSTALLSTATE, LPINT);
318UINT WINAPI MsiGetFeatureCostW(MSIHANDLE, LPCWSTR, MSICOSTTREE, INSTALLSTATE, LPINT);
319#define MsiGetFeatureCost WINELIB_NAME_AW(MsiGetFeatureCost)
320
321LANGID WINAPI MsiGetLanguage(MSIHANDLE);
322
323UINT WINAPI MsiSetInstallLevel(MSIHANDLE, int);
324
325MSIHANDLE WINAPI MsiGetLastErrorRecord(void);
326
327#ifdef __cplusplus
328}
329#endif
330
331#endif /* __WINE_MSIQUERY_H */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette