user/tests: Write-strings warnings fix.
[wine/multimedia.git] / include / msiquery.h
blobb1de1903d7d3e09b1d7068610ea63df57a4f6a60
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 tagMSIMODIFY
42 MSIMODIFY_REFRESH = 0,
43 MSIMODIFY_INSERT = 1,
44 MSIMODIFY_UPDATE = 2,
45 MSIMODIFY_ASSIGN = 3,
46 MSIMODIFY_REPLACE = 4,
47 MSIMODIFY_MERGE = 5,
48 MSIMODIFY_DELETE = 6,
49 MSIMODIFY_INSERT_TEMPORARY = 7,
50 MSIMODIFY_VALIDATE = 8,
51 MSIMODIFY_VALIDATE_NEW = 9,
52 MSIMODIFY_VALIDATE_FIELD = 10,
53 MSIMODIFY_VALIDATE_DELETE = 11
54 } MSIMODIFY;
56 #ifndef __WINESRC__
57 #define MSIDBOPEN_READONLY (LPCTSTR)0
58 #define MSIDBOPEN_TRANSACT (LPCTSTR)1
59 #define MSIDBOPEN_DIRECT (LPCTSTR)2
60 #define MSIDBOPEN_CREATE (LPCTSTR)3
61 #define MSIDBOPEN_CREATEDIRECT (LPCTSTR)4
62 #else
63 #define MSIDBOPEN_READONLY (LPCWSTR)0
64 #define MSIDBOPEN_TRANSACT (LPCWSTR)1
65 #define MSIDBOPEN_DIRECT (LPCWSTR)2
66 #define MSIDBOPEN_CREATE (LPCWSTR)3
67 #define MSIDBOPEN_CREATEDIRECT (LPCWSTR)4
68 #endif
70 typedef enum tagMSIRUNMODE
72 MSIRUNMODE_ADMIN = 0,
73 MSIRUNMODE_ADVERTISE = 1,
74 MSIRUNMODE_MAINTENANCE = 2,
75 MSIRUNMODE_ROLLBACKENABLED = 3,
76 MSIRUNMODE_LOGENABLED = 4,
77 MSIRUNMODE_OPERATIONS = 5,
78 MSIRUNMODE_REBOOTATEND = 6,
79 MSIRUNMODE_REBOOTNOW = 7,
80 MSIRUNMODE_CABINET = 8,
81 MSIRUNMODE_SOURCESHORTNAMES = 9,
82 MSIRUNMODE_TARGETSHORTNAMES = 10,
83 MSIRUNMODE_RESERVED11 = 11,
84 MSIRUNMODE_WINDOWS9X = 12,
85 MSIRUNMODE_ZAWENABLED = 13,
86 MSIRUNMODE_RESERVED14 = 14,
87 MSIRUNMODE_RESERVED15 = 15,
88 MSIRUNMODE_SCHEDULED = 16,
89 MSIRUNMODE_ROLLBACK = 17,
90 MSIRUNMODE_COMMIT = 18
91 } MSIRUNMODE;
93 typedef enum tagMSIDBERROR
95 MSIDBERROR_INVALIDARG = -3,
96 MSIDBERROR_MOREDATA = -2,
97 MSIDBERROR_FUNCTIONERROR = -1,
98 MSIDBERROR_NOERROR = 0,
99 MSIDBERROR_DUPLICATEKEY = 1,
100 MSIDBERROR_REQUIRED = 2,
101 MSIDBERROR_BADLINK = 3,
102 MSIDBERROR_OVERFLOW = 4,
103 MSIDBERROR_UNDERFLOW = 5,
104 MSIDBERROR_NOTINSET = 6,
105 MSIDBERROR_BADVERSION = 7,
106 MSIDBERROR_BADCASE = 8,
107 MSIDBERROR_BADGUID = 9,
108 MSIDBERROR_BADWILDCARD = 10,
109 MSIDBERROR_BADIDENTIFIER = 11,
110 MSIDBERROR_BADLANGUAGE = 12,
111 MSIDBERROR_BADFILENAME = 13,
112 MSIDBERROR_BADPATH = 14,
113 MSIDBERROR_BADCONDITION = 15,
114 MSIDBERROR_BADFORMATTED = 16,
115 MSIDBERROR_BADTEMPLATE = 17,
116 MSIDBERROR_BADDEFAULTDIR = 18,
117 MSIDBERROR_BADREGPATH = 19,
118 MSIDBERROR_BADCUSTOMSOURCE = 20,
119 MSIDBERROR_BADPROPERTY = 21,
120 MSIDBERROR_MISSINGDATA = 22,
121 MSIDBERROR_BADCATEGORY = 23,
122 MSIDBERROR_BADKEYTABLE = 24,
123 MSIDBERROR_BADMAXMINVALUES = 25,
124 MSIDBERROR_BADCABINET = 26,
125 MSIDBERROR_BADSHORTCUT= 27,
126 MSIDBERROR_STRINGOVERFLOW = 28,
127 MSIDBERROR_BADLOCALIZEATTRIB = 29
128 } MSIDBERROR;
130 typedef enum tagMSIDBSTATE
132 MSIDBSTATE_ERROR = -1,
133 MSIDBSTATE_READ = 0,
134 MSIDBSTATE_WRITE = 1
135 } MSIDBSTATE;
137 /* view manipulation */
138 UINT WINAPI MsiViewFetch(MSIHANDLE,MSIHANDLE*);
139 UINT WINAPI MsiViewExecute(MSIHANDLE,MSIHANDLE);
140 UINT WINAPI MsiViewClose(MSIHANDLE);
141 UINT WINAPI MsiDatabaseOpenViewA(MSIHANDLE,LPCSTR,MSIHANDLE*);
142 UINT WINAPI MsiDatabaseOpenViewW(MSIHANDLE,LPCWSTR,MSIHANDLE*);
143 #define MsiDatabaseOpenView WINELIB_NAME_AW(MsiDatabaseOpenView)
144 MSIDBERROR WINAPI MsiViewGetErrorA(MSIHANDLE,LPSTR,DWORD*);
145 MSIDBERROR WINAPI MsiViewGetErrorW(MSIHANDLE,LPWSTR,DWORD*);
146 #define MsiViewGetError WINELIB_NAME_AW(MsiViewGetError)
148 MSIDBSTATE WINAPI MsiGetDatabaseState(MSIHANDLE);
150 /* record manipulation */
151 MSIHANDLE WINAPI MsiCreateRecord(unsigned int);
152 UINT WINAPI MsiRecordClearData(MSIHANDLE);
153 UINT WINAPI MsiRecordSetInteger(MSIHANDLE,unsigned int,int);
154 UINT WINAPI MsiRecordSetStringA(MSIHANDLE,unsigned int,LPCSTR);
155 UINT WINAPI MsiRecordSetStringW(MSIHANDLE,unsigned int,LPCWSTR);
156 #define MsiRecordSetString WINELIB_NAME_AW(MsiRecordSetString)
157 UINT WINAPI MsiRecordGetStringA(MSIHANDLE,unsigned int,LPSTR,DWORD*);
158 UINT WINAPI MsiRecordGetStringW(MSIHANDLE,unsigned int,LPWSTR,DWORD*);
159 #define MsiRecordGetString WINELIB_NAME_AW(MsiRecordGetString)
160 UINT WINAPI MsiRecordGetFieldCount(MSIHANDLE);
161 int WINAPI MsiRecordGetInteger(MSIHANDLE,unsigned int);
162 UINT WINAPI MsiRecordDataSize(MSIHANDLE,unsigned int);
163 BOOL WINAPI MsiRecordIsNull(MSIHANDLE,unsigned int);
164 UINT WINAPI MsiFormatRecordA(MSIHANDLE,MSIHANDLE,LPSTR,DWORD*);
165 UINT WINAPI MsiFormatRecordW(MSIHANDLE,MSIHANDLE,LPWSTR,DWORD*);
166 #define MsiFormatRecord WINELIB_NAME_AW(MsiFormatRecord)
167 UINT WINAPI MsiRecordSetStreamA(MSIHANDLE,unsigned int,LPCSTR);
168 UINT WINAPI MsiRecordSetStreamW(MSIHANDLE,unsigned int,LPCWSTR);
169 #define MsiRecordSetStream WINELIB_NAME_AW(MsiRecordSetStream)
170 UINT WINAPI MsiRecordReadStream(MSIHANDLE,unsigned int,char*,DWORD *);
172 UINT WINAPI MsiDatabaseGetPrimaryKeysA(MSIHANDLE,LPCSTR,MSIHANDLE*);
173 UINT WINAPI MsiDatabaseGetPrimaryKeysW(MSIHANDLE,LPCWSTR,MSIHANDLE*);
174 #define MsiDatabaseGetPrimaryKeys WINELIB_NAME_AW(MsiDatabaseGetPrimaryKeys)
176 /* installing */
177 UINT WINAPI MsiDoActionA(MSIHANDLE,LPCSTR );
178 UINT WINAPI MsiDoActionW(MSIHANDLE,LPCWSTR );
179 #define MsiDoAction WINELIB_NAME_AW(MsiDoAction)
181 /* database transforms */
182 UINT WINAPI MsiDatabaseApplyTransformA(MSIHANDLE,LPCSTR,int);
183 UINT WINAPI MsiDatabaseApplyTransformW(MSIHANDLE,LPCWSTR,int);
184 #define MsiDatabaseApplyTransform WINELIB_NAME_AW(MsiDatabaseApplyTransform)
185 UINT WINAPI MsiDatabaseGenerateTransformA(MSIHANDLE,MSIHANDLE,LPCSTR,int,int);
186 UINT WINAPI MsiDatabaseGenerateTransformW(MSIHANDLE,MSIHANDLE,LPCWSTR,int,int);
187 #define MsiDatabaseGenerateTransform WINELIB_NAME_AW(MsiDatabaseGenerateTransform)
189 UINT WINAPI MsiDatabaseCommit(MSIHANDLE);
191 /* install state */
192 UINT WINAPI MsiGetFeatureStateA(MSIHANDLE,LPSTR,INSTALLSTATE*,INSTALLSTATE*);
193 UINT WINAPI MsiGetFeatureStateW(MSIHANDLE,LPWSTR,INSTALLSTATE*,INSTALLSTATE*);
194 #define MsiGetFeatureState WINELIB_NAME_AW(MsiGetFeatureState)
195 UINT WINAPI MsiSetComponentStateA(MSIHANDLE,LPCSTR,INSTALLSTATE);
196 UINT WINAPI MsiSetComponentStateW(MSIHANDLE,LPCWSTR,INSTALLSTATE);
197 #define MsiSetComponentState WINELIB_NAME_AW(MsiSetComponentState)
198 UINT WINAPI MsiGetComponentStateA(MSIHANDLE,LPSTR,INSTALLSTATE*,INSTALLSTATE*);
199 UINT WINAPI MsiGetComponentStateW(MSIHANDLE,LPWSTR,INSTALLSTATE*,INSTALLSTATE*);
200 #define MsiGetComponentState WINELIB_NAME_AW(MsiGetComponentState)
202 MSICONDITION WINAPI MsiEvaluateConditionA(MSIHANDLE,LPCSTR);
203 MSICONDITION WINAPI MsiEvaluateConditionW(MSIHANDLE,LPCWSTR);
204 #define MsiEvaluateCondition WINELIB_NAME_AW(MsiEvaluateCondition)
206 /* property functions */
207 UINT WINAPI MsiGetPropertyA(MSIHANDLE, LPCSTR, LPSTR, DWORD*);
208 UINT WINAPI MsiGetPropertyW(MSIHANDLE, LPCWSTR, LPWSTR, DWORD*);
209 #define MsiGetProperty WINELIB_NAME_AW(MsiGetProperty)
211 UINT WINAPI MsiSetPropertyA(MSIHANDLE, LPCSTR, LPCSTR);
212 UINT WINAPI MsiSetPropertyW(MSIHANDLE, LPCWSTR, LPCWSTR);
213 #define MsiSetProperty WINELIB_NAME_AW(MsiSetProperty)
215 UINT WINAPI MsiGetTargetPathA(MSIHANDLE,LPCSTR,LPSTR,DWORD*);
216 UINT WINAPI MsiGetTargetPathW(MSIHANDLE,LPCWSTR,LPWSTR,DWORD*);
217 #define MsiGetTargetPath WINELIB_NAME_AW(MsiGetTargetPath)
219 UINT WINAPI MsiSetTargetPathA(MSIHANDLE, LPCSTR, LPCSTR);
220 UINT WINAPI MsiSetTargetPathW(MSIHANDLE, LPCWSTR, LPCWSTR);
221 #define MsiSetTargetPath WINELIB_NAME_AW(MsiSetTargetPath)
223 UINT WINAPI MsiGetSourcePathA(MSIHANDLE,LPCSTR,LPSTR,DWORD*);
224 UINT WINAPI MsiGetSourcePathW(MSIHANDLE,LPCWSTR,LPWSTR,DWORD*);
225 #define MsiGetSourcePath WINELIB_NAME_AW(MsiGetSourcePath)
227 MSIHANDLE WINAPI MsiGetActiveDatabase(MSIHANDLE);
229 UINT WINAPI MsiViewGetColumnInfo(MSIHANDLE, MSICOLINFO, MSIHANDLE*);
230 INT WINAPI MsiProcessMessage(MSIHANDLE, INSTALLMESSAGE, MSIHANDLE);
232 UINT WINAPI MsiSetFeatureStateA(MSIHANDLE, LPCSTR, INSTALLSTATE);
233 UINT WINAPI MsiSetFeatureStateW(MSIHANDLE, LPCWSTR, INSTALLSTATE);
234 #define MsiSetFeatureState WINELIB_NAME_AW(MsiSetFeatureState)
236 UINT WINAPI MsiPreviewDialogA(MSIHANDLE, LPCSTR);
237 UINT WINAPI MsiPreviewDialogW(MSIHANDLE, LPCWSTR);
238 #define MsiPreviewDialog WINELIB_NAME_AW(MsiPreviewDialog)
240 UINT WINAPI MsiPreviewBillboardA(MSIHANDLE, LPCSTR, LPCSTR);
241 UINT WINAPI MsiPreviewBillboardW(MSIHANDLE, LPCWSTR, LPCWSTR);
242 #define MsiPreviewBillboard WINELIB_NAME_AW(MsiPreviewBillboard)
244 UINT WINAPI MsiGetSummaryInformationA(MSIHANDLE, LPCSTR, UINT, MSIHANDLE *);
245 UINT WINAPI MsiGetSummaryInformationW(MSIHANDLE, LPCWSTR, UINT, MSIHANDLE *);
246 #define MsiGetSummaryInformation WINELIB_NAME_AW(MsiGetSummaryInformation)
248 UINT WINAPI MsiSummaryInfoGetPropertyA(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPSTR,DWORD*);
249 UINT WINAPI MsiSummaryInfoGetPropertyW(MSIHANDLE,UINT,UINT*,INT*,FILETIME*,LPWSTR,DWORD*);
250 #define MsiSummaryInfoGetProperty WINELIB_NAME_AW(MsiSummaryInfoGetProperty)
252 UINT WINAPI MsiSummaryInfoSetPropertyA(MSIHANDLE, UINT, UINT, INT, FILETIME*, LPCSTR);
253 UINT WINAPI MsiSummaryInfoSetPropertyW(MSIHANDLE, UINT, UINT, INT, FILETIME*, LPCWSTR);
254 #define MsiSummaryInfoSetProperty WINELIB_NAME_AW(MsiSummaryInfoSetProperty)
256 UINT WINAPI MsiDatabaseExportA(MSIHANDLE, LPCSTR, LPCSTR, LPCSTR);
257 UINT WINAPI MsiDatabaseExportW(MSIHANDLE, LPCWSTR, LPCWSTR, LPCWSTR);
258 #define MsiDatabaseExport WINELIB_NAME_AW(MsiDatabaseExport)
260 UINT WINAPI MsiDatabaseImportA(MSIHANDLE, LPCSTR, LPCSTR);
261 UINT WINAPI MsiDatabaseImportW(MSIHANDLE, LPCWSTR, LPCWSTR);
262 #define MsiDatabaseImport WINELIB_NAME_AW(MsiDatabaseImport)
264 UINT WINAPI MsiOpenDatabaseW(LPCWSTR, LPCWSTR, MSIHANDLE*);
265 UINT WINAPI MsiOpenDatabaseA(LPCSTR, LPCSTR, MSIHANDLE*);
266 #define MsiOpenDatabase WINELIB_NAME_AW(MsiOpenDatabase)
268 MSICONDITION WINAPI MsiDatabaseIsTablePersistentA(MSIHANDLE, LPSTR);
269 MSICONDITION WINAPI MsiDatabaseIsTablePersistentW(MSIHANDLE, LPWSTR);
270 #define MsiDatabaseIsTablePersistent WINELIB_NAME_AW(MsiDatabaseIsTablePersistent)
272 UINT WINAPI MsiSequenceA(MSIHANDLE, LPCSTR, INT);
273 UINT WINAPI MsiSequenceW(MSIHANDLE, LPCWSTR, INT);
274 #define MsiSequence WINELIB_NAME_AW(MsiSequence)
276 UINT WINAPI MsiSummaryInfoPersist(MSIHANDLE);
277 UINT WINAPI MsiSummaryInfoGetPropertyCount(MSIHANDLE,UINT*);
279 UINT WINAPI MsiEnableUIPreview(MSIHANDLE, MSIHANDLE*);
280 BOOL WINAPI MsiGetMode(MSIHANDLE, MSIRUNMODE);
281 BOOL WINAPI MsiSetMode(MSIHANDLE, MSIRUNMODE, BOOL);
283 UINT WINAPI MsiViewModify(MSIHANDLE, MSIMODIFY, MSIHANDLE);
285 #endif /* __WINE_MSIQUERY_H */