dbs.idl: Add missing DBROWSTATUSENUM values.
[wine/multimedia.git] / include / dbs.idl
blobee8eacfc78163c3a1239c5880704b9160390f2db
1 /*
2 * Copyright (C) 2006 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 typedef DWORD DBKIND;
21 enum DBKINDENUM {
22 DBKIND_GUID_NAME,
23 DBKIND_GUID_PROPID,
24 DBKIND_NAME,
25 DBKIND_PGUID_NAME,
26 DBKIND_PGUID_PROPID,
27 DBKIND_PROPID,
28 DBKIND_GUID,
31 typedef struct tagDBID {
32 [switch_type(DBKIND), switch_is(eKind)] union
34 [case(DBKIND_GUID_NAME, DBKIND_GUID_PROPID, DBKIND_GUID, DBKIND_NAME, DBKIND_PROPID)]
35 GUID guid;
36 [case(DBKIND_PGUID_NAME, DBKIND_PGUID_PROPID)]
37 GUID *pguid;
38 [default]
40 } uGuid;
41 DBKIND eKind;
42 [switch_type(DBKIND), switch_is(eKind)] union
44 [case(DBKIND_GUID_NAME, DBKIND_NAME, DBKIND_PGUID_NAME)]
45 LPOLESTR pwszName;
46 [case(DBKIND_GUID_PROPID, DBKIND_GUID, DBKIND_PGUID_PROPID, DBKIND_PROPID)]
47 ULONG ulPropid;
48 [default]
50 } uName;
51 } DBID;
53 typedef DWORD DBPROPID;
55 typedef struct tagDBPROPIDSET {
56 [size_is(cPropertyIDs)] DBPROPID *rgPropertyIDs;
57 ULONG cPropertyIDs;
58 GUID guidPropertySet;
59 } DBPROPIDSET;
61 typedef DWORD DBPROPOPTIONS;
63 enum DBPROPOPTIONENUM {
64 DBPROPOPTIONS_REQUIRED = 0,
65 DBPROPOPTIONS_SETIFCHEAP = 1,
66 DBPROPOPTIONS_OPTIONAL = 1,
69 typedef DWORD DBPROPSTATUS;
71 typedef struct tagDBPROP {
72 DBPROPID dwPropertyID;
73 DBPROPOPTIONS dwOptions;
74 DBPROPSTATUS dwStatus;
75 DBID colid;
76 VARIANT vValue;
77 } DBPROP;
79 typedef struct tagDBPROPSET {
80 [size_is(cProperties)] DBPROP *rgProperties;
81 ULONG cProperties;
82 GUID guidPropertySet;
83 } DBPROPSET;
85 typedef DWORD DBPROPFLAGS;
87 typedef struct tagDBPROPINFO {
88 LPOLESTR pwszDescription;
89 DBPROPID dwPropertyID;
90 DBPROPFLAGS dwFlags;
91 VARTYPE vtType;
92 VARIANT vValues;
93 } DBPROPINFO;
95 typedef DBPROPINFO *PDBPROPINFO;
97 typedef struct tagDBPROPINFOSET {
98 [size_is(cPropertyInfos)] PDBPROPINFO rgPropertyInfos;
99 ULONG cPropertyInfos;
100 GUID guidPropertySet;
101 } DBPROPINFOSET;
103 typedef DWORD DBBINDURLFLAG;
104 typedef DWORD DBBINDURLSTATUS;
106 typedef struct tagDBIMPLICITSESSION
108 IUnknown *pUnkOuter;
109 IID *piid;
110 IUnknown *pSession;
111 } DBIMPLICITSESSION;
113 typedef WORD DBTYPE;
115 enum DBTYPEENUM
117 DBTYPE_EMPTY = 0,
118 DBTYPE_NULL = 1,
119 DBTYPE_I2 = 2,
120 DBTYPE_I4 = 3,
121 DBTYPE_R4 = 4,
122 DBTYPE_R8 = 5,
123 DBTYPE_CY = 6,
124 DBTYPE_DATE = 7,
125 DBTYPE_BSTR = 8,
126 DBTYPE_IDISPATCH = 9,
127 DBTYPE_ERROR = 10,
128 DBTYPE_BOOL = 11,
129 DBTYPE_VARIANT = 12,
130 DBTYPE_IUNKNOWN = 13,
131 DBTYPE_DECIMAL = 14,
132 DBTYPE_I1 = 16,
133 DBTYPE_UI1 = 17,
134 DBTYPE_UI2 = 18,
135 DBTYPE_UI4 = 19,
136 DBTYPE_I8 = 20,
137 DBTYPE_UI8 = 21,
138 DBTYPE_GUID = 72,
139 DBTYPE_BYTES = 128,
140 DBTYPE_STR = 129,
141 DBTYPE_WSTR = 130,
142 DBTYPE_NUMERIC = 131,
143 DBTYPE_UDT = 132,
144 DBTYPE_DBDATE = 133,
145 DBTYPE_DBTIME = 134,
146 DBTYPE_DBTIMESTAMP = 135,
148 DBTYPE_VECTOR = 0x1000,
149 DBTYPE_ARRAY = 0x2000,
150 DBTYPE_BYREF = 0x4000,
151 DBTYPE_RESERVED = 0x8000
154 enum DBTYPEENUM15
156 DBTYPE_HCHAPTER = 136
159 enum DBTYPEENUM20
161 DBTYPE_FILETIME = 64,
162 DBTYPE_PROPVARIANT = 138,
163 DBTYPE_VARNUMERIC = 139
166 typedef DWORD DBSTATUS;
168 enum DBSTATUSENUM
170 DBSTATUS_S_OK = 0,
171 DBSTATUS_E_BADACCESSOR = 1,
172 DBSTATUS_E_CANTCONVERTVALUE = 2,
173 DBSTATUS_S_ISNULL = 3,
174 DBSTATUS_S_TRUNCATED = 4,
175 DBSTATUS_E_SIGNMISMATCH = 5,
176 DBSTATUS_E_DATAOVERFLOW = 6,
177 DBSTATUS_E_CANTCREATE = 7,
178 DBSTATUS_E_UNAVAILABLE = 8,
179 DBSTATUS_E_PERMISSIONDENIED = 9,
180 DBSTATUS_E_INTEGRITYVIOLATION = 10,
181 DBSTATUS_E_SCHEMAVIOLATION = 11,
182 DBSTATUS_E_BADSTATUS = 12,
183 DBSTATUS_S_DEFAULT = 13
186 enum DBPROPENUM
188 DBPROP_ABORTPRESERVE = 0x00000002,
189 DBPROP_ACTIVESESSIONS = 0x00000003,
190 DBPROP_ASYNCTXNCOMMIT = 0x00000004,
191 DBPROP_AUTH_CACHE_AUTHINFO = 0x00000005,
192 DBPROP_AUTH_ENCRYPT_PASSWORD = 0x00000006,
193 DBPROP_AUTH_INTEGRATED = 0x00000007,
194 DBPROP_AUTH_MASK_PASSWORD = 0x00000008,
195 DBPROP_AUTH_PASSWORD = 0x00000009,
196 DBPROP_AUTH_PERSIST_ENCRYPTED = 0x0000000a,
197 DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO = 0x0000000b,
198 DBPROP_AUTH_USERID = 0x0000000c,
199 DBPROP_BLOCKINGSTORAGEOBJECTS = 0x0000000d,
200 DBPROP_BOOKMARKS = 0x0000000e,
201 DBPROP_BOOKMARKSKIPPED = 0x0000000f,
202 DBPROP_BOOKMARKTYPE = 0x00000010,
203 DBPROP_CACHEDEFERRED = 0x00000011,
204 DBPROP_CANFETCHBACKWARDS = 0x00000012,
205 DBPROP_CANHOLDROWS = 0x00000013,
206 DBPROP_CANSCROLLBACKWARDS = 0x00000015,
207 DBPROP_CATALOGLOCATION = 0x00000016,
208 DBPROP_CATALOGTERM = 0x00000017,
209 DBPROP_CATALOGUSAGE = 0x00000018,
210 DBPROP_COL_AUTOINCREMENT = 0x0000001a,
211 DBPROP_COL_DEFAULT = 0x0000001b,
212 DBPROP_COL_DESCRIPTION = 0x0000001c,
213 DBPROP_COL_NULLABLE = 0x0000001d,
214 DBPROP_COL_PRIMARYKEY = 0x0000001e,
215 DBPROP_COL_UNIQUE = 0x0000001f,
216 DBPROP_COLUMNDEFINITION = 0x00000020,
217 DBPROP_COLUMNRESTRICT = 0x00000021,
218 DBPROP_COMMANDTIMEOUT = 0x00000022,
219 DBPROP_COMMITPRESERVE = 0x00000023,
220 DBPROP_CONCATNULLBEHAVIOR = 0x00000024,
221 DBPROP_CURRENTCATALOG = 0x00000025,
222 DBPROP_DATASOURCENAME = 0x00000026,
223 DBPROP_DATASOURCEREADONLY = 0x00000027,
224 DBPROP_DBMSNAME = 0x00000028,
225 DBPROP_DBMSVER = 0x00000029,
226 DBPROP_DEFERRED = 0x0000002a,
227 DBPROP_DELAYSTORAGEOBJECTS = 0x0000002b,
228 DBPROP_GROUPBY = 0x0000002c,
229 DBPROP_HETEROGENEOUSTABLES = 0x0000002d,
230 DBPROP_IDENTIFIERCASE = 0x0000002e,
231 DBPROP_IMMOBILEROWS = 0x0000002f,
232 DBPROP_INDEX_AUTOUPDATE = 0x00000030,
233 DBPROP_INDEX_CLUSTERED = 0x00000031,
234 DBPROP_INDEX_FILLFACTOR = 0x00000032,
235 DBPROP_INDEX_INITIALSIZE = 0x00000033,
236 DBPROP_INDEX_NULLCOLLATION = 0x00000034,
237 DBPROP_INDEX_NULLS = 0x00000035,
238 DBPROP_INDEX_PRIMARYKEY = 0x00000036,
239 DBPROP_INDEX_SORTBOOKMARKS = 0x00000037,
240 DBPROP_INDEX_TYPE = 0x00000038,
241 DBPROP_INDEX_UNIQUE = 0x00000039,
242 DBPROP_INIT_DATASOURCE = 0x0000003b,
243 DBPROP_INIT_HWND = 0x0000003c,
244 DBPROP_INIT_IMPERSONATION_LEVEL = 0x0000003d,
245 DBPROP_INIT_LOCATION = 0x0000003e,
246 DBPROP_INIT_MODE = 0x0000003f,
247 DBPROP_INIT_PROMPT = 0x00000040,
248 DBPROP_INIT_PROTECTION_LEVEL = 0x00000041,
249 DBPROP_INIT_TIMEOUT = 0x00000042,
250 DBPROP_LITERALBOOKMARKS = 0x00000043,
251 DBPROP_LITERALIDENTITY = 0x00000044,
252 DBPROP_MAXINDEXSIZE = 0x00000046,
253 DBPROP_MAXOPENROWS = 0x00000047,
254 DBPROP_MAXPENDINGROWS = 0x00000048,
255 DBPROP_MAXROWS = 0x00000049,
256 DBPROP_MAXROWSIZE = 0x0000004a,
257 DBPROP_MAXROWSIZEINCLUDESBLOB = 0x0000004b,
258 DBPROP_MAXTABLESINSELECT = 0x0000004c,
259 DBPROP_MAYWRITECOLUMN = 0x0000004d,
260 DBPROP_MEMORYUSAGE = 0x0000004e,
261 DBPROP_MULTIPLESTORAGEOBJECTS = 0x00000050,
262 DBPROP_MULTITABLEUPDATE = 0x00000051,
263 DBPROP_NOTIFICATIONPHASES = 0x00000052,
264 DBPROP_NULLCOLLATION = 0x00000053,
265 DBPROP_OLEOBJECTS = 0x00000054,
266 DBPROP_ORDERBYCOLUMNSINSELECT = 0x00000055,
267 DBPROP_ORDEREDBOOKMARKS = 0x00000056,
268 DBPROP_OTHERINSERT = 0x00000057,
269 DBPROP_OTHERUPDATEDELETE = 0x00000058,
270 DBPROP_OWNINSERT = 0x00000059,
271 DBPROP_OWNUPDATEDELETE = 0x0000005a,
272 DBPROP_PREPAREABORTBEHAVIOR = 0x0000005b,
273 DBPROP_PREPARECOMMITBEHAVIOR = 0x0000005c,
274 DBPROP_PROCEDURETERM = 0x0000005d,
275 DBPROP_PROVIDERNAME = 0x00000060,
276 DBPROP_PROVIDEROLEDBVER = 0x00000061,
277 DBPROP_PROVIDERVER = 0x00000062,
278 DBPROP_QUICKRESTART = 0x00000063,
279 DBPROP_QUOTEDIDENTIFIERCASE = 0x00000064,
280 DBPROP_REENTRANTEVENTS = 0x00000065,
281 DBPROP_REMOVEDELETED = 0x00000066,
282 DBPROP_REPORTMULTIPLECHANGES = 0x00000067,
283 DBPROP_ROWRESTRICT = 0x00000068,
284 DBPROP_ROWTHREADMODEL = 0x00000069,
285 DBPROP_SCHEMATERM = 0x0000006a,
286 DBPROP_SCHEMAUSAGE = 0x0000006b,
287 DBPROP_SERVERCURSOR = 0x0000006c,
288 DBPROP_SQLSUPPORT = 0x0000006d,
289 DBPROP_STRUCTUREDSTORAGE = 0x0000006f,
290 DBPROP_SUBQUERIES = 0x00000070,
291 DBPROP_SUPPORTEDTXNISOLEVELS = 0x00000071,
292 DBPROP_SUPPORTEDTXNISORETAIN = 0x00000072,
293 DBPROP_TABLETERM = 0x00000073,
294 DBPROP_TRANSACTEDOBJECT = 0x00000074,
295 DBPROP_UPDATABILITY = 0x00000075,
296 DBPROP_USERNAME = 0x00000076,
297 DBPROP_STRONGIDENTITY = 0x00000077,
298 DBPROP_BYREFACCESSORS = 0x00000078,
299 DBPROP_IAccessor = 0x00000079,
300 DBPROP_IColumnsInfo = 0x0000007a,
301 DBPROP_IColumnsRowset = 0x0000007b,
302 DBPROP_IConnectionPointContainer = 0x0000007c,
303 DBPROP_IRowset = 0x0000007e,
304 DBPROP_IRowsetChange = 0x0000007f,
305 DBPROP_IRowsetIdentity = 0x00000080,
306 DBPROP_IRowsetInfo = 0x00000081,
307 DBPROP_IRowsetLocate = 0x00000082,
308 DBPROP_IRowsetResynch = 0x00000084,
309 DBPROP_IRowsetScroll = 0x00000085,
310 DBPROP_IRowsetUpdate = 0x00000086,
311 DBPROP_ISupportErrorInfo = 0x00000087,
312 DBPROP_ILockBytes = 0x00000088,
313 DBPROP_ISequentialStream = 0x00000089,
314 DBPROP_IStorage = 0x0000008a,
315 DBPROP_IStream = 0x0000008b,
316 DBPROP_TBL_TEMPTABLE = 0x0000008c,
317 DBPROP_IRowsetIndex = 0x0000009f,
318 DBPROP_INIT_PROVIDERSTRING = 0x000000a0,
319 DBPROP_SUPPORTEDTXNDDL = 0x000000a1,
320 DBPROP_INDEX_TEMPINDEX = 0x000000a3,
321 DBPROP_COL_FIXEDLENGTH = 0x000000a7,
322 DBPROP_ASYNCTXNABORT = 0x000000a8,
323 DBPROP_DSOTHREADMODEL = 0x000000a9,
324 DBPROP_NOTIFYCOLUMNSET = 0x000000ab,
325 DBPROP_NOTIFYROWDELETE = 0x000000ad,
326 DBPROP_NOTIFYROWFIRSTCHANGE = 0x000000ae,
327 DBPROP_NOTIFYROWINSERT = 0x000000af,
328 DBPROP_NOTIFYROWRESYNCH = 0x000000b1,
329 DBPROP_NOTIFYROWSETRELEASE = 0x000000b2,
330 DBPROP_NOTIFYROWSETFETCHPOSITIONCHANGE = 0x000000b3,
331 DBPROP_NOTIFYROWUNDOCHANGE = 0x000000b4,
332 DBPROP_NOTIFYROWUNDODELETE = 0x000000b5,
333 DBPROP_NOTIFYROWUNDOINSERT = 0x000000b6,
334 DBPROP_NOTIFYROWUPDATE = 0x000000b7,
335 DBPROP_OUTPUTPARAMETERAVAILABILITY = 0x000000b8,
336 DBPROP_PERSISTENTIDTYPE = 0x000000b9,
337 DBPROP_INIT_LCID = 0x000000ba,
338 DBPROP_APPENDONLY = 0x000000bb,
339 DBPROP_CHANGEINSERTEDROWS = 0x000000bc,
340 DBPROP_RETURNPENDINGINSERTS = 0x000000bd,
341 DBPROP_SESS_AUTOCOMMITISOLEVELS = 0x000000be,
342 DBPROP_MULTIPLEPARAMSETS = 0x000000bf,
343 DBPROP_ROWSETCONVERSIONSONCOMMAND = 0x000000c0,
344 DBPROP_IConvertType = 0x000000c2,
345 DBPROP_MULTIPLERESULTS = 0x000000c4,
346 DBPROP_NOTIFICATIONGRANULARITY = 0x000000c6,
347 DBPROP_NOTIFYROWSETCHANGED = 0x000000d3,
350 enum DBPROPENUM15 {
351 DBPROP_FILTERCOMPAREOPS = 0x000000d1,
352 DBPROP_FINDCOMPAREOPS = 0x000000d2,
353 DBPROP_IChapteredRowset = 0x000000ca,
354 DBPROP_IDBAsynchStatus = 0x000000cb,
355 DBPROP_IRowsetFind = 0x000000cc,
356 DBPROP_IRowsetView = 0x000000d4,
357 DBPROP_IViewChapter = 0x000000d5,
358 DBPROP_IViewFilter = 0x000000d6,
359 DBPROP_IViewRowset = 0x000000d7,
360 DBPROP_IViewSort = 0x000000d8,
361 DBPROP_INIT_ASYNCH = 0x000000c8,
362 DBPROP_MAXOPENCHAPTERS = 0x000000c7,
363 DBPROP_MAXORSINFILTER = 0x000000cd,
364 DBPROP_MAXSORTCOLUMNS = 0x000000ce,
365 DBPROP_ROWSET_ASYNCH = 0x000000c9,
366 DBPROP_SORTONINDEX = 0x000000cf
369 enum DBPROPENUM20 {
370 DBPROP_IMultipleResults = 0x000000d9,
371 DBPROP_DATASOURCE_TYPE = 0x000000fb,
372 MDPROP_AXES = 0x000000fc,
373 MDPROP_FLATTENING_SUPPORT = 0x000000fd,
374 MDPROP_MDX_JOINCUBES = 0x000000fe,
375 MDPROP_NAMED_LEVELS = 0x000000ff,
376 MDPROP_RANGEROWSET = 0x00000100,
377 MDPROP_MDX_SLICER = 0x000000da,
378 MDPROP_MDX_CUBEQUALIFICATION = 0x000000db,
379 MDPROP_MDX_OUTERREFERENCE = 0x000000dc,
380 MDPROP_MDX_QUERYBYPROPERTY = 0x000000dd,
381 MDPROP_MDX_CASESUPPORT = 0x000000de,
382 MDPROP_MDX_STRING_COMPOP = 0x000000e0,
383 MDPROP_MDX_DESCFLAGS = 0x000000e1,
384 MDPROP_MDX_SET_FUNCTIONS = 0x000000e2,
385 MDPROP_MDX_MEMBER_FUNCTIONS = 0x000000e3,
386 MDPROP_MDX_NUMERIC_FUNCTIONS = 0x000000e4,
387 MDPROP_MDX_FORMULAS = 0x000000e5,
388 MDPROP_AGGREGATECELL_UPDATE = 0x000000e6,
389 MDPROP_MDX_AGGREGATECELL_UPDATE = MDPROP_AGGREGATECELL_UPDATE,
390 MDPROP_MDX_OBJQUALIFICATION = 0x00000105,
391 MDPROP_MDX_NONMEASURE_EXPRESSIONS = 0x00000106,
392 DBPROP_ACCESSORDER = 0x000000e7,
393 DBPROP_BOOKMARKINFO = 0x000000e8,
394 DBPROP_INIT_CATALOG = 0x000000e9,
395 DBPROP_ROW_BULKOPS = 0x000000ea,
396 DBPROP_PROVIDERFRIENDLYNAME = 0x000000eb,
397 DBPROP_LOCKMODE = 0x000000ec,
398 DBPROP_MULTIPLECONNECTIONS = 0x000000ed,
399 DBPROP_UNIQUEROWS = 0x000000ee,
400 DBPROP_SERVERDATAONINSERT = 0x000000ef,
401 DBPROP_STORAGEFLAGS = 0x000000f0,
402 DBPROP_CONNECTIONSTATUS = 0x000000f4,
403 DBPROP_ALTERCOLUMN = 0x000000f5,
404 DBPROP_COLUMNLCID = 0x000000f6,
405 DBPROP_RESETDATASOURCE = 0x000000f7,
406 DBPROP_INIT_OLEDBSERVICES = 0x000000f8,
407 DBPROP_IRowsetRefresh = 0x000000f9,
408 DBPROP_SERVERNAME = 0x000000fa,
409 DBPROP_IParentRowset = 0x00000101,
410 DBPROP_HIDDENCOLUMNS = 0x00000102,
411 DBPROP_PROVIDERMEMORY = 0x00000103,
412 DBPROP_CLIENTCURSOR = 0x00000104
416 enum DBPROPENUM21 {
417 DBPROP_TRUSTEE_USERNAME = 0x000000f1,
418 DBPROP_TRUSTEE_AUTHENTICATION = 0x000000f2,
419 DBPROP_TRUSTEE_NEWAUTHENTICATION = 0x000000f3,
420 DBPROP_IRow = 0x00000107,
421 DBPROP_IRowChange = 0x00000108,
422 DBPROP_IRowSchemaChange = 0x00000109,
423 DBPROP_IGetRow = 0x0000010a,
424 DBPROP_IScopedOperations = 0x0000010b,
425 DBPROP_IBindResource = 0x0000010c,
426 DBPROP_ICreateRow = 0x0000010d,
427 DBPROP_INIT_BINDFLAGS = 0x0000010e,
428 DBPROP_INIT_LOCKOWNER = 0x0000010f,
429 DBPROP_GENERATEURL = 0x00000111,
430 DBPROP_IDBBinderProperties = 0x00000112,
431 DBPROP_IColumnsInfo2 = 0x00000113,
432 DBPROP_IRegisterProvider = 0x00000114,
433 DBPROP_IGetSession = 0x00000115,
434 DBPROP_IGetSourceRow = 0x00000116,
435 DBPROP_IRowsetCurrentIndex = 0x00000117,
436 DBPROP_OPENROWSETSUPPORT = 0x00000118,
437 DBPROP_COL_ISLONG = 0x00000119
440 enum DBPROPENUM25 {
441 DBPROP_COL_SEED = 0x0000011a,
442 DBPROP_COL_INCREMENT = 0x0000011b,
443 DBPROP_INIT_GENERALTIMEOUT = 0x0000011c,
444 DBPROP_COMSERVICES = 0x0000011d
447 enum DBPROPENUM26 {
448 DBPROP_OUTPUTSTREAM = 0x0000011e,
449 DBPROP_OUTPUTENCODING = 0x0000011f,
450 DBPROP_TABLESTATISTICS = 0x00000120,
451 DBPROP_SKIPROWCOUNTRESULTS = 0x00000123,
452 DBPROP_IRowsetBookmark = 0x00000124,
453 MDPROP_VISUALMODE = 0x00000125,
456 cpp_quote("#ifdef DBINITCONSTANTS")
457 cpp_quote("#ifdef __cplusplus")
458 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
459 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN; \\")
460 cpp_quote(" EXTERN_C const GUID name = \\")
461 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
462 cpp_quote("#else")
463 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
464 cpp_quote(" const GUID name DECLSPEC_HIDDEN; \\")
465 cpp_quote(" const GUID name = \\")
466 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
467 cpp_quote("#endif")
468 cpp_quote("#else")
469 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
470 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN")
471 cpp_quote("#endif")
473 cpp_quote("DEFINE_DBGUID(DB_NULLGUID, 0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);")
474 cpp_quote("DEFINE_DBGUID(DBPROPSET_DBINIT, 0xc8b522bc, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
475 cpp_quote("DEFINE_DBGUID(DBGUID_SESSION, 0xc8b522f5, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
476 cpp_quote("DEFINE_DBGUID(DBGUID_ROWSET, 0xc8b522f6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
477 cpp_quote("DEFINE_DBGUID(DBGUID_ROW, 0xc8b522f7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
478 cpp_quote("DEFINE_DBGUID(DBGUID_STREAM, 0xc8b522f9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
480 cpp_quote("#define DBPROMPT_PROMPT 0x01")
481 cpp_quote("#define DBPROMPT_COMPLETE 0x02")
482 cpp_quote("#define DBPROMPT_COMPLETEREQUIRED 0x03")
483 cpp_quote("#define DBPROMPT_NOPROMPT 0x04")
486 typedef struct tagDBCOLUMNACCESS
488 void *pData;
489 DBID columnid;
490 DBLENGTH cbDataLen;
491 DBSTATUS dwStatus;
492 DBLENGTH cbMaxLen;
493 DB_DWRESERVE dwReserved;
494 DBTYPE wType;
495 BYTE bPrecision;
496 BYTE bScale;
497 } DBCOLUMNACCESS;
499 typedef DWORD DBROWSTATUS;
501 enum DBROWSTATUSENUM
503 DBROWSTATUS_S_OK,
504 DBROWSTATUS_S_LOCKUPGRADED,
505 DBROWSTATUS_S_MULTIPLECHANGES,
506 DBROWSTATUS_S_PENDINGCHANGES,
507 DBROWSTATUS_E_CANCELED,
508 DBROWSTATUS_E_CANTLOCKROW,
509 DBROWSTATUS_E_CANTRELEASE,
510 DBROWSTATUS_E_CONCURRENCYVIOLATION,
511 DBROWSTATUS_E_DELETED,
512 DBROWSTATUS_E_PENDINGINSERT,
513 DBROWSTATUS_E_NEWLYINSERTED,
514 DBROWSTATUS_E_INTEGRITYVIOLATION,
515 DBROWSTATUS_E_INVALID,
516 DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED,
517 DBROWSTATUS_E_OBJECTOPEN,
518 DBROWSTATUS_E_OUTOFMEMORY,
519 DBROWSTATUS_E_PERMISSIONDENIED,
520 DBROWSTATUS_E_LIMITREACHED,
521 DBROWSTATUS_E_SCHEMAVIOLATION,
522 DBROWSTATUS_E_FAIL,
526 typedef DWORD DBPART;
528 enum DBPARTENUM
530 DBPART_INVALID = 0,
531 DBPART_VALUE = 1,
532 DBPART_LENGTH = 2,
533 DBPART_STATUS = 4,
536 typedef DWORD DBPARAMIO;
538 enum DBPARAMIOENUM
540 DBPARAMIO_NOTPARAM = 0,
541 DBPARAMIO_INPUT = 1,
542 DBPARAMIO_OUTPUT = 2,
545 typedef DWORD DBMEMOWNER;
547 enum DBMEMOWNERENUM
549 DBMEMOWNER_CLIENTOWNED = 0,
550 DBMEMOWNER_PROVIDEROWNED = 1,
553 typedef struct tagDBOBJECT
555 DWORD dwFlags;
556 IID iid;
557 } DBOBJECT;
559 typedef struct tagDBBINDEXT
561 [size_is((ULONG)ulExtension)] BYTE *pExtension;
562 DBCOUNTITEM ulExtension;
563 } DBBINDEXT;
565 typedef struct tagDBBINDING
567 DBORDINAL iOrdinal;
568 DBBYTEOFFSET obValue;
569 DBBYTEOFFSET obLength;
570 DBBYTEOFFSET obStatus;
571 ITypeInfo *pTypeInfo;
572 DBOBJECT *pObject;
573 DBBINDEXT *pBindExt;
574 DBPART dwPart;
575 DBMEMOWNER dwMemOwner;
576 DBPARAMIO eParamIO;
577 DBLENGTH cbMaxLen;
578 DWORD dwFlags;
579 DBTYPE wType;
580 BYTE bPrecision;
581 BYTE bScale;
582 } DBBINDING;
584 typedef ULONG_PTR HACCESSOR;
586 cpp_quote("#define DB_INVALID_HACCESSOR 0x00")
588 typedef ULONG_PTR HROW;
590 cpp_quote("#define DB_NULL_HROW 0x00")
592 typedef ULONG_PTR HWATCHREGION;
594 cpp_quote("#define DBWATCHREGION_NULL NULL")
596 typedef ULONG_PTR HCHAPTER;
598 cpp_quote("#define DB_NULL_HCHAPTER 0x00")
600 typedef struct tagDBPARAMS
602 void *pData;
603 DB_UPARAMS cParamSets;
604 HACCESSOR hAccessor;
605 } DBPARAMS;
607 typedef DWORD DBASYNCHOP;
609 enum DBASYNCHOPENUM
611 DBSYNCHOP_OPEN,
614 typedef DWORD DBASYNCHPHASE;
616 enum DBASYNCHPHASEENUM
618 DBASYNCHPHASE_INITIALIZATION,
619 DBASYNCHPHASE_POPULATION,
620 DBASYNCHPHASE_COMPLETE,
621 DBASYNCHPHASE_CANCELED,
624 typedef struct tagRMTPACK
626 ISequentialStream *pISeqStream;
627 ULONG cbData;
628 ULONG cBSTR;
629 [size_is(cBSTR)] BSTR *rgBSTR;
630 ULONG cVARIANT;
631 [size_is(cVARIANT)] VARIANT *rgVARIANT;
632 ULONG cIDISPATCH;
633 [size_is(cIDISPATCH)] IDispatch **rgIDISPATCH;
634 ULONG cIUNKNOWN;
635 [size_is(cIUNKNOWN)] IUnknown **rgIUNKNOWN;
636 ULONG cPROPVARIANT;
637 [size_is(cPROPVARIANT)] PROPVARIANT *rgPROPVARIANT;
638 ULONG cArray;
639 [size_is(cArray)] VARIANT *rgArray;
640 } RMTPACK;
642 typedef struct tagDBDATE {
643 SHORT year;
644 USHORT month;
645 USHORT day;
646 } DBDATE;
648 typedef struct tagDBTIME {
649 USHORT hour;
650 USHORT minute;
651 USHORT second;
652 } DBTIME;
654 typedef struct tagDBTIMESTAMP {
655 SHORT year;
656 USHORT month;
657 USHORT day;
658 USHORT hour;
659 USHORT minute;
660 USHORT second;
661 ULONG fraction;
662 } DBTIMESTAMP;