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 = \\")
505 cpp_quote
(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
507 cpp_quote
("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
508 cpp_quote
(" const GUID name = \\")
509 cpp_quote
(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
511 cpp_quote
("#define DEFINE_DBID(name, dbguid, kind, val) \\")
512 cpp_quote
(" const DBID name = { {dbguid}, kind, {(LPOLESTR)val} }")
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")
516 cpp_quote
("#define DEFINE_DBID(name, dbguid, kind, val) \\")
517 cpp_quote
(" EXTERN_C const DBID name")
520 cpp_quote
("#define DBCIDGUID {0x0c733a81, 0x2a1c, 0x11ce, {0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d}}")
521 cpp_quote
("#define DB_NULLGUID {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}")
523 cpp_quote
("DEFINE_DBGUID(DBGUID_SQL, 0xc8b522d7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
524 cpp_quote
("DEFINE_DBGUID(DBGUID_DEFAULT, 0xc8b521fb, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
525 cpp_quote
("DEFINE_DBGUID(DBGUID_SESSION, 0xc8b522f5, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
526 cpp_quote
("DEFINE_DBGUID(DBGUID_ROWSET, 0xc8b522f6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
527 cpp_quote
("DEFINE_DBGUID(DBGUID_ROW, 0xc8b522f7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
528 cpp_quote
("DEFINE_DBGUID(DBGUID_STREAM, 0xc8b522f9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
530 cpp_quote
("DEFINE_DBGUID(DBPROPSET_COLUMN, 0xc8b522b9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
531 cpp_quote
("DEFINE_DBGUID(DBPROPSET_DATASOURCE, 0xc8b522ba, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
532 cpp_quote
("DEFINE_DBGUID(DBPROPSET_DATASOURCEINFO, 0xc8b522bb, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
533 cpp_quote
("DEFINE_DBGUID(DBPROPSET_DBINIT, 0xc8b522bc, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
534 cpp_quote
("DEFINE_DBGUID(DBPROPSET_INDEX, 0xc8b522bd, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
535 cpp_quote
("DEFINE_DBGUID(DBPROPSET_ROWSET, 0xc8b522be, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
536 cpp_quote
("DEFINE_DBGUID(DBPROPSET_TABLE, 0xc8b522bf, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
537 cpp_quote
("DEFINE_DBGUID(DBPROPSET_DATASOURCEALL, 0xc8b522c0, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
538 cpp_quote
("DEFINE_DBGUID(DBPROPSET_DATASOURCEINFOALL, 0xc8b522c1, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
539 cpp_quote
("DEFINE_DBGUID(DBPROPSET_ROWSETALL, 0xc8b522c2, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
540 cpp_quote
("DEFINE_DBGUID(DBPROPSET_SESSION, 0xc8b522c6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
541 cpp_quote
("DEFINE_DBGUID(DBPROPSET_SESSIONALL, 0xc8b522c7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
542 cpp_quote
("DEFINE_DBGUID(DBPROPSET_DBINITALL, 0xc8b522ca, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
543 cpp_quote
("DEFINE_DBGUID(DBPROPSET_PROPERTIESINERROR, 0xc8b522d4, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
545 cpp_quote
("DEFINE_DBID(DB_NULLID, DB_NULLGUID, 0, 0);")
546 cpp_quote
("DEFINE_DBID(DBCOLUMN_IDNAME, DBCIDGUID, DBKIND_GUID_PROPID, 2);")
547 cpp_quote
("DEFINE_DBID(DBCOLUMN_NAME, DBCIDGUID, DBKIND_GUID_PROPID, 3);")
548 cpp_quote
("DEFINE_DBID(DBCOLUMN_NUMBER, DBCIDGUID, DBKIND_GUID_PROPID, 4);")
549 cpp_quote
("DEFINE_DBID(DBCOLUMN_TYPE, DBCIDGUID, DBKIND_GUID_PROPID, 5);")
550 cpp_quote
("DEFINE_DBID(DBCOLUMN_PRECISION, DBCIDGUID, DBKIND_GUID_PROPID, 7);")
551 cpp_quote
("DEFINE_DBID(DBCOLUMN_SCALE, DBCIDGUID, DBKIND_GUID_PROPID, 8);")
552 cpp_quote
("DEFINE_DBID(DBCOLUMN_FLAGS, DBCIDGUID, DBKIND_GUID_PROPID, 9);")
553 cpp_quote
("DEFINE_DBID(DBCOLUMN_BASECOLUMNNAME, DBCIDGUID, DBKIND_GUID_PROPID, 10);")
554 cpp_quote
("DEFINE_DBID(DBCOLUMN_BASETABLENAME, DBCIDGUID, DBKIND_GUID_PROPID, 11);")
555 cpp_quote
("DEFINE_DBID(DBCOLUMN_COLLATINGSEQUENCE, DBCIDGUID, DBKIND_GUID_PROPID, 12);")
556 cpp_quote
("DEFINE_DBID(DBCOLUMN_COMPUTEMODE, DBCIDGUID, DBKIND_GUID_PROPID, 13);")
557 cpp_quote
("DEFINE_DBID(DBCOLUMN_DEFAULTVALUE, DBCIDGUID, DBKIND_GUID_PROPID, 14);")
558 cpp_quote
("DEFINE_DBID(DBCOLUMN_DOMAINNAME, DBCIDGUID, DBKIND_GUID_PROPID, 15);")
559 cpp_quote
("DEFINE_DBID(DBCOLUMN_HASDEFAULT, DBCIDGUID, DBKIND_GUID_PROPID, 16);")
560 cpp_quote
("DEFINE_DBID(DBCOLUMN_ISAUTOINCREMENT, DBCIDGUID, DBKIND_GUID_PROPID, 17);")
561 cpp_quote
("DEFINE_DBID(DBCOLUMN_ISCASESENSITIVE, DBCIDGUID, DBKIND_GUID_PROPID, 18);")
562 cpp_quote
("DEFINE_DBID(DBCOLUMN_ISSEARCHABLE, DBCIDGUID, DBKIND_GUID_PROPID, 20);")
563 cpp_quote
("DEFINE_DBID(DBCOLUMN_ISUNIQUE, DBCIDGUID, DBKIND_GUID_PROPID, 21);")
564 cpp_quote
("DEFINE_DBID(DBCOLUMN_BASECATALOGNAME, DBCIDGUID, DBKIND_GUID_PROPID, 23);")
565 cpp_quote
("DEFINE_DBID(DBCOLUMN_BASESCHEMANAME, DBCIDGUID, DBKIND_GUID_PROPID, 24);")
566 cpp_quote
("DEFINE_DBID(DBCOLUMN_GUID, DBCIDGUID, DBKIND_GUID_PROPID, 29);")
567 cpp_quote
("DEFINE_DBID(DBCOLUMN_PROPID, DBCIDGUID, DBKIND_GUID_PROPID, 30);")
568 cpp_quote
("DEFINE_DBID(DBCOLUMN_TYPEINFO, DBCIDGUID, DBKIND_GUID_PROPID, 31);")
569 cpp_quote
("DEFINE_DBID(DBCOLUMN_DOMAINCATALOG, DBCIDGUID, DBKIND_GUID_PROPID, 32);")
570 cpp_quote
("DEFINE_DBID(DBCOLUMN_DOMAINSCHEMA, DBCIDGUID, DBKIND_GUID_PROPID, 33);")
571 cpp_quote
("DEFINE_DBID(DBCOLUMN_DATETIMEPRECISION, DBCIDGUID, DBKIND_GUID_PROPID, 34);")
572 cpp_quote
("DEFINE_DBID(DBCOLUMN_NUMERICPRECISIONRADIX, DBCIDGUID, DBKIND_GUID_PROPID, 35);")
573 cpp_quote
("DEFINE_DBID(DBCOLUMN_OCTETLENGTH, DBCIDGUID, DBKIND_GUID_PROPID, 36);")
574 cpp_quote
("DEFINE_DBID(DBCOLUMN_COLUMNSIZE, DBCIDGUID, DBKIND_GUID_PROPID, 37);")
575 cpp_quote
("DEFINE_DBID(DBCOLUMN_CLSID, DBCIDGUID, DBKIND_GUID_PROPID, 38);")
576 cpp_quote
("DEFINE_DBID(DBCOLUMN_KEYCOLUMN, DBCIDGUID, DBKIND_GUID_PROPID, 41);")
578 cpp_quote
("#define DBPROMPT_PROMPT 0x01")
579 cpp_quote
("#define DBPROMPT_COMPLETE 0x02")
580 cpp_quote
("#define DBPROMPT_COMPLETEREQUIRED 0x03")
581 cpp_quote
("#define DBPROMPT_NOPROMPT 0x04")
583 cpp_quote
("#define DBPROPVAL_STGM_READ OF_READ")
584 cpp_quote
("#define DBPROPVAL_STGM_WRITE OF_WRITE")
585 cpp_quote
("#define DBPROPVAL_STGM_READWRITE OF_READWRITE")
586 cpp_quote
("#define DBPROPVAL_STGM_SHARE_DENY_NONE OF_SHARE_DENY_NONE")
587 cpp_quote
("#define DBPROPVAL_STGM_SHARE_DENY_READ OF_SHARE_DENY_READ")
588 cpp_quote
("#define DBPROPVAL_STGM_SHARE_DENY_WRITE OF_SHARE_DENY_WRITE)")
589 cpp_quote
("#define DBPROPVAL_STGM_SHARE_EXCLUSIVE OF_SHARE_EXCLUSIVE")
590 cpp_quote
("#define DBPROPVAL_STGM_DIRECT 0x00010000")
591 cpp_quote
("#define DBPROPVAL_STGM_TRANSACTED 0x00020000")
592 cpp_quote
("#define DBPROPVAL_STGM_CREATE OF_CREATE")
593 cpp_quote
("#define DBPROPVAL_STGM_CONVERT 0x00040000")
594 cpp_quote
("#define DBPROPVAL_STGM_FAILIFTHERE 0x00080000")
595 cpp_quote
("#define DBPROPVAL_STGM_PRIORITY 0x00100000")
596 cpp_quote
("#define DBPROPVAL_STGM_DELETEONRELEASE 0x00200000")
597 cpp_quote
("#define DBPROPVAL_GB_COLLATE __MSABI_LONG(0x00000010)")
598 cpp_quote
("#define DBPROPVAL_CS_UNINITIALIZED __MSABI_LONG(0x00000000)")
599 cpp_quote
("#define DBPROPVAL_CS_INITIALIZED __MSABI_LONG(0x00000001)")
600 cpp_quote
("#define DBPROPVAL_CS_COMMUNICATIONFAILURE __MSABI_LONG(0x00000002)")
602 cpp_quote
("#define DBPROPVAL_RD_RESETALL __MSABI_LONG(0xffffffff)")
603 cpp_quote
("#define DBPROPVAL_OS_RESOURCEPOOLING __MSABI_LONG(0x00000001)")
604 cpp_quote
("#define DBPROPVAL_OS_TXNENLISTMENT __MSABI_LONG(0x00000002)")
605 cpp_quote
("#define DBPROPVAL_OS_CLIENTCURSOR __MSABI_LONG(0x00000004)")
606 cpp_quote
("#define DBPROPVAL_OS_ENABLEALL __MSABI_LONG(0xffffffff)")
607 cpp_quote
("#define DBPROPVAL_BI_CROSSROWSET __MSABI_LONG(0x00000001)")
609 cpp_quote
("#define DBPROPVAL_RT_FREETHREAD __MSABI_LONG(0x00000001)")
610 cpp_quote
("#define DBPROPVAL_RT_APTMTTHREAD __MSABI_LONG(0x00000002)")
611 cpp_quote
("#define DBPROPVAL_RT_SINGLETHREAD __MSABI_LONG(0x00000004)")
613 cpp_quote
("#define DBPROPVAL_LM_NONE __MSABI_LONG(0x00000001)")
614 cpp_quote
("#define DBPROPVAL_LM_READ __MSABI_LONG(0x00000002)")
615 cpp_quote
("#define DBPROPVAL_LM_INTENT __MSABI_LONG(0x00000004)")
616 cpp_quote
("#define DBPROPVAL_LM_RITE __MSABI_LONG(0x00000008)")
618 cpp_quote
("#define DBPROPVAL_MR_NOTSUPPORTED __MSABI_LONG(0x00000000)")
619 cpp_quote
("#define DBPROPVAL_MR_SUPPORTED __MSABI_LONG(0x00000001)")
620 cpp_quote
("#define DBPROPVAL_MR_CONCURRENT __MSABI_LONG(0x00000002)")
622 cpp_quote
("#define DB_MODE_READ 0x01")
623 cpp_quote
("#define DB_MODE_WRITE 0x02")
624 cpp_quote
("#define DB_MODE_READWRITE 0x03")
625 cpp_quote
("#define DB_MODE_SHARE_DENY_READ 0x04")
626 cpp_quote
("#define DB_MODE_SHARE_DENY_WRITE 0x08")
627 cpp_quote
("#define DB_MODE_SHARE_EXCLUSIVE 0x0c")
628 cpp_quote
("#define DB_MODE_SHARE_DENY_NONE 0x10")
630 typedef struct tagDBCOLUMNACCESS
637 DB_DWRESERVE dwReserved
;
643 typedef DWORD DBROWSTATUS
;
648 DBROWSTATUS_S_LOCKUPGRADED
,
649 DBROWSTATUS_S_MULTIPLECHANGES
,
650 DBROWSTATUS_S_PENDINGCHANGES
,
651 DBROWSTATUS_E_CANCELED
,
652 DBROWSTATUS_E_CANTLOCKROW
,
653 DBROWSTATUS_E_CANTRELEASE
,
654 DBROWSTATUS_E_CONCURRENCYVIOLATION
,
655 DBROWSTATUS_E_DELETED
,
656 DBROWSTATUS_E_PENDINGINSERT
,
657 DBROWSTATUS_E_NEWLYINSERTED
,
658 DBROWSTATUS_E_INTEGRITYVIOLATION
,
659 DBROWSTATUS_E_INVALID
,
660 DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED
,
661 DBROWSTATUS_E_OBJECTOPEN
,
662 DBROWSTATUS_E_OUTOFMEMORY
,
663 DBROWSTATUS_E_PERMISSIONDENIED
,
664 DBROWSTATUS_E_LIMITREACHED
,
665 DBROWSTATUS_E_SCHEMAVIOLATION
,
670 typedef DWORD DBPART
;
680 typedef DWORD DBPARAMIO
;
684 DBPARAMIO_NOTPARAM
= 0,
686 DBPARAMIO_OUTPUT
= 2,
689 typedef DWORD DBMEMOWNER
;
693 DBMEMOWNER_CLIENTOWNED
= 0,
694 DBMEMOWNER_PROVIDEROWNED
= 1,
697 typedef struct tagDBOBJECT
703 typedef struct tagDBBINDEXT
705 [size_is((ULONG
)ulExtension
)] BYTE *pExtension
;
706 DBCOUNTITEM ulExtension
;
709 typedef struct tagDBBINDING
712 DBBYTEOFFSET obValue
;
713 DBBYTEOFFSET obLength
;
714 DBBYTEOFFSET obStatus
;
715 ITypeInfo
*pTypeInfo
;
719 DBMEMOWNER dwMemOwner
;
728 typedef ULONG_PTR HACCESSOR
;
730 cpp_quote
("#define DB_INVALID_HACCESSOR 0x00")
732 typedef ULONG_PTR HROW
;
734 cpp_quote
("#define DB_NULL_HROW 0x00")
736 typedef ULONG_PTR HWATCHREGION
;
738 cpp_quote
("#define DBWATCHREGION_NULL NULL")
740 typedef ULONG_PTR HCHAPTER
;
742 cpp_quote
("#define DB_NULL_HCHAPTER 0x00")
744 typedef struct tagDBPARAMS
747 DB_UPARAMS cParamSets
;
751 typedef DWORD DBASYNCHOP
;
758 typedef DWORD DBASYNCHPHASE
;
760 enum DBASYNCHPHASEENUM
762 DBASYNCHPHASE_INITIALIZATION
,
763 DBASYNCHPHASE_POPULATION
,
764 DBASYNCHPHASE_COMPLETE
,
765 DBASYNCHPHASE_CANCELED
,
768 typedef struct tagRMTPACK
770 ISequentialStream
*pISeqStream
;
773 [size_is(cBSTR
)] BSTR *rgBSTR
;
775 [size_is(cVARIANT
)] VARIANT *rgVARIANT
;
777 [size_is(cIDISPATCH
)] IDispatch
**rgIDISPATCH
;
779 [size_is(cIUNKNOWN
)] IUnknown
**rgIUNKNOWN
;
781 [size_is(cPROPVARIANT
)] PROPVARIANT
*rgPROPVARIANT
;
783 [size_is(cArray
)] VARIANT *rgArray
;
786 typedef struct tagDBDATE
{
792 typedef struct tagDBTIME
{
798 typedef struct tagDBTIMESTAMP
{
808 typedef DWORD DBREASON
;
809 typedef DWORD DBEVENTPHASE
;
811 enum DBEVENTPHASEENUM
{
813 DBEVENTPHASE_ABOUTTODO
,
814 DBEVENTPHASE_SYNCHAFTER
,
815 DBEVENTPHASE_FAILEDTODO
,
816 DBEVENTPHASE_DIDEVENT
820 DBREASON_ROWSET_FETCHPOSITIONCHANGE
,
821 DBREASON_ROWSET_RELEASE
,
823 DBREASON_COLUMN_RECALCULATED
,
824 DBREASON_ROW_ACTIVATE
,
825 DBREASON_ROW_RELEASE
,
827 DBREASON_ROW_FIRSTCHANCE
,
829 DBREASON_ROW_RESYNCH
,
830 DBREASON_ROW_UNDOCHANGE
,
831 DBREASON_ROW_UNDOINSERT
,
832 DBREASON_ROW_UNDODELETE
,
834 DBREASON_ROWSET_CHANGED
837 enum DBREASONENUM15
{
838 DBREASON_ROWPOSITION_CHANGED
= DBREASON_ROWSET_CHANGED
+ 1,
839 DBREASON_ROWPOSITION_CHAPTERCHANGED
,
840 DBREASON_ROWPOSITION_CLEARED
,
841 DBREASON_ROW_ASYNCHINSERT
844 typedef DWORD DBCOLUMNFLAGS
;
846 enum DBCOLUMNFLAGSENUM
{
847 DBCOLUMNFLAGS_ISBOOKMARK
= 0x0001,
848 DBCOLUMNFLAGS_MAYDEFER
= 0x0002,
849 DBCOLUMNFLAGS_WRITE
= 0x0004,
850 DBCOLUMNFLAGS_WRITEUNKNOWN
= 0x0008,
851 DBCOLUMNFLAGS_ISFIXEDLENGTH
= 0x0010,
852 DBCOLUMNFLAGS_ISNULLABLE
= 0x0020,
853 DBCOLUMNFLAGS_MAYBENULL
= 0x0040,
854 DBCOLUMNFLAGS_ISLONG
= 0x0080,
855 DBCOLUMNFLAGS_ISROWID
= 0x0100,
856 DBCOLUMNFLAGS_ISROWVER
= 0x0200,
857 DBCOLUMNFLAGS_CACHEDEFERRED
= 0x1000
860 enum DBCOLUMNFLAGS15ENUM
{
861 DBCOLUMNFLAGS_ISCHAPTER
= 0x002000
864 enum DBCOLUMNFLAGSENUM20
{
865 DBCOLUMNFLAGS_SCALEISNEGATIVE
= 0x004000,
866 DBCOLUMNFLAGS_RESERVED
= 0x008000
869 enum DBCOLUMNFLAGSENUM21
{
870 DBCOLUMNFLAGS_ISROWURL
= 0x010000,
871 DBCOLUMNFLAGS_ISDEFAULTSTREAM
= 0x020000,
872 DBCOLUMNFLAGS_ISCOLLECTION
= 0x040000
875 enum DBCOLUMNFLAGSENUM26
{
876 DBCOLUMNFLAGS_ISSTREAM
= 0x080000,
877 DBCOLUMNFLAGS_ISROWSET
= 0x100000,
878 DBCOLUMNFLAGS_ISROW
= 0x200000,
879 DBCOLUMNFLAGS_ROWSPECIFICCOLUMN
= 0x400000
883 enum DBCOLUMNFLAGSDEPRECATED
{
884 DBCOLUMNFLAGS_KEYCOLUMN
= 0x008000
887 typedef struct tagDBCOLUMNINFO
{
889 ITypeInfo
*pTypeInfo
;
891 DBCOLUMNFLAGS dwFlags
;
892 DBLENGTH ulColumnSize
;
899 typedef DWORD DBPARAMFLAGS
;
901 enum DBPARAMFLAGSENUM
{
902 DBPARAMFLAGS_ISINPUT
= 0x001,
903 DBPARAMFLAGS_ISOUTPUT
= 0x002,
904 DBPARAMFLAGS_ISSIGNED
= 0x010,
905 DBPARAMFLAGS_ISNULLABLE
= 0x040,
906 DBPARAMFLAGS_ISLONG
= 0x080
909 enum DBPARAMFLAGSENUM20
{
910 DBPARAMFLAGS_SCALEISNEGATIVE
= 0x100
913 typedef struct tagDBPARAMINFO
{
914 DBPARAMFLAGS dwFlags
;
917 ITypeInfo
*pTypeInfo
;
918 DBLENGTH ulParamSize
;