winegstreamer: Keep a IMFMediaSource pointer in the media stream.
[wine.git] / include / dbs.idl
blobd3cc46b40108a98d1609a29f7416d114443ad796
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 #if 0
20 #pragma makedep install
21 #endif
23 typedef DWORD DBKIND;
25 enum DBKINDENUM {
26 DBKIND_GUID_NAME,
27 DBKIND_GUID_PROPID,
28 DBKIND_NAME,
29 DBKIND_PGUID_NAME,
30 DBKIND_PGUID_PROPID,
31 DBKIND_PROPID,
32 DBKIND_GUID,
35 typedef struct tagDBID {
36 [switch_type(DBKIND), switch_is(eKind)] union
38 [case(DBKIND_GUID_NAME, DBKIND_GUID_PROPID, DBKIND_GUID, DBKIND_NAME, DBKIND_PROPID)]
39 GUID guid;
40 [case(DBKIND_PGUID_NAME, DBKIND_PGUID_PROPID)]
41 GUID *pguid;
42 [default]
44 } uGuid;
45 DBKIND eKind;
46 [switch_type(DBKIND), switch_is(eKind)] union
48 [case(DBKIND_GUID_NAME, DBKIND_NAME, DBKIND_PGUID_NAME)]
49 LPOLESTR pwszName;
50 [case(DBKIND_GUID_PROPID, DBKIND_GUID, DBKIND_PGUID_PROPID, DBKIND_PROPID)]
51 ULONG ulPropid;
52 [default]
54 } uName;
55 } DBID;
57 typedef struct tagDB_NUMERIC {
58 BYTE precision;
59 BYTE scale;
60 BYTE sign;
61 BYTE val[16];
62 } DB_NUMERIC;
64 typedef DWORD DBPROPID;
66 typedef struct tagDBPROPIDSET {
67 [size_is(cPropertyIDs)] DBPROPID *rgPropertyIDs;
68 ULONG cPropertyIDs;
69 GUID guidPropertySet;
70 } DBPROPIDSET;
72 typedef DWORD DBPROPOPTIONS;
74 enum DBPROPOPTIONENUM {
75 DBPROPOPTIONS_REQUIRED = 0,
76 DBPROPOPTIONS_SETIFCHEAP = 1,
77 DBPROPOPTIONS_OPTIONAL = 1,
80 typedef DWORD DBPROPSTATUS;
82 enum DBPROPSTATUSENUM {
83 DBPROPSTATUS_OK = 0,
84 DBPROPSTATUS_NOTSUPPORTED = 1,
85 DBPROPSTATUS_BADVALUE = 2,
86 DBPROPSTATUS_BADOPTION = 3,
87 DBPROPSTATUS_BADCOLUMN = 4,
88 DBPROPSTATUS_NOTALLSETTABLE = 5,
89 DBPROPSTATUS_NOTSETTABLE = 6,
90 DBPROPSTATUS_NOTSET = 7,
91 DBPROPSTATUS_CONFLICTING = 8
94 enum DBPROPSTATUSENUM21 {
95 DBPROPSTATUS_NOTAVAILABLE = 9
98 typedef struct tagDBPROP {
99 DBPROPID dwPropertyID;
100 DBPROPOPTIONS dwOptions;
101 DBPROPSTATUS dwStatus;
102 DBID colid;
103 VARIANT vValue;
104 } DBPROP;
106 typedef struct tagDBPROPSET {
107 [size_is(cProperties)] DBPROP *rgProperties;
108 ULONG cProperties;
109 GUID guidPropertySet;
110 } DBPROPSET;
112 typedef DWORD DBPROPFLAGS;
114 enum DBPROPFLAGSENUM
116 DBPROPFLAGS_NOTSUPPORTED = 0x0000,
117 DBPROPFLAGS_COLUMN = 0x0001,
118 DBPROPFLAGS_DATASOURCE = 0x0002,
119 DBPROPFLAGS_DATASOURCECREATE = 0x0004,
120 DBPROPFLAGS_DATASOURCEINFO = 0x0008,
121 DBPROPFLAGS_DBINIT = 0x0010,
122 DBPROPFLAGS_INDEX = 0x0020,
123 DBPROPFLAGS_ROWSET = 0x0040,
124 DBPROPFLAGS_TABLE = 0x0080,
125 DBPROPFLAGS_COLUMNOK = 0x0100,
126 DBPROPFLAGS_READ = 0x0200,
127 DBPROPFLAGS_WRITE = 0x0400,
128 DBPROPFLAGS_REQUIRED = 0x0800,
129 DBPROPFLAGS_SESSION = 0x1000,
132 typedef struct tagDBPROPINFO {
133 LPOLESTR pwszDescription;
134 DBPROPID dwPropertyID;
135 DBPROPFLAGS dwFlags;
136 VARTYPE vtType;
137 VARIANT vValues;
138 } DBPROPINFO;
140 typedef DBPROPINFO *PDBPROPINFO;
142 typedef struct tagDBPROPINFOSET {
143 [size_is(cPropertyInfos)] PDBPROPINFO rgPropertyInfos;
144 ULONG cPropertyInfos;
145 GUID guidPropertySet;
146 } DBPROPINFOSET;
148 typedef DWORD DBBINDURLFLAG;
149 typedef DWORD DBBINDURLSTATUS;
151 typedef struct tagDBIMPLICITSESSION
153 IUnknown *pUnkOuter;
154 IID *piid;
155 IUnknown *pSession;
156 } DBIMPLICITSESSION;
158 typedef WORD DBTYPE;
160 enum DBTYPEENUM
162 DBTYPE_EMPTY = 0,
163 DBTYPE_NULL = 1,
164 DBTYPE_I2 = 2,
165 DBTYPE_I4 = 3,
166 DBTYPE_R4 = 4,
167 DBTYPE_R8 = 5,
168 DBTYPE_CY = 6,
169 DBTYPE_DATE = 7,
170 DBTYPE_BSTR = 8,
171 DBTYPE_IDISPATCH = 9,
172 DBTYPE_ERROR = 10,
173 DBTYPE_BOOL = 11,
174 DBTYPE_VARIANT = 12,
175 DBTYPE_IUNKNOWN = 13,
176 DBTYPE_DECIMAL = 14,
177 DBTYPE_I1 = 16,
178 DBTYPE_UI1 = 17,
179 DBTYPE_UI2 = 18,
180 DBTYPE_UI4 = 19,
181 DBTYPE_I8 = 20,
182 DBTYPE_UI8 = 21,
183 DBTYPE_GUID = 72,
184 DBTYPE_BYTES = 128,
185 DBTYPE_STR = 129,
186 DBTYPE_WSTR = 130,
187 DBTYPE_NUMERIC = 131,
188 DBTYPE_UDT = 132,
189 DBTYPE_DBDATE = 133,
190 DBTYPE_DBTIME = 134,
191 DBTYPE_DBTIMESTAMP = 135,
193 DBTYPE_VECTOR = 0x1000,
194 DBTYPE_ARRAY = 0x2000,
195 DBTYPE_BYREF = 0x4000,
196 DBTYPE_RESERVED = 0x8000
199 enum DBTYPEENUM15
201 DBTYPE_HCHAPTER = 136
204 enum DBTYPEENUM20
206 DBTYPE_FILETIME = 64,
207 DBTYPE_PROPVARIANT = 138,
208 DBTYPE_VARNUMERIC = 139
211 typedef DWORD DBSTATUS;
213 enum DBSTATUSENUM
215 DBSTATUS_S_OK = 0,
216 DBSTATUS_E_BADACCESSOR = 1,
217 DBSTATUS_E_CANTCONVERTVALUE = 2,
218 DBSTATUS_S_ISNULL = 3,
219 DBSTATUS_S_TRUNCATED = 4,
220 DBSTATUS_E_SIGNMISMATCH = 5,
221 DBSTATUS_E_DATAOVERFLOW = 6,
222 DBSTATUS_E_CANTCREATE = 7,
223 DBSTATUS_E_UNAVAILABLE = 8,
224 DBSTATUS_E_PERMISSIONDENIED = 9,
225 DBSTATUS_E_INTEGRITYVIOLATION = 10,
226 DBSTATUS_E_SCHEMAVIOLATION = 11,
227 DBSTATUS_E_BADSTATUS = 12,
228 DBSTATUS_S_DEFAULT = 13
231 enum DBPROPENUM
233 DBPROP_ABORTPRESERVE = 0x00000002,
234 DBPROP_ACTIVESESSIONS = 0x00000003,
235 DBPROP_ASYNCTXNCOMMIT = 0x00000004,
236 DBPROP_AUTH_CACHE_AUTHINFO = 0x00000005,
237 DBPROP_AUTH_ENCRYPT_PASSWORD = 0x00000006,
238 DBPROP_AUTH_INTEGRATED = 0x00000007,
239 DBPROP_AUTH_MASK_PASSWORD = 0x00000008,
240 DBPROP_AUTH_PASSWORD = 0x00000009,
241 DBPROP_AUTH_PERSIST_ENCRYPTED = 0x0000000a,
242 DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO = 0x0000000b,
243 DBPROP_AUTH_USERID = 0x0000000c,
244 DBPROP_BLOCKINGSTORAGEOBJECTS = 0x0000000d,
245 DBPROP_BOOKMARKS = 0x0000000e,
246 DBPROP_BOOKMARKSKIPPED = 0x0000000f,
247 DBPROP_BOOKMARKTYPE = 0x00000010,
248 DBPROP_CACHEDEFERRED = 0x00000011,
249 DBPROP_CANFETCHBACKWARDS = 0x00000012,
250 DBPROP_CANHOLDROWS = 0x00000013,
251 DBPROP_CANSCROLLBACKWARDS = 0x00000015,
252 DBPROP_CATALOGLOCATION = 0x00000016,
253 DBPROP_CATALOGTERM = 0x00000017,
254 DBPROP_CATALOGUSAGE = 0x00000018,
255 DBPROP_COL_AUTOINCREMENT = 0x0000001a,
256 DBPROP_COL_DEFAULT = 0x0000001b,
257 DBPROP_COL_DESCRIPTION = 0x0000001c,
258 DBPROP_COL_NULLABLE = 0x0000001d,
259 DBPROP_COL_PRIMARYKEY = 0x0000001e,
260 DBPROP_COL_UNIQUE = 0x0000001f,
261 DBPROP_COLUMNDEFINITION = 0x00000020,
262 DBPROP_COLUMNRESTRICT = 0x00000021,
263 DBPROP_COMMANDTIMEOUT = 0x00000022,
264 DBPROP_COMMITPRESERVE = 0x00000023,
265 DBPROP_CONCATNULLBEHAVIOR = 0x00000024,
266 DBPROP_CURRENTCATALOG = 0x00000025,
267 DBPROP_DATASOURCENAME = 0x00000026,
268 DBPROP_DATASOURCEREADONLY = 0x00000027,
269 DBPROP_DBMSNAME = 0x00000028,
270 DBPROP_DBMSVER = 0x00000029,
271 DBPROP_DEFERRED = 0x0000002a,
272 DBPROP_DELAYSTORAGEOBJECTS = 0x0000002b,
273 DBPROP_GROUPBY = 0x0000002c,
274 DBPROP_HETEROGENEOUSTABLES = 0x0000002d,
275 DBPROP_IDENTIFIERCASE = 0x0000002e,
276 DBPROP_IMMOBILEROWS = 0x0000002f,
277 DBPROP_INDEX_AUTOUPDATE = 0x00000030,
278 DBPROP_INDEX_CLUSTERED = 0x00000031,
279 DBPROP_INDEX_FILLFACTOR = 0x00000032,
280 DBPROP_INDEX_INITIALSIZE = 0x00000033,
281 DBPROP_INDEX_NULLCOLLATION = 0x00000034,
282 DBPROP_INDEX_NULLS = 0x00000035,
283 DBPROP_INDEX_PRIMARYKEY = 0x00000036,
284 DBPROP_INDEX_SORTBOOKMARKS = 0x00000037,
285 DBPROP_INDEX_TYPE = 0x00000038,
286 DBPROP_INDEX_UNIQUE = 0x00000039,
287 DBPROP_INIT_DATASOURCE = 0x0000003b,
288 DBPROP_INIT_HWND = 0x0000003c,
289 DBPROP_INIT_IMPERSONATION_LEVEL = 0x0000003d,
290 DBPROP_INIT_LOCATION = 0x0000003e,
291 DBPROP_INIT_MODE = 0x0000003f,
292 DBPROP_INIT_PROMPT = 0x00000040,
293 DBPROP_INIT_PROTECTION_LEVEL = 0x00000041,
294 DBPROP_INIT_TIMEOUT = 0x00000042,
295 DBPROP_LITERALBOOKMARKS = 0x00000043,
296 DBPROP_LITERALIDENTITY = 0x00000044,
297 DBPROP_MAXINDEXSIZE = 0x00000046,
298 DBPROP_MAXOPENROWS = 0x00000047,
299 DBPROP_MAXPENDINGROWS = 0x00000048,
300 DBPROP_MAXROWS = 0x00000049,
301 DBPROP_MAXROWSIZE = 0x0000004a,
302 DBPROP_MAXROWSIZEINCLUDESBLOB = 0x0000004b,
303 DBPROP_MAXTABLESINSELECT = 0x0000004c,
304 DBPROP_MAYWRITECOLUMN = 0x0000004d,
305 DBPROP_MEMORYUSAGE = 0x0000004e,
306 DBPROP_MULTIPLESTORAGEOBJECTS = 0x00000050,
307 DBPROP_MULTITABLEUPDATE = 0x00000051,
308 DBPROP_NOTIFICATIONPHASES = 0x00000052,
309 DBPROP_NULLCOLLATION = 0x00000053,
310 DBPROP_OLEOBJECTS = 0x00000054,
311 DBPROP_ORDERBYCOLUMNSINSELECT = 0x00000055,
312 DBPROP_ORDEREDBOOKMARKS = 0x00000056,
313 DBPROP_OTHERINSERT = 0x00000057,
314 DBPROP_OTHERUPDATEDELETE = 0x00000058,
315 DBPROP_OWNINSERT = 0x00000059,
316 DBPROP_OWNUPDATEDELETE = 0x0000005a,
317 DBPROP_PREPAREABORTBEHAVIOR = 0x0000005b,
318 DBPROP_PREPARECOMMITBEHAVIOR = 0x0000005c,
319 DBPROP_PROCEDURETERM = 0x0000005d,
320 DBPROP_PROVIDERNAME = 0x00000060,
321 DBPROP_PROVIDEROLEDBVER = 0x00000061,
322 DBPROP_PROVIDERVER = 0x00000062,
323 DBPROP_QUICKRESTART = 0x00000063,
324 DBPROP_QUOTEDIDENTIFIERCASE = 0x00000064,
325 DBPROP_REENTRANTEVENTS = 0x00000065,
326 DBPROP_REMOVEDELETED = 0x00000066,
327 DBPROP_REPORTMULTIPLECHANGES = 0x00000067,
328 DBPROP_ROWRESTRICT = 0x00000068,
329 DBPROP_ROWTHREADMODEL = 0x00000069,
330 DBPROP_SCHEMATERM = 0x0000006a,
331 DBPROP_SCHEMAUSAGE = 0x0000006b,
332 DBPROP_SERVERCURSOR = 0x0000006c,
333 DBPROP_SQLSUPPORT = 0x0000006d,
334 DBPROP_STRUCTUREDSTORAGE = 0x0000006f,
335 DBPROP_SUBQUERIES = 0x00000070,
336 DBPROP_SUPPORTEDTXNISOLEVELS = 0x00000071,
337 DBPROP_SUPPORTEDTXNISORETAIN = 0x00000072,
338 DBPROP_TABLETERM = 0x00000073,
339 DBPROP_TRANSACTEDOBJECT = 0x00000074,
340 DBPROP_UPDATABILITY = 0x00000075,
341 DBPROP_USERNAME = 0x00000076,
342 DBPROP_STRONGIDENTITY = 0x00000077,
343 DBPROP_BYREFACCESSORS = 0x00000078,
344 DBPROP_IAccessor = 0x00000079,
345 DBPROP_IColumnsInfo = 0x0000007a,
346 DBPROP_IColumnsRowset = 0x0000007b,
347 DBPROP_IConnectionPointContainer = 0x0000007c,
348 DBPROP_IRowset = 0x0000007e,
349 DBPROP_IRowsetChange = 0x0000007f,
350 DBPROP_IRowsetIdentity = 0x00000080,
351 DBPROP_IRowsetInfo = 0x00000081,
352 DBPROP_IRowsetLocate = 0x00000082,
353 DBPROP_IRowsetResynch = 0x00000084,
354 DBPROP_IRowsetScroll = 0x00000085,
355 DBPROP_IRowsetUpdate = 0x00000086,
356 DBPROP_ISupportErrorInfo = 0x00000087,
357 DBPROP_ILockBytes = 0x00000088,
358 DBPROP_ISequentialStream = 0x00000089,
359 DBPROP_IStorage = 0x0000008a,
360 DBPROP_IStream = 0x0000008b,
361 DBPROP_TBL_TEMPTABLE = 0x0000008c,
362 DBPROP_IRowsetIndex = 0x0000009f,
363 DBPROP_INIT_PROVIDERSTRING = 0x000000a0,
364 DBPROP_SUPPORTEDTXNDDL = 0x000000a1,
365 DBPROP_INDEX_TEMPINDEX = 0x000000a3,
366 DBPROP_COL_FIXEDLENGTH = 0x000000a7,
367 DBPROP_ASYNCTXNABORT = 0x000000a8,
368 DBPROP_DSOTHREADMODEL = 0x000000a9,
369 DBPROP_NOTIFYCOLUMNSET = 0x000000ab,
370 DBPROP_NOTIFYROWDELETE = 0x000000ad,
371 DBPROP_NOTIFYROWFIRSTCHANGE = 0x000000ae,
372 DBPROP_NOTIFYROWINSERT = 0x000000af,
373 DBPROP_NOTIFYROWRESYNCH = 0x000000b1,
374 DBPROP_NOTIFYROWSETRELEASE = 0x000000b2,
375 DBPROP_NOTIFYROWSETFETCHPOSITIONCHANGE = 0x000000b3,
376 DBPROP_NOTIFYROWUNDOCHANGE = 0x000000b4,
377 DBPROP_NOTIFYROWUNDODELETE = 0x000000b5,
378 DBPROP_NOTIFYROWUNDOINSERT = 0x000000b6,
379 DBPROP_NOTIFYROWUPDATE = 0x000000b7,
380 DBPROP_OUTPUTPARAMETERAVAILABILITY = 0x000000b8,
381 DBPROP_PERSISTENTIDTYPE = 0x000000b9,
382 DBPROP_INIT_LCID = 0x000000ba,
383 DBPROP_APPENDONLY = 0x000000bb,
384 DBPROP_CHANGEINSERTEDROWS = 0x000000bc,
385 DBPROP_RETURNPENDINGINSERTS = 0x000000bd,
386 DBPROP_SESS_AUTOCOMMITISOLEVELS = 0x000000be,
387 DBPROP_MULTIPLEPARAMSETS = 0x000000bf,
388 DBPROP_ROWSETCONVERSIONSONCOMMAND = 0x000000c0,
389 DBPROP_IConvertType = 0x000000c2,
390 DBPROP_MULTIPLERESULTS = 0x000000c4,
391 DBPROP_NOTIFICATIONGRANULARITY = 0x000000c6,
392 DBPROP_NOTIFYROWSETCHANGED = 0x000000d3,
395 enum DBPROPENUM15 {
396 DBPROP_FILTERCOMPAREOPS = 0x000000d1,
397 DBPROP_FINDCOMPAREOPS = 0x000000d2,
398 DBPROP_IChapteredRowset = 0x000000ca,
399 DBPROP_IDBAsynchStatus = 0x000000cb,
400 DBPROP_IRowsetFind = 0x000000cc,
401 DBPROP_IRowsetView = 0x000000d4,
402 DBPROP_IViewChapter = 0x000000d5,
403 DBPROP_IViewFilter = 0x000000d6,
404 DBPROP_IViewRowset = 0x000000d7,
405 DBPROP_IViewSort = 0x000000d8,
406 DBPROP_INIT_ASYNCH = 0x000000c8,
407 DBPROP_MAXOPENCHAPTERS = 0x000000c7,
408 DBPROP_MAXORSINFILTER = 0x000000cd,
409 DBPROP_MAXSORTCOLUMNS = 0x000000ce,
410 DBPROP_ROWSET_ASYNCH = 0x000000c9,
411 DBPROP_SORTONINDEX = 0x000000cf
414 enum DBPROPENUM20 {
415 DBPROP_IMultipleResults = 0x000000d9,
416 DBPROP_DATASOURCE_TYPE = 0x000000fb,
417 MDPROP_AXES = 0x000000fc,
418 MDPROP_FLATTENING_SUPPORT = 0x000000fd,
419 MDPROP_MDX_JOINCUBES = 0x000000fe,
420 MDPROP_NAMED_LEVELS = 0x000000ff,
421 MDPROP_RANGEROWSET = 0x00000100,
422 MDPROP_MDX_SLICER = 0x000000da,
423 MDPROP_MDX_CUBEQUALIFICATION = 0x000000db,
424 MDPROP_MDX_OUTERREFERENCE = 0x000000dc,
425 MDPROP_MDX_QUERYBYPROPERTY = 0x000000dd,
426 MDPROP_MDX_CASESUPPORT = 0x000000de,
427 MDPROP_MDX_STRING_COMPOP = 0x000000e0,
428 MDPROP_MDX_DESCFLAGS = 0x000000e1,
429 MDPROP_MDX_SET_FUNCTIONS = 0x000000e2,
430 MDPROP_MDX_MEMBER_FUNCTIONS = 0x000000e3,
431 MDPROP_MDX_NUMERIC_FUNCTIONS = 0x000000e4,
432 MDPROP_MDX_FORMULAS = 0x000000e5,
433 MDPROP_AGGREGATECELL_UPDATE = 0x000000e6,
434 MDPROP_MDX_AGGREGATECELL_UPDATE = MDPROP_AGGREGATECELL_UPDATE,
435 MDPROP_MDX_OBJQUALIFICATION = 0x00000105,
436 MDPROP_MDX_NONMEASURE_EXPRESSIONS = 0x00000106,
437 DBPROP_ACCESSORDER = 0x000000e7,
438 DBPROP_BOOKMARKINFO = 0x000000e8,
439 DBPROP_INIT_CATALOG = 0x000000e9,
440 DBPROP_ROW_BULKOPS = 0x000000ea,
441 DBPROP_PROVIDERFRIENDLYNAME = 0x000000eb,
442 DBPROP_LOCKMODE = 0x000000ec,
443 DBPROP_MULTIPLECONNECTIONS = 0x000000ed,
444 DBPROP_UNIQUEROWS = 0x000000ee,
445 DBPROP_SERVERDATAONINSERT = 0x000000ef,
446 DBPROP_STORAGEFLAGS = 0x000000f0,
447 DBPROP_CONNECTIONSTATUS = 0x000000f4,
448 DBPROP_ALTERCOLUMN = 0x000000f5,
449 DBPROP_COLUMNLCID = 0x000000f6,
450 DBPROP_RESETDATASOURCE = 0x000000f7,
451 DBPROP_INIT_OLEDBSERVICES = 0x000000f8,
452 DBPROP_IRowsetRefresh = 0x000000f9,
453 DBPROP_SERVERNAME = 0x000000fa,
454 DBPROP_IParentRowset = 0x00000101,
455 DBPROP_HIDDENCOLUMNS = 0x00000102,
456 DBPROP_PROVIDERMEMORY = 0x00000103,
457 DBPROP_CLIENTCURSOR = 0x00000104
461 enum DBPROPENUM21 {
462 DBPROP_TRUSTEE_USERNAME = 0x000000f1,
463 DBPROP_TRUSTEE_AUTHENTICATION = 0x000000f2,
464 DBPROP_TRUSTEE_NEWAUTHENTICATION = 0x000000f3,
465 DBPROP_IRow = 0x00000107,
466 DBPROP_IRowChange = 0x00000108,
467 DBPROP_IRowSchemaChange = 0x00000109,
468 DBPROP_IGetRow = 0x0000010a,
469 DBPROP_IScopedOperations = 0x0000010b,
470 DBPROP_IBindResource = 0x0000010c,
471 DBPROP_ICreateRow = 0x0000010d,
472 DBPROP_INIT_BINDFLAGS = 0x0000010e,
473 DBPROP_INIT_LOCKOWNER = 0x0000010f,
474 DBPROP_GENERATEURL = 0x00000111,
475 DBPROP_IDBBinderProperties = 0x00000112,
476 DBPROP_IColumnsInfo2 = 0x00000113,
477 DBPROP_IRegisterProvider = 0x00000114,
478 DBPROP_IGetSession = 0x00000115,
479 DBPROP_IGetSourceRow = 0x00000116,
480 DBPROP_IRowsetCurrentIndex = 0x00000117,
481 DBPROP_OPENROWSETSUPPORT = 0x00000118,
482 DBPROP_COL_ISLONG = 0x00000119
485 enum DBPROPENUM25 {
486 DBPROP_COL_SEED = 0x0000011a,
487 DBPROP_COL_INCREMENT = 0x0000011b,
488 DBPROP_INIT_GENERALTIMEOUT = 0x0000011c,
489 DBPROP_COMSERVICES = 0x0000011d
492 enum DBPROPENUM26 {
493 DBPROP_OUTPUTSTREAM = 0x0000011e,
494 DBPROP_OUTPUTENCODING = 0x0000011f,
495 DBPROP_TABLESTATISTICS = 0x00000120,
496 DBPROP_SKIPROWCOUNTRESULTS = 0x00000123,
497 DBPROP_IRowsetBookmark = 0x00000124,
498 MDPROP_VISUALMODE = 0x00000125,
501 cpp_quote("#ifdef DBINITCONSTANTS")
502 cpp_quote("#ifdef __cplusplus")
503 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
504 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN; \\")
505 cpp_quote(" EXTERN_C const GUID name = \\")
506 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
507 cpp_quote("#else")
508 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
509 cpp_quote(" const GUID name DECLSPEC_HIDDEN; \\")
510 cpp_quote(" const GUID name = \\")
511 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
512 cpp_quote("#endif")
513 cpp_quote("#else")
514 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
515 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN")
516 cpp_quote("#endif")
518 cpp_quote("DEFINE_DBGUID(DB_NULLGUID, 0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);")
519 cpp_quote("DEFINE_DBGUID(DBGUID_SQL, 0xc8b522d7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
520 cpp_quote("DEFINE_DBGUID(DBGUID_DEFAULT, 0xc8b521fb, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
521 cpp_quote("DEFINE_DBGUID(DBGUID_SESSION, 0xc8b522f5, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
522 cpp_quote("DEFINE_DBGUID(DBGUID_ROWSET, 0xc8b522f6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
523 cpp_quote("DEFINE_DBGUID(DBGUID_ROW, 0xc8b522f7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
524 cpp_quote("DEFINE_DBGUID(DBGUID_STREAM, 0xc8b522f9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
526 cpp_quote("DEFINE_DBGUID(DBPROPSET_COLUMN, 0xc8b522b9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
527 cpp_quote("DEFINE_DBGUID(DBPROPSET_DATASOURCE, 0xc8b522ba, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
528 cpp_quote("DEFINE_DBGUID(DBPROPSET_DATASOURCEINFO, 0xc8b522bb, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
529 cpp_quote("DEFINE_DBGUID(DBPROPSET_DBINIT, 0xc8b522bc, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
530 cpp_quote("DEFINE_DBGUID(DBPROPSET_INDEX, 0xc8b522bd, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
531 cpp_quote("DEFINE_DBGUID(DBPROPSET_ROWSET, 0xc8b522be, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
532 cpp_quote("DEFINE_DBGUID(DBPROPSET_TABLE, 0xc8b522bf, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
533 cpp_quote("DEFINE_DBGUID(DBPROPSET_DATASOURCEALL, 0xc8b522c0, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
534 cpp_quote("DEFINE_DBGUID(DBPROPSET_DATASOURCEINFOALL, 0xc8b522c1, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
535 cpp_quote("DEFINE_DBGUID(DBPROPSET_ROWSETALL, 0xc8b522c2, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
536 cpp_quote("DEFINE_DBGUID(DBPROPSET_SESSION, 0xc8b522c6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
537 cpp_quote("DEFINE_DBGUID(DBPROPSET_SESSIONALL, 0xc8b522c7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
538 cpp_quote("DEFINE_DBGUID(DBPROPSET_DBINITALL, 0xc8b522ca, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
539 cpp_quote("DEFINE_DBGUID(DBPROPSET_PROPERTIESINERROR, 0xc8b522d4, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
541 cpp_quote("#define DBPROMPT_PROMPT 0x01")
542 cpp_quote("#define DBPROMPT_COMPLETE 0x02")
543 cpp_quote("#define DBPROMPT_COMPLETEREQUIRED 0x03")
544 cpp_quote("#define DBPROMPT_NOPROMPT 0x04")
546 cpp_quote("#define DBPROPVAL_STGM_READ OF_READ")
547 cpp_quote("#define DBPROPVAL_STGM_WRITE OF_WRITE")
548 cpp_quote("#define DBPROPVAL_STGM_READWRITE OF_READWRITE")
549 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_NONE OF_SHARE_DENY_NONE")
550 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_READ OF_SHARE_DENY_READ")
551 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_WRITE OF_SHARE_DENY_WRITE)")
552 cpp_quote("#define DBPROPVAL_STGM_SHARE_EXCLUSIVE OF_SHARE_EXCLUSIVE")
553 cpp_quote("#define DBPROPVAL_STGM_DIRECT 0x00010000")
554 cpp_quote("#define DBPROPVAL_STGM_TRANSACTED 0x00020000")
555 cpp_quote("#define DBPROPVAL_STGM_CREATE OF_CREATE")
556 cpp_quote("#define DBPROPVAL_STGM_CONVERT 0x00040000")
557 cpp_quote("#define DBPROPVAL_STGM_FAILIFTHERE 0x00080000")
558 cpp_quote("#define DBPROPVAL_STGM_PRIORITY 0x00100000")
559 cpp_quote("#define DBPROPVAL_STGM_DELETEONRELEASE 0x00200000")
560 cpp_quote("#define DBPROPVAL_GB_COLLATE __MSABI_LONG(0x00000010)")
561 cpp_quote("#define DBPROPVAL_CS_UNINITIALIZED __MSABI_LONG(0x00000000)")
562 cpp_quote("#define DBPROPVAL_CS_INITIALIZED __MSABI_LONG(0x00000001)")
563 cpp_quote("#define DBPROPVAL_CS_COMMUNICATIONFAILURE __MSABI_LONG(0x00000002)")
565 cpp_quote("#define DBPROPVAL_RD_RESETALL __MSABI_LONG(0xffffffff)")
566 cpp_quote("#define DBPROPVAL_OS_RESOURCEPOOLING __MSABI_LONG(0x00000001)")
567 cpp_quote("#define DBPROPVAL_OS_TXNENLISTMENT __MSABI_LONG(0x00000002)")
568 cpp_quote("#define DBPROPVAL_OS_CLIENTCURSOR __MSABI_LONG(0x00000004)")
569 cpp_quote("#define DBPROPVAL_OS_ENABLEALL __MSABI_LONG(0xffffffff)")
570 cpp_quote("#define DBPROPVAL_BI_CROSSROWSET __MSABI_LONG(0x00000001)")
572 cpp_quote("#define DBPROPVAL_RT_FREETHREAD __MSABI_LONG(0x00000001)")
573 cpp_quote("#define DBPROPVAL_RT_APTMTTHREAD __MSABI_LONG(0x00000002)")
574 cpp_quote("#define DBPROPVAL_RT_SINGLETHREAD __MSABI_LONG(0x00000004)")
576 cpp_quote("#define DBPROPVAL_LM_NONE __MSABI_LONG(0x00000001)")
577 cpp_quote("#define DBPROPVAL_LM_READ __MSABI_LONG(0x00000002)")
578 cpp_quote("#define DBPROPVAL_LM_INTENT __MSABI_LONG(0x00000004)")
579 cpp_quote("#define DBPROPVAL_LM_RITE __MSABI_LONG(0x00000008)")
581 cpp_quote("#define DB_MODE_READ 0x01")
582 cpp_quote("#define DB_MODE_WRITE 0x02")
583 cpp_quote("#define DB_MODE_READWRITE 0x03")
584 cpp_quote("#define DB_MODE_SHARE_DENY_READ 0x04")
585 cpp_quote("#define DB_MODE_SHARE_DENY_WRITE 0x08")
586 cpp_quote("#define DB_MODE_SHARE_EXCLUSIVE 0x0c")
587 cpp_quote("#define DB_MODE_SHARE_DENY_NONE 0x10")
589 typedef struct tagDBCOLUMNACCESS
591 void *pData;
592 DBID columnid;
593 DBLENGTH cbDataLen;
594 DBSTATUS dwStatus;
595 DBLENGTH cbMaxLen;
596 DB_DWRESERVE dwReserved;
597 DBTYPE wType;
598 BYTE bPrecision;
599 BYTE bScale;
600 } DBCOLUMNACCESS;
602 typedef DWORD DBROWSTATUS;
604 enum DBROWSTATUSENUM
606 DBROWSTATUS_S_OK,
607 DBROWSTATUS_S_LOCKUPGRADED,
608 DBROWSTATUS_S_MULTIPLECHANGES,
609 DBROWSTATUS_S_PENDINGCHANGES,
610 DBROWSTATUS_E_CANCELED,
611 DBROWSTATUS_E_CANTLOCKROW,
612 DBROWSTATUS_E_CANTRELEASE,
613 DBROWSTATUS_E_CONCURRENCYVIOLATION,
614 DBROWSTATUS_E_DELETED,
615 DBROWSTATUS_E_PENDINGINSERT,
616 DBROWSTATUS_E_NEWLYINSERTED,
617 DBROWSTATUS_E_INTEGRITYVIOLATION,
618 DBROWSTATUS_E_INVALID,
619 DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED,
620 DBROWSTATUS_E_OBJECTOPEN,
621 DBROWSTATUS_E_OUTOFMEMORY,
622 DBROWSTATUS_E_PERMISSIONDENIED,
623 DBROWSTATUS_E_LIMITREACHED,
624 DBROWSTATUS_E_SCHEMAVIOLATION,
625 DBROWSTATUS_E_FAIL,
629 typedef DWORD DBPART;
631 enum DBPARTENUM
633 DBPART_INVALID = 0,
634 DBPART_VALUE = 1,
635 DBPART_LENGTH = 2,
636 DBPART_STATUS = 4,
639 typedef DWORD DBPARAMIO;
641 enum DBPARAMIOENUM
643 DBPARAMIO_NOTPARAM = 0,
644 DBPARAMIO_INPUT = 1,
645 DBPARAMIO_OUTPUT = 2,
648 typedef DWORD DBMEMOWNER;
650 enum DBMEMOWNERENUM
652 DBMEMOWNER_CLIENTOWNED = 0,
653 DBMEMOWNER_PROVIDEROWNED = 1,
656 typedef struct tagDBOBJECT
658 DWORD dwFlags;
659 IID iid;
660 } DBOBJECT;
662 typedef struct tagDBBINDEXT
664 [size_is((ULONG)ulExtension)] BYTE *pExtension;
665 DBCOUNTITEM ulExtension;
666 } DBBINDEXT;
668 typedef struct tagDBBINDING
670 DBORDINAL iOrdinal;
671 DBBYTEOFFSET obValue;
672 DBBYTEOFFSET obLength;
673 DBBYTEOFFSET obStatus;
674 ITypeInfo *pTypeInfo;
675 DBOBJECT *pObject;
676 DBBINDEXT *pBindExt;
677 DBPART dwPart;
678 DBMEMOWNER dwMemOwner;
679 DBPARAMIO eParamIO;
680 DBLENGTH cbMaxLen;
681 DWORD dwFlags;
682 DBTYPE wType;
683 BYTE bPrecision;
684 BYTE bScale;
685 } DBBINDING;
687 typedef ULONG_PTR HACCESSOR;
689 cpp_quote("#define DB_INVALID_HACCESSOR 0x00")
691 typedef ULONG_PTR HROW;
693 cpp_quote("#define DB_NULL_HROW 0x00")
695 typedef ULONG_PTR HWATCHREGION;
697 cpp_quote("#define DBWATCHREGION_NULL NULL")
699 typedef ULONG_PTR HCHAPTER;
701 cpp_quote("#define DB_NULL_HCHAPTER 0x00")
703 typedef struct tagDBPARAMS
705 void *pData;
706 DB_UPARAMS cParamSets;
707 HACCESSOR hAccessor;
708 } DBPARAMS;
710 typedef DWORD DBASYNCHOP;
712 enum DBASYNCHOPENUM
714 DBSYNCHOP_OPEN,
717 typedef DWORD DBASYNCHPHASE;
719 enum DBASYNCHPHASEENUM
721 DBASYNCHPHASE_INITIALIZATION,
722 DBASYNCHPHASE_POPULATION,
723 DBASYNCHPHASE_COMPLETE,
724 DBASYNCHPHASE_CANCELED,
727 typedef struct tagRMTPACK
729 ISequentialStream *pISeqStream;
730 ULONG cbData;
731 ULONG cBSTR;
732 [size_is(cBSTR)] BSTR *rgBSTR;
733 ULONG cVARIANT;
734 [size_is(cVARIANT)] VARIANT *rgVARIANT;
735 ULONG cIDISPATCH;
736 [size_is(cIDISPATCH)] IDispatch **rgIDISPATCH;
737 ULONG cIUNKNOWN;
738 [size_is(cIUNKNOWN)] IUnknown **rgIUNKNOWN;
739 ULONG cPROPVARIANT;
740 [size_is(cPROPVARIANT)] PROPVARIANT *rgPROPVARIANT;
741 ULONG cArray;
742 [size_is(cArray)] VARIANT *rgArray;
743 } RMTPACK;
745 typedef struct tagDBDATE {
746 SHORT year;
747 USHORT month;
748 USHORT day;
749 } DBDATE;
751 typedef struct tagDBTIME {
752 USHORT hour;
753 USHORT minute;
754 USHORT second;
755 } DBTIME;
757 typedef struct tagDBTIMESTAMP {
758 SHORT year;
759 USHORT month;
760 USHORT day;
761 USHORT hour;
762 USHORT minute;
763 USHORT second;
764 ULONG fraction;
765 } DBTIMESTAMP;
767 typedef DWORD DBREASON;
768 typedef DWORD DBEVENTPHASE;
770 enum DBEVENTPHASEENUM {
771 DBEVENTPHASE_OKTODO,
772 DBEVENTPHASE_ABOUTTODO,
773 DBEVENTPHASE_SYNCHAFTER,
774 DBEVENTPHASE_FAILEDTODO,
775 DBEVENTPHASE_DIDEVENT
778 enum DBREASONENUM {
779 DBREASON_ROWSET_FETCHPOSITIONCHANGE,
780 DBREASON_ROWSET_RELEASE,
781 DBREASON_COLUMN_SET,
782 DBREASON_COLUMN_RECALCULATED,
783 DBREASON_ROW_ACTIVATE,
784 DBREASON_ROW_RELEASE,
785 DBREASON_ROW_DELETE,
786 DBREASON_ROW_FIRSTCHANCE,
787 DBREASON_ROW_INSERT,
788 DBREASON_ROW_RESYNCH,
789 DBREASON_ROW_UNDOCHANGE,
790 DBREASON_ROW_UNDOINSERT,
791 DBREASON_ROW_UNDODELETE,
792 DBREASON_ROW_UPDATE,
793 DBREASON_ROWSET_CHANGED
796 enum DBREASONENUM15 {
797 DBREASON_ROWPOSITION_CHANGED = DBREASON_ROWSET_CHANGED + 1,
798 DBREASON_ROWPOSITION_CHAPTERCHANGED,
799 DBREASON_ROWPOSITION_CLEARED,
800 DBREASON_ROW_ASYNCHINSERT
803 typedef DWORD DBCOLUMNFLAGS;
805 enum DBCOLUMNFLAGSENUM {
806 DBCOLUMNFLAGS_ISBOOKMARK = 0x0001,
807 DBCOLUMNFLAGS_MAYDEFER = 0x0002,
808 DBCOLUMNFLAGS_WRITE = 0x0004,
809 DBCOLUMNFLAGS_WRITEUNKNOWN = 0x0008,
810 DBCOLUMNFLAGS_ISFIXEDLENGTH = 0x0010,
811 DBCOLUMNFLAGS_ISNULLABLE = 0x0020,
812 DBCOLUMNFLAGS_MAYBENULL = 0x0040,
813 DBCOLUMNFLAGS_ISLONG = 0x0080,
814 DBCOLUMNFLAGS_ISROWID = 0x0100,
815 DBCOLUMNFLAGS_ISROWVER = 0x0200,
816 DBCOLUMNFLAGS_CACHEDEFERRED = 0x1000
819 enum DBCOLUMNFLAGS15ENUM {
820 DBCOLUMNFLAGS_ISCHAPTER = 0x002000
823 enum DBCOLUMNFLAGSENUM20 {
824 DBCOLUMNFLAGS_SCALEISNEGATIVE = 0x004000,
825 DBCOLUMNFLAGS_RESERVED = 0x008000
828 enum DBCOLUMNFLAGSENUM21 {
829 DBCOLUMNFLAGS_ISROWURL = 0x010000,
830 DBCOLUMNFLAGS_ISDEFAULTSTREAM = 0x020000,
831 DBCOLUMNFLAGS_ISCOLLECTION = 0x040000
834 enum DBCOLUMNFLAGSENUM26 {
835 DBCOLUMNFLAGS_ISSTREAM = 0x080000,
836 DBCOLUMNFLAGS_ISROWSET = 0x100000,
837 DBCOLUMNFLAGS_ISROW = 0x200000,
838 DBCOLUMNFLAGS_ROWSPECIFICCOLUMN = 0x400000
842 enum DBCOLUMNFLAGSDEPRECATED {
843 DBCOLUMNFLAGS_KEYCOLUMN = 0x008000
846 typedef struct tagDBCOLUMNINFO {
847 LPOLESTR pwszName;
848 ITypeInfo *pTypeInfo;
849 DBORDINAL iOrdinal;
850 DBCOLUMNFLAGS dwFlags;
851 DBLENGTH ulColumnSize;
852 DBTYPE wType;
853 BYTE bPrecision;
854 BYTE bScale;
855 DBID columnid;
856 } DBCOLUMNINFO;
858 typedef DWORD DBPARAMFLAGS;
860 enum DBPARAMFLAGSENUM {
861 DBPARAMFLAGS_ISINPUT = 0x001,
862 DBPARAMFLAGS_ISOUTPUT = 0x002,
863 DBPARAMFLAGS_ISSIGNED = 0x010,
864 DBPARAMFLAGS_ISNULLABLE = 0x040,
865 DBPARAMFLAGS_ISLONG = 0x080
868 enum DBPARAMFLAGSENUM20 {
869 DBPARAMFLAGS_SCALEISNEGATIVE = 0x100
872 typedef struct tagDBPARAMINFO {
873 DBPARAMFLAGS dwFlags;
874 DBORDINAL iOrdinal;
875 LPOLESTR pwszName;
876 ITypeInfo *pTypeInfo;
877 DBLENGTH ulParamSize;
878 DBTYPE wType;
879 BYTE bPrecision;
880 BYTE bScale;
881 } DBPARAMINFO;