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 enum DBPROPSTATUSENUM
{
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
;
106 typedef struct tagDBPROPSET
{
107 [size_is(cProperties
)] DBPROP
*rgProperties
;
109 GUID guidPropertySet
;
112 typedef DWORD DBPROPFLAGS
;
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
;
140 typedef DBPROPINFO
*PDBPROPINFO
;
142 typedef struct tagDBPROPINFOSET
{
143 [size_is(cPropertyInfos
)] PDBPROPINFO rgPropertyInfos
;
144 ULONG cPropertyInfos
;
145 GUID guidPropertySet
;
148 typedef DWORD DBBINDURLFLAG
;
149 typedef DWORD DBBINDURLSTATUS
;
151 typedef struct tagDBIMPLICITSESSION
171 DBTYPE_IDISPATCH
= 9,
175 DBTYPE_IUNKNOWN
= 13,
187 DBTYPE_NUMERIC
= 131,
191 DBTYPE_DBTIMESTAMP
= 135,
193 DBTYPE_VECTOR
= 0x1000,
194 DBTYPE_ARRAY
= 0x2000,
195 DBTYPE_BYREF
= 0x4000,
196 DBTYPE_RESERVED
= 0x8000
201 DBTYPE_HCHAPTER
= 136
206 DBTYPE_FILETIME
= 64,
207 DBTYPE_PROPVARIANT
= 138,
208 DBTYPE_VARNUMERIC
= 139
211 typedef DWORD DBSTATUS
;
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
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,
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
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
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
486 DBPROP_COL_SEED
= 0x0000011a,
487 DBPROP_COL_INCREMENT
= 0x0000011b,
488 DBPROP_INIT_GENERALTIMEOUT
= 0x0000011c,
489 DBPROP_COMSERVICES
= 0x0000011d
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 } }")
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 } }")
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")
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 DB_MODE_READ 0x01")
573 cpp_quote
("#define DB_MODE_WRITE 0x02")
574 cpp_quote
("#define DB_MODE_READWRITE 0x03")
575 cpp_quote
("#define DB_MODE_SHARE_DENY_READ 0x04")
576 cpp_quote
("#define DB_MODE_SHARE_DENY_WRITE 0x08")
577 cpp_quote
("#define DB_MODE_SHARE_EXCLUSIVE 0x0c")
578 cpp_quote
("#define DB_MODE_SHARE_DENY_NONE 0x10")
580 typedef struct tagDBCOLUMNACCESS
587 DB_DWRESERVE dwReserved
;
593 typedef DWORD DBROWSTATUS
;
598 DBROWSTATUS_S_LOCKUPGRADED
,
599 DBROWSTATUS_S_MULTIPLECHANGES
,
600 DBROWSTATUS_S_PENDINGCHANGES
,
601 DBROWSTATUS_E_CANCELED
,
602 DBROWSTATUS_E_CANTLOCKROW
,
603 DBROWSTATUS_E_CANTRELEASE
,
604 DBROWSTATUS_E_CONCURRENCYVIOLATION
,
605 DBROWSTATUS_E_DELETED
,
606 DBROWSTATUS_E_PENDINGINSERT
,
607 DBROWSTATUS_E_NEWLYINSERTED
,
608 DBROWSTATUS_E_INTEGRITYVIOLATION
,
609 DBROWSTATUS_E_INVALID
,
610 DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED
,
611 DBROWSTATUS_E_OBJECTOPEN
,
612 DBROWSTATUS_E_OUTOFMEMORY
,
613 DBROWSTATUS_E_PERMISSIONDENIED
,
614 DBROWSTATUS_E_LIMITREACHED
,
615 DBROWSTATUS_E_SCHEMAVIOLATION
,
620 typedef DWORD DBPART
;
630 typedef DWORD DBPARAMIO
;
634 DBPARAMIO_NOTPARAM
= 0,
636 DBPARAMIO_OUTPUT
= 2,
639 typedef DWORD DBMEMOWNER
;
643 DBMEMOWNER_CLIENTOWNED
= 0,
644 DBMEMOWNER_PROVIDEROWNED
= 1,
647 typedef struct tagDBOBJECT
653 typedef struct tagDBBINDEXT
655 [size_is((ULONG
)ulExtension
)] BYTE *pExtension
;
656 DBCOUNTITEM ulExtension
;
659 typedef struct tagDBBINDING
662 DBBYTEOFFSET obValue
;
663 DBBYTEOFFSET obLength
;
664 DBBYTEOFFSET obStatus
;
665 ITypeInfo
*pTypeInfo
;
669 DBMEMOWNER dwMemOwner
;
678 typedef ULONG_PTR HACCESSOR
;
680 cpp_quote
("#define DB_INVALID_HACCESSOR 0x00")
682 typedef ULONG_PTR HROW
;
684 cpp_quote
("#define DB_NULL_HROW 0x00")
686 typedef ULONG_PTR HWATCHREGION
;
688 cpp_quote
("#define DBWATCHREGION_NULL NULL")
690 typedef ULONG_PTR HCHAPTER
;
692 cpp_quote
("#define DB_NULL_HCHAPTER 0x00")
694 typedef struct tagDBPARAMS
697 DB_UPARAMS cParamSets
;
701 typedef DWORD DBASYNCHOP
;
708 typedef DWORD DBASYNCHPHASE
;
710 enum DBASYNCHPHASEENUM
712 DBASYNCHPHASE_INITIALIZATION
,
713 DBASYNCHPHASE_POPULATION
,
714 DBASYNCHPHASE_COMPLETE
,
715 DBASYNCHPHASE_CANCELED
,
718 typedef struct tagRMTPACK
720 ISequentialStream
*pISeqStream
;
723 [size_is(cBSTR
)] BSTR *rgBSTR
;
725 [size_is(cVARIANT
)] VARIANT *rgVARIANT
;
727 [size_is(cIDISPATCH
)] IDispatch
**rgIDISPATCH
;
729 [size_is(cIUNKNOWN
)] IUnknown
**rgIUNKNOWN
;
731 [size_is(cPROPVARIANT
)] PROPVARIANT
*rgPROPVARIANT
;
733 [size_is(cArray
)] VARIANT *rgArray
;
736 typedef struct tagDBDATE
{
742 typedef struct tagDBTIME
{
748 typedef struct tagDBTIMESTAMP
{
758 typedef DWORD DBREASON
;
759 typedef DWORD DBEVENTPHASE
;
761 enum DBEVENTPHASEENUM
{
763 DBEVENTPHASE_ABOUTTODO
,
764 DBEVENTPHASE_SYNCHAFTER
,
765 DBEVENTPHASE_FAILEDTODO
,
766 DBEVENTPHASE_DIDEVENT
770 DBREASON_ROWSET_FETCHPOSITIONCHANGE
,
771 DBREASON_ROWSET_RELEASE
,
773 DBREASON_COLUMN_RECALCULATED
,
774 DBREASON_ROW_ACTIVATE
,
775 DBREASON_ROW_RELEASE
,
777 DBREASON_ROW_FIRSTCHANCE
,
779 DBREASON_ROW_RESYNCH
,
780 DBREASON_ROW_UNDOCHANGE
,
781 DBREASON_ROW_UNDOINSERT
,
782 DBREASON_ROW_UNDODELETE
,
784 DBREASON_ROWSET_CHANGED
787 enum DBREASONENUM15
{
788 DBREASON_ROWPOSITION_CHANGED
= DBREASON_ROWSET_CHANGED
+ 1,
789 DBREASON_ROWPOSITION_CHAPTERCHANGED
,
790 DBREASON_ROWPOSITION_CLEARED
,
791 DBREASON_ROW_ASYNCHINSERT
794 typedef DWORD DBCOLUMNFLAGS
;
796 enum DBCOLUMNFLAGSENUM
{
797 DBCOLUMNFLAGS_ISBOOKMARK
= 0x0001,
798 DBCOLUMNFLAGS_MAYDEFER
= 0x0002,
799 DBCOLUMNFLAGS_WRITE
= 0x0004,
800 DBCOLUMNFLAGS_WRITEUNKNOWN
= 0x0008,
801 DBCOLUMNFLAGS_ISFIXEDLENGTH
= 0x0010,
802 DBCOLUMNFLAGS_ISNULLABLE
= 0x0020,
803 DBCOLUMNFLAGS_MAYBENULL
= 0x0040,
804 DBCOLUMNFLAGS_ISLONG
= 0x0080,
805 DBCOLUMNFLAGS_ISROWID
= 0x0100,
806 DBCOLUMNFLAGS_ISROWVER
= 0x0200,
807 DBCOLUMNFLAGS_CACHEDEFERRED
= 0x1000
810 typedef struct tagDBCOLUMNINFO
{
812 ITypeInfo
*pTypeInfo
;
814 DBCOLUMNFLAGS dwFlags
;
815 DBLENGTH ulColumnSize
;
822 typedef DWORD DBPARAMFLAGS
;
824 enum DBPARAMFLAGSENUM
{
825 DBPARAMFLAGS_ISINPUT
= 0x001,
826 DBPARAMFLAGS_ISOUTPUT
= 0x002,
827 DBPARAMFLAGS_ISSIGNED
= 0x010,
828 DBPARAMFLAGS_ISNULLABLE
= 0x040,
829 DBPARAMFLAGS_ISLONG
= 0x080
832 enum DBPARAMFLAGSENUM20
{
833 DBPARAMFLAGS_SCALEISNEGATIVE
= 0x100
836 typedef struct tagDBPARAMINFO
{
837 DBPARAMFLAGS dwFlags
;
840 ITypeInfo
*pTypeInfo
;
841 DBLENGTH ulParamSize
;