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
20 #pragma makedep install
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
)]
40 [case(DBKIND_PGUID_NAME
, DBKIND_PGUID_PROPID
)]
46 [switch_type(DBKIND
), switch_is(eKind
)] union
48 [case(DBKIND_GUID_NAME
, DBKIND_NAME
, DBKIND_PGUID_NAME
)]
50 [case(DBKIND_GUID_PROPID
, DBKIND_GUID
, DBKIND_PGUID_PROPID
, DBKIND_PROPID
)]
57 typedef struct tagDB_NUMERIC
{
64 typedef DWORD DBPROPID
;
66 typedef struct tagDBPROPIDSET
{
67 [size_is(cPropertyIDs
)] DBPROPID
*rgPropertyIDs
;
72 typedef DWORD DBPROPOPTIONS
;
74 enum DBPROPOPTIONENUM
{
75 DBPROPOPTIONS_REQUIRED
= 0,
76 DBPROPOPTIONS_SETIFCHEAP
= 1,
77 DBPROPOPTIONS_OPTIONAL
= 1,
80 typedef DWORD DBPROPSTATUS
;
82 typedef struct tagDBPROP
{
83 DBPROPID dwPropertyID
;
84 DBPROPOPTIONS dwOptions
;
85 DBPROPSTATUS dwStatus
;
90 typedef struct tagDBPROPSET
{
91 [size_is(cProperties
)] DBPROP
*rgProperties
;
96 typedef DWORD DBPROPFLAGS
;
98 typedef struct tagDBPROPINFO
{
99 LPOLESTR pwszDescription
;
100 DBPROPID dwPropertyID
;
106 typedef DBPROPINFO
*PDBPROPINFO
;
108 typedef struct tagDBPROPINFOSET
{
109 [size_is(cPropertyInfos
)] PDBPROPINFO rgPropertyInfos
;
110 ULONG cPropertyInfos
;
111 GUID guidPropertySet
;
114 typedef DWORD DBBINDURLFLAG
;
115 typedef DWORD DBBINDURLSTATUS
;
117 typedef struct tagDBIMPLICITSESSION
137 DBTYPE_IDISPATCH
= 9,
141 DBTYPE_IUNKNOWN
= 13,
153 DBTYPE_NUMERIC
= 131,
157 DBTYPE_DBTIMESTAMP
= 135,
159 DBTYPE_VECTOR
= 0x1000,
160 DBTYPE_ARRAY
= 0x2000,
161 DBTYPE_BYREF
= 0x4000,
162 DBTYPE_RESERVED
= 0x8000
167 DBTYPE_HCHAPTER
= 136
172 DBTYPE_FILETIME
= 64,
173 DBTYPE_PROPVARIANT
= 138,
174 DBTYPE_VARNUMERIC
= 139
177 typedef DWORD DBSTATUS
;
182 DBSTATUS_E_BADACCESSOR
= 1,
183 DBSTATUS_E_CANTCONVERTVALUE
= 2,
184 DBSTATUS_S_ISNULL
= 3,
185 DBSTATUS_S_TRUNCATED
= 4,
186 DBSTATUS_E_SIGNMISMATCH
= 5,
187 DBSTATUS_E_DATAOVERFLOW
= 6,
188 DBSTATUS_E_CANTCREATE
= 7,
189 DBSTATUS_E_UNAVAILABLE
= 8,
190 DBSTATUS_E_PERMISSIONDENIED
= 9,
191 DBSTATUS_E_INTEGRITYVIOLATION
= 10,
192 DBSTATUS_E_SCHEMAVIOLATION
= 11,
193 DBSTATUS_E_BADSTATUS
= 12,
194 DBSTATUS_S_DEFAULT
= 13
199 DBPROP_ABORTPRESERVE
= 0x00000002,
200 DBPROP_ACTIVESESSIONS
= 0x00000003,
201 DBPROP_ASYNCTXNCOMMIT
= 0x00000004,
202 DBPROP_AUTH_CACHE_AUTHINFO
= 0x00000005,
203 DBPROP_AUTH_ENCRYPT_PASSWORD
= 0x00000006,
204 DBPROP_AUTH_INTEGRATED
= 0x00000007,
205 DBPROP_AUTH_MASK_PASSWORD
= 0x00000008,
206 DBPROP_AUTH_PASSWORD
= 0x00000009,
207 DBPROP_AUTH_PERSIST_ENCRYPTED
= 0x0000000a,
208 DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO
= 0x0000000b,
209 DBPROP_AUTH_USERID
= 0x0000000c,
210 DBPROP_BLOCKINGSTORAGEOBJECTS
= 0x0000000d,
211 DBPROP_BOOKMARKS
= 0x0000000e,
212 DBPROP_BOOKMARKSKIPPED
= 0x0000000f,
213 DBPROP_BOOKMARKTYPE
= 0x00000010,
214 DBPROP_CACHEDEFERRED
= 0x00000011,
215 DBPROP_CANFETCHBACKWARDS
= 0x00000012,
216 DBPROP_CANHOLDROWS
= 0x00000013,
217 DBPROP_CANSCROLLBACKWARDS
= 0x00000015,
218 DBPROP_CATALOGLOCATION
= 0x00000016,
219 DBPROP_CATALOGTERM
= 0x00000017,
220 DBPROP_CATALOGUSAGE
= 0x00000018,
221 DBPROP_COL_AUTOINCREMENT
= 0x0000001a,
222 DBPROP_COL_DEFAULT
= 0x0000001b,
223 DBPROP_COL_DESCRIPTION
= 0x0000001c,
224 DBPROP_COL_NULLABLE
= 0x0000001d,
225 DBPROP_COL_PRIMARYKEY
= 0x0000001e,
226 DBPROP_COL_UNIQUE
= 0x0000001f,
227 DBPROP_COLUMNDEFINITION
= 0x00000020,
228 DBPROP_COLUMNRESTRICT
= 0x00000021,
229 DBPROP_COMMANDTIMEOUT
= 0x00000022,
230 DBPROP_COMMITPRESERVE
= 0x00000023,
231 DBPROP_CONCATNULLBEHAVIOR
= 0x00000024,
232 DBPROP_CURRENTCATALOG
= 0x00000025,
233 DBPROP_DATASOURCENAME
= 0x00000026,
234 DBPROP_DATASOURCEREADONLY
= 0x00000027,
235 DBPROP_DBMSNAME
= 0x00000028,
236 DBPROP_DBMSVER
= 0x00000029,
237 DBPROP_DEFERRED
= 0x0000002a,
238 DBPROP_DELAYSTORAGEOBJECTS
= 0x0000002b,
239 DBPROP_GROUPBY
= 0x0000002c,
240 DBPROP_HETEROGENEOUSTABLES
= 0x0000002d,
241 DBPROP_IDENTIFIERCASE
= 0x0000002e,
242 DBPROP_IMMOBILEROWS
= 0x0000002f,
243 DBPROP_INDEX_AUTOUPDATE
= 0x00000030,
244 DBPROP_INDEX_CLUSTERED
= 0x00000031,
245 DBPROP_INDEX_FILLFACTOR
= 0x00000032,
246 DBPROP_INDEX_INITIALSIZE
= 0x00000033,
247 DBPROP_INDEX_NULLCOLLATION
= 0x00000034,
248 DBPROP_INDEX_NULLS
= 0x00000035,
249 DBPROP_INDEX_PRIMARYKEY
= 0x00000036,
250 DBPROP_INDEX_SORTBOOKMARKS
= 0x00000037,
251 DBPROP_INDEX_TYPE
= 0x00000038,
252 DBPROP_INDEX_UNIQUE
= 0x00000039,
253 DBPROP_INIT_DATASOURCE
= 0x0000003b,
254 DBPROP_INIT_HWND
= 0x0000003c,
255 DBPROP_INIT_IMPERSONATION_LEVEL
= 0x0000003d,
256 DBPROP_INIT_LOCATION
= 0x0000003e,
257 DBPROP_INIT_MODE
= 0x0000003f,
258 DBPROP_INIT_PROMPT
= 0x00000040,
259 DBPROP_INIT_PROTECTION_LEVEL
= 0x00000041,
260 DBPROP_INIT_TIMEOUT
= 0x00000042,
261 DBPROP_LITERALBOOKMARKS
= 0x00000043,
262 DBPROP_LITERALIDENTITY
= 0x00000044,
263 DBPROP_MAXINDEXSIZE
= 0x00000046,
264 DBPROP_MAXOPENROWS
= 0x00000047,
265 DBPROP_MAXPENDINGROWS
= 0x00000048,
266 DBPROP_MAXROWS
= 0x00000049,
267 DBPROP_MAXROWSIZE
= 0x0000004a,
268 DBPROP_MAXROWSIZEINCLUDESBLOB
= 0x0000004b,
269 DBPROP_MAXTABLESINSELECT
= 0x0000004c,
270 DBPROP_MAYWRITECOLUMN
= 0x0000004d,
271 DBPROP_MEMORYUSAGE
= 0x0000004e,
272 DBPROP_MULTIPLESTORAGEOBJECTS
= 0x00000050,
273 DBPROP_MULTITABLEUPDATE
= 0x00000051,
274 DBPROP_NOTIFICATIONPHASES
= 0x00000052,
275 DBPROP_NULLCOLLATION
= 0x00000053,
276 DBPROP_OLEOBJECTS
= 0x00000054,
277 DBPROP_ORDERBYCOLUMNSINSELECT
= 0x00000055,
278 DBPROP_ORDEREDBOOKMARKS
= 0x00000056,
279 DBPROP_OTHERINSERT
= 0x00000057,
280 DBPROP_OTHERUPDATEDELETE
= 0x00000058,
281 DBPROP_OWNINSERT
= 0x00000059,
282 DBPROP_OWNUPDATEDELETE
= 0x0000005a,
283 DBPROP_PREPAREABORTBEHAVIOR
= 0x0000005b,
284 DBPROP_PREPARECOMMITBEHAVIOR
= 0x0000005c,
285 DBPROP_PROCEDURETERM
= 0x0000005d,
286 DBPROP_PROVIDERNAME
= 0x00000060,
287 DBPROP_PROVIDEROLEDBVER
= 0x00000061,
288 DBPROP_PROVIDERVER
= 0x00000062,
289 DBPROP_QUICKRESTART
= 0x00000063,
290 DBPROP_QUOTEDIDENTIFIERCASE
= 0x00000064,
291 DBPROP_REENTRANTEVENTS
= 0x00000065,
292 DBPROP_REMOVEDELETED
= 0x00000066,
293 DBPROP_REPORTMULTIPLECHANGES
= 0x00000067,
294 DBPROP_ROWRESTRICT
= 0x00000068,
295 DBPROP_ROWTHREADMODEL
= 0x00000069,
296 DBPROP_SCHEMATERM
= 0x0000006a,
297 DBPROP_SCHEMAUSAGE
= 0x0000006b,
298 DBPROP_SERVERCURSOR
= 0x0000006c,
299 DBPROP_SQLSUPPORT
= 0x0000006d,
300 DBPROP_STRUCTUREDSTORAGE
= 0x0000006f,
301 DBPROP_SUBQUERIES
= 0x00000070,
302 DBPROP_SUPPORTEDTXNISOLEVELS
= 0x00000071,
303 DBPROP_SUPPORTEDTXNISORETAIN
= 0x00000072,
304 DBPROP_TABLETERM
= 0x00000073,
305 DBPROP_TRANSACTEDOBJECT
= 0x00000074,
306 DBPROP_UPDATABILITY
= 0x00000075,
307 DBPROP_USERNAME
= 0x00000076,
308 DBPROP_STRONGIDENTITY
= 0x00000077,
309 DBPROP_BYREFACCESSORS
= 0x00000078,
310 DBPROP_IAccessor
= 0x00000079,
311 DBPROP_IColumnsInfo
= 0x0000007a,
312 DBPROP_IColumnsRowset
= 0x0000007b,
313 DBPROP_IConnectionPointContainer
= 0x0000007c,
314 DBPROP_IRowset
= 0x0000007e,
315 DBPROP_IRowsetChange
= 0x0000007f,
316 DBPROP_IRowsetIdentity
= 0x00000080,
317 DBPROP_IRowsetInfo
= 0x00000081,
318 DBPROP_IRowsetLocate
= 0x00000082,
319 DBPROP_IRowsetResynch
= 0x00000084,
320 DBPROP_IRowsetScroll
= 0x00000085,
321 DBPROP_IRowsetUpdate
= 0x00000086,
322 DBPROP_ISupportErrorInfo
= 0x00000087,
323 DBPROP_ILockBytes
= 0x00000088,
324 DBPROP_ISequentialStream
= 0x00000089,
325 DBPROP_IStorage
= 0x0000008a,
326 DBPROP_IStream
= 0x0000008b,
327 DBPROP_TBL_TEMPTABLE
= 0x0000008c,
328 DBPROP_IRowsetIndex
= 0x0000009f,
329 DBPROP_INIT_PROVIDERSTRING
= 0x000000a0,
330 DBPROP_SUPPORTEDTXNDDL
= 0x000000a1,
331 DBPROP_INDEX_TEMPINDEX
= 0x000000a3,
332 DBPROP_COL_FIXEDLENGTH
= 0x000000a7,
333 DBPROP_ASYNCTXNABORT
= 0x000000a8,
334 DBPROP_DSOTHREADMODEL
= 0x000000a9,
335 DBPROP_NOTIFYCOLUMNSET
= 0x000000ab,
336 DBPROP_NOTIFYROWDELETE
= 0x000000ad,
337 DBPROP_NOTIFYROWFIRSTCHANGE
= 0x000000ae,
338 DBPROP_NOTIFYROWINSERT
= 0x000000af,
339 DBPROP_NOTIFYROWRESYNCH
= 0x000000b1,
340 DBPROP_NOTIFYROWSETRELEASE
= 0x000000b2,
341 DBPROP_NOTIFYROWSETFETCHPOSITIONCHANGE
= 0x000000b3,
342 DBPROP_NOTIFYROWUNDOCHANGE
= 0x000000b4,
343 DBPROP_NOTIFYROWUNDODELETE
= 0x000000b5,
344 DBPROP_NOTIFYROWUNDOINSERT
= 0x000000b6,
345 DBPROP_NOTIFYROWUPDATE
= 0x000000b7,
346 DBPROP_OUTPUTPARAMETERAVAILABILITY
= 0x000000b8,
347 DBPROP_PERSISTENTIDTYPE
= 0x000000b9,
348 DBPROP_INIT_LCID
= 0x000000ba,
349 DBPROP_APPENDONLY
= 0x000000bb,
350 DBPROP_CHANGEINSERTEDROWS
= 0x000000bc,
351 DBPROP_RETURNPENDINGINSERTS
= 0x000000bd,
352 DBPROP_SESS_AUTOCOMMITISOLEVELS
= 0x000000be,
353 DBPROP_MULTIPLEPARAMSETS
= 0x000000bf,
354 DBPROP_ROWSETCONVERSIONSONCOMMAND
= 0x000000c0,
355 DBPROP_IConvertType
= 0x000000c2,
356 DBPROP_MULTIPLERESULTS
= 0x000000c4,
357 DBPROP_NOTIFICATIONGRANULARITY
= 0x000000c6,
358 DBPROP_NOTIFYROWSETCHANGED
= 0x000000d3,
362 DBPROP_FILTERCOMPAREOPS
= 0x000000d1,
363 DBPROP_FINDCOMPAREOPS
= 0x000000d2,
364 DBPROP_IChapteredRowset
= 0x000000ca,
365 DBPROP_IDBAsynchStatus
= 0x000000cb,
366 DBPROP_IRowsetFind
= 0x000000cc,
367 DBPROP_IRowsetView
= 0x000000d4,
368 DBPROP_IViewChapter
= 0x000000d5,
369 DBPROP_IViewFilter
= 0x000000d6,
370 DBPROP_IViewRowset
= 0x000000d7,
371 DBPROP_IViewSort
= 0x000000d8,
372 DBPROP_INIT_ASYNCH
= 0x000000c8,
373 DBPROP_MAXOPENCHAPTERS
= 0x000000c7,
374 DBPROP_MAXORSINFILTER
= 0x000000cd,
375 DBPROP_MAXSORTCOLUMNS
= 0x000000ce,
376 DBPROP_ROWSET_ASYNCH
= 0x000000c9,
377 DBPROP_SORTONINDEX
= 0x000000cf
381 DBPROP_IMultipleResults
= 0x000000d9,
382 DBPROP_DATASOURCE_TYPE
= 0x000000fb,
383 MDPROP_AXES
= 0x000000fc,
384 MDPROP_FLATTENING_SUPPORT
= 0x000000fd,
385 MDPROP_MDX_JOINCUBES
= 0x000000fe,
386 MDPROP_NAMED_LEVELS
= 0x000000ff,
387 MDPROP_RANGEROWSET
= 0x00000100,
388 MDPROP_MDX_SLICER
= 0x000000da,
389 MDPROP_MDX_CUBEQUALIFICATION
= 0x000000db,
390 MDPROP_MDX_OUTERREFERENCE
= 0x000000dc,
391 MDPROP_MDX_QUERYBYPROPERTY
= 0x000000dd,
392 MDPROP_MDX_CASESUPPORT
= 0x000000de,
393 MDPROP_MDX_STRING_COMPOP
= 0x000000e0,
394 MDPROP_MDX_DESCFLAGS
= 0x000000e1,
395 MDPROP_MDX_SET_FUNCTIONS
= 0x000000e2,
396 MDPROP_MDX_MEMBER_FUNCTIONS
= 0x000000e3,
397 MDPROP_MDX_NUMERIC_FUNCTIONS
= 0x000000e4,
398 MDPROP_MDX_FORMULAS
= 0x000000e5,
399 MDPROP_AGGREGATECELL_UPDATE
= 0x000000e6,
400 MDPROP_MDX_AGGREGATECELL_UPDATE
= MDPROP_AGGREGATECELL_UPDATE
,
401 MDPROP_MDX_OBJQUALIFICATION
= 0x00000105,
402 MDPROP_MDX_NONMEASURE_EXPRESSIONS
= 0x00000106,
403 DBPROP_ACCESSORDER
= 0x000000e7,
404 DBPROP_BOOKMARKINFO
= 0x000000e8,
405 DBPROP_INIT_CATALOG
= 0x000000e9,
406 DBPROP_ROW_BULKOPS
= 0x000000ea,
407 DBPROP_PROVIDERFRIENDLYNAME
= 0x000000eb,
408 DBPROP_LOCKMODE
= 0x000000ec,
409 DBPROP_MULTIPLECONNECTIONS
= 0x000000ed,
410 DBPROP_UNIQUEROWS
= 0x000000ee,
411 DBPROP_SERVERDATAONINSERT
= 0x000000ef,
412 DBPROP_STORAGEFLAGS
= 0x000000f0,
413 DBPROP_CONNECTIONSTATUS
= 0x000000f4,
414 DBPROP_ALTERCOLUMN
= 0x000000f5,
415 DBPROP_COLUMNLCID
= 0x000000f6,
416 DBPROP_RESETDATASOURCE
= 0x000000f7,
417 DBPROP_INIT_OLEDBSERVICES
= 0x000000f8,
418 DBPROP_IRowsetRefresh
= 0x000000f9,
419 DBPROP_SERVERNAME
= 0x000000fa,
420 DBPROP_IParentRowset
= 0x00000101,
421 DBPROP_HIDDENCOLUMNS
= 0x00000102,
422 DBPROP_PROVIDERMEMORY
= 0x00000103,
423 DBPROP_CLIENTCURSOR
= 0x00000104
428 DBPROP_TRUSTEE_USERNAME
= 0x000000f1,
429 DBPROP_TRUSTEE_AUTHENTICATION
= 0x000000f2,
430 DBPROP_TRUSTEE_NEWAUTHENTICATION
= 0x000000f3,
431 DBPROP_IRow
= 0x00000107,
432 DBPROP_IRowChange
= 0x00000108,
433 DBPROP_IRowSchemaChange
= 0x00000109,
434 DBPROP_IGetRow
= 0x0000010a,
435 DBPROP_IScopedOperations
= 0x0000010b,
436 DBPROP_IBindResource
= 0x0000010c,
437 DBPROP_ICreateRow
= 0x0000010d,
438 DBPROP_INIT_BINDFLAGS
= 0x0000010e,
439 DBPROP_INIT_LOCKOWNER
= 0x0000010f,
440 DBPROP_GENERATEURL
= 0x00000111,
441 DBPROP_IDBBinderProperties
= 0x00000112,
442 DBPROP_IColumnsInfo2
= 0x00000113,
443 DBPROP_IRegisterProvider
= 0x00000114,
444 DBPROP_IGetSession
= 0x00000115,
445 DBPROP_IGetSourceRow
= 0x00000116,
446 DBPROP_IRowsetCurrentIndex
= 0x00000117,
447 DBPROP_OPENROWSETSUPPORT
= 0x00000118,
448 DBPROP_COL_ISLONG
= 0x00000119
452 DBPROP_COL_SEED
= 0x0000011a,
453 DBPROP_COL_INCREMENT
= 0x0000011b,
454 DBPROP_INIT_GENERALTIMEOUT
= 0x0000011c,
455 DBPROP_COMSERVICES
= 0x0000011d
459 DBPROP_OUTPUTSTREAM
= 0x0000011e,
460 DBPROP_OUTPUTENCODING
= 0x0000011f,
461 DBPROP_TABLESTATISTICS
= 0x00000120,
462 DBPROP_SKIPROWCOUNTRESULTS
= 0x00000123,
463 DBPROP_IRowsetBookmark
= 0x00000124,
464 MDPROP_VISUALMODE
= 0x00000125,
467 cpp_quote
("#ifdef DBINITCONSTANTS")
468 cpp_quote
("#ifdef __cplusplus")
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
(" EXTERN_C const GUID name = \\")
472 cpp_quote
(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
474 cpp_quote
("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
475 cpp_quote
(" const GUID name DECLSPEC_HIDDEN; \\")
476 cpp_quote
(" const GUID name = \\")
477 cpp_quote
(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
480 cpp_quote
("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
481 cpp_quote
(" EXTERN_C const GUID name DECLSPEC_HIDDEN")
484 cpp_quote
("DEFINE_DBGUID(DB_NULLGUID, 0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);")
485 cpp_quote
("DEFINE_DBGUID(DBPROPSET_DBINIT, 0xc8b522bc, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
486 cpp_quote
("DEFINE_DBGUID(DBGUID_SESSION, 0xc8b522f5, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
487 cpp_quote
("DEFINE_DBGUID(DBGUID_ROWSET, 0xc8b522f6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
488 cpp_quote
("DEFINE_DBGUID(DBGUID_ROW, 0xc8b522f7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
489 cpp_quote
("DEFINE_DBGUID(DBGUID_STREAM, 0xc8b522f9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
491 cpp_quote
("#define DBPROMPT_PROMPT 0x01")
492 cpp_quote
("#define DBPROMPT_COMPLETE 0x02")
493 cpp_quote
("#define DBPROMPT_COMPLETEREQUIRED 0x03")
494 cpp_quote
("#define DBPROMPT_NOPROMPT 0x04")
496 cpp_quote
("#define DBPROPVAL_STGM_READ OF_READ")
497 cpp_quote
("#define DBPROPVAL_STGM_WRITE OF_WRITE")
498 cpp_quote
("#define DBPROPVAL_STGM_READWRITE OF_READWRITE")
499 cpp_quote
("#define DBPROPVAL_STGM_SHARE_DENY_NONE OF_SHARE_DENY_NONE")
500 cpp_quote
("#define DBPROPVAL_STGM_SHARE_DENY_READ OF_SHARE_DENY_READ")
501 cpp_quote
("#define DBPROPVAL_STGM_SHARE_DENY_WRITE OF_SHARE_DENY_WRITE)")
502 cpp_quote
("#define DBPROPVAL_STGM_SHARE_EXCLUSIVE OF_SHARE_EXCLUSIVE")
503 cpp_quote
("#define DBPROPVAL_STGM_DIRECT 0x00010000")
504 cpp_quote
("#define DBPROPVAL_STGM_TRANSACTED 0x00020000")
505 cpp_quote
("#define DBPROPVAL_STGM_CREATE OF_CREATE")
506 cpp_quote
("#define DBPROPVAL_STGM_CONVERT 0x00040000")
507 cpp_quote
("#define DBPROPVAL_STGM_FAILIFTHERE 0x00080000")
508 cpp_quote
("#define DBPROPVAL_STGM_PRIORITY 0x00100000")
509 cpp_quote
("#define DBPROPVAL_STGM_DELETEONRELEASE 0x00200000")
510 cpp_quote
("#define DBPROPVAL_GB_COLLATE __MSABI_LONG(0x00000010)")
511 cpp_quote
("#define DBPROPVAL_CS_UNINITIALIZED __MSABI_LONG(0x00000000)")
512 cpp_quote
("#define DBPROPVAL_CS_INITIALIZED __MSABI_LONG(0x00000001)")
513 cpp_quote
("#define DBPROPVAL_CS_COMMUNICATIONFAILURE __MSABI_LONG(0x00000002)")
515 cpp_quote
("#define DBPROPVAL_RD_RESETALL __MSABI_LONG(0xffffffff)")
516 cpp_quote
("#define DBPROPVAL_OS_RESOURCEPOOLING __MSABI_LONG(0x00000001)")
517 cpp_quote
("#define DBPROPVAL_OS_TXNENLISTMENT __MSABI_LONG(0x00000002)")
518 cpp_quote
("#define DBPROPVAL_OS_CLIENTCURSOR __MSABI_LONG(0x00000004)")
519 cpp_quote
("#define DBPROPVAL_OS_ENABLEALL __MSABI_LONG(0xffffffff)")
520 cpp_quote
("#define DBPROPVAL_BI_CROSSROWSET __MSABI_LONG(0x00000001)")
523 typedef struct tagDBCOLUMNACCESS
530 DB_DWRESERVE dwReserved
;
536 typedef DWORD DBROWSTATUS
;
541 DBROWSTATUS_S_LOCKUPGRADED
,
542 DBROWSTATUS_S_MULTIPLECHANGES
,
543 DBROWSTATUS_S_PENDINGCHANGES
,
544 DBROWSTATUS_E_CANCELED
,
545 DBROWSTATUS_E_CANTLOCKROW
,
546 DBROWSTATUS_E_CANTRELEASE
,
547 DBROWSTATUS_E_CONCURRENCYVIOLATION
,
548 DBROWSTATUS_E_DELETED
,
549 DBROWSTATUS_E_PENDINGINSERT
,
550 DBROWSTATUS_E_NEWLYINSERTED
,
551 DBROWSTATUS_E_INTEGRITYVIOLATION
,
552 DBROWSTATUS_E_INVALID
,
553 DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED
,
554 DBROWSTATUS_E_OBJECTOPEN
,
555 DBROWSTATUS_E_OUTOFMEMORY
,
556 DBROWSTATUS_E_PERMISSIONDENIED
,
557 DBROWSTATUS_E_LIMITREACHED
,
558 DBROWSTATUS_E_SCHEMAVIOLATION
,
563 typedef DWORD DBPART
;
573 typedef DWORD DBPARAMIO
;
577 DBPARAMIO_NOTPARAM
= 0,
579 DBPARAMIO_OUTPUT
= 2,
582 typedef DWORD DBMEMOWNER
;
586 DBMEMOWNER_CLIENTOWNED
= 0,
587 DBMEMOWNER_PROVIDEROWNED
= 1,
590 typedef struct tagDBOBJECT
596 typedef struct tagDBBINDEXT
598 [size_is((ULONG
)ulExtension
)] BYTE *pExtension
;
599 DBCOUNTITEM ulExtension
;
602 typedef struct tagDBBINDING
605 DBBYTEOFFSET obValue
;
606 DBBYTEOFFSET obLength
;
607 DBBYTEOFFSET obStatus
;
608 ITypeInfo
*pTypeInfo
;
612 DBMEMOWNER dwMemOwner
;
621 typedef ULONG_PTR HACCESSOR
;
623 cpp_quote
("#define DB_INVALID_HACCESSOR 0x00")
625 typedef ULONG_PTR HROW
;
627 cpp_quote
("#define DB_NULL_HROW 0x00")
629 typedef ULONG_PTR HWATCHREGION
;
631 cpp_quote
("#define DBWATCHREGION_NULL NULL")
633 typedef ULONG_PTR HCHAPTER
;
635 cpp_quote
("#define DB_NULL_HCHAPTER 0x00")
637 typedef struct tagDBPARAMS
640 DB_UPARAMS cParamSets
;
644 typedef DWORD DBASYNCHOP
;
651 typedef DWORD DBASYNCHPHASE
;
653 enum DBASYNCHPHASEENUM
655 DBASYNCHPHASE_INITIALIZATION
,
656 DBASYNCHPHASE_POPULATION
,
657 DBASYNCHPHASE_COMPLETE
,
658 DBASYNCHPHASE_CANCELED
,
661 typedef struct tagRMTPACK
663 ISequentialStream
*pISeqStream
;
666 [size_is(cBSTR
)] BSTR *rgBSTR
;
668 [size_is(cVARIANT
)] VARIANT *rgVARIANT
;
670 [size_is(cIDISPATCH
)] IDispatch
**rgIDISPATCH
;
672 [size_is(cIUNKNOWN
)] IUnknown
**rgIUNKNOWN
;
674 [size_is(cPROPVARIANT
)] PROPVARIANT
*rgPROPVARIANT
;
676 [size_is(cArray
)] VARIANT *rgArray
;
679 typedef struct tagDBDATE
{
685 typedef struct tagDBTIME
{
691 typedef struct tagDBTIMESTAMP
{
701 typedef DWORD DBREASON
;
702 typedef DWORD DBEVENTPHASE
;
704 enum DBEVENTPHASEENUM
{
706 DBEVENTPHASE_ABOUTTODO
,
707 DBEVENTPHASE_SYNCHAFTER
,
708 DBEVENTPHASE_FAILEDTODO
,
709 DBEVENTPHASE_DIDEVENT
713 DBREASON_ROWSET_FETCHPOSITIONCHANGE
,
714 DBREASON_ROWSET_RELEASE
,
716 DBREASON_COLUMN_RECALCULATED
,
717 DBREASON_ROW_ACTIVATE
,
718 DBREASON_ROW_RELEASE
,
720 DBREASON_ROW_FIRSTCHANCE
,
722 DBREASON_ROW_RESYNCH
,
723 DBREASON_ROW_UNDOCHANGE
,
724 DBREASON_ROW_UNDOINSERT
,
725 DBREASON_ROW_UNDODELETE
,
727 DBREASON_ROWSET_CHANGED
730 enum DBREASONENUM15
{
731 DBREASON_ROWPOSITION_CHANGED
= DBREASON_ROWSET_CHANGED
+ 1,
732 DBREASON_ROWPOSITION_CHAPTERCHANGED
,
733 DBREASON_ROWPOSITION_CLEARED
,
734 DBREASON_ROW_ASYNCHINSERT
737 typedef DWORD DBCOLUMNFLAGS
;
739 enum DBCOLUMNFLAGSENUM
{
740 DBCOLUMNFLAGS_ISBOOKMARK
= 0x0001,
741 DBCOLUMNFLAGS_MAYDEFER
= 0x0002,
742 DBCOLUMNFLAGS_WRITE
= 0x0004,
743 DBCOLUMNFLAGS_WRITEUNKNOWN
= 0x0008,
744 DBCOLUMNFLAGS_ISFIXEDLENGTH
= 0x0010,
745 DBCOLUMNFLAGS_ISNULLABLE
= 0x0020,
746 DBCOLUMNFLAGS_MAYBENULL
= 0x0040,
747 DBCOLUMNFLAGS_ISLONG
= 0x0080,
748 DBCOLUMNFLAGS_ISROWID
= 0x0100,
749 DBCOLUMNFLAGS_ISROWVER
= 0x0200,
750 DBCOLUMNFLAGS_CACHEDEFERRED
= 0x1000
753 typedef struct tagDBCOLUMNINFO
{
755 ITypeInfo
*pTypeInfo
;
757 DBCOLUMNFLAGS dwFlags
;
758 DBLENGTH ulColumnSize
;