riched20: Use cell ptrs in the rtf parsing code.
[wine/zf.git] / include / dbs.idl
blob65fd5b1d365eb2218b2be32117a3d1038c2ab09a
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 typedef struct tagDBPROP {
83 DBPROPID dwPropertyID;
84 DBPROPOPTIONS dwOptions;
85 DBPROPSTATUS dwStatus;
86 DBID colid;
87 VARIANT vValue;
88 } DBPROP;
90 typedef struct tagDBPROPSET {
91 [size_is(cProperties)] DBPROP *rgProperties;
92 ULONG cProperties;
93 GUID guidPropertySet;
94 } DBPROPSET;
96 typedef DWORD DBPROPFLAGS;
98 enum DBPROPFLAGSENUM
100 DBPROPFLAGS_NOTSUPPORTED = 0x0000,
101 DBPROPFLAGS_COLUMN = 0x0001,
102 DBPROPFLAGS_DATASOURCE = 0x0002,
103 DBPROPFLAGS_DATASOURCECREATE = 0x0004,
104 DBPROPFLAGS_DATASOURCEINFO = 0x0008,
105 DBPROPFLAGS_DBINIT = 0x0010,
106 DBPROPFLAGS_INDEX = 0x0020,
107 DBPROPFLAGS_ROWSET = 0x0040,
108 DBPROPFLAGS_TABLE = 0x0080,
109 DBPROPFLAGS_COLUMNOK = 0x0100,
110 DBPROPFLAGS_READ = 0x0200,
111 DBPROPFLAGS_WRITE = 0x0400,
112 DBPROPFLAGS_REQUIRED = 0x0800,
113 DBPROPFLAGS_SESSION = 0x1000,
116 typedef struct tagDBPROPINFO {
117 LPOLESTR pwszDescription;
118 DBPROPID dwPropertyID;
119 DBPROPFLAGS dwFlags;
120 VARTYPE vtType;
121 VARIANT vValues;
122 } DBPROPINFO;
124 typedef DBPROPINFO *PDBPROPINFO;
126 typedef struct tagDBPROPINFOSET {
127 [size_is(cPropertyInfos)] PDBPROPINFO rgPropertyInfos;
128 ULONG cPropertyInfos;
129 GUID guidPropertySet;
130 } DBPROPINFOSET;
132 typedef DWORD DBBINDURLFLAG;
133 typedef DWORD DBBINDURLSTATUS;
135 typedef struct tagDBIMPLICITSESSION
137 IUnknown *pUnkOuter;
138 IID *piid;
139 IUnknown *pSession;
140 } DBIMPLICITSESSION;
142 typedef WORD DBTYPE;
144 enum DBTYPEENUM
146 DBTYPE_EMPTY = 0,
147 DBTYPE_NULL = 1,
148 DBTYPE_I2 = 2,
149 DBTYPE_I4 = 3,
150 DBTYPE_R4 = 4,
151 DBTYPE_R8 = 5,
152 DBTYPE_CY = 6,
153 DBTYPE_DATE = 7,
154 DBTYPE_BSTR = 8,
155 DBTYPE_IDISPATCH = 9,
156 DBTYPE_ERROR = 10,
157 DBTYPE_BOOL = 11,
158 DBTYPE_VARIANT = 12,
159 DBTYPE_IUNKNOWN = 13,
160 DBTYPE_DECIMAL = 14,
161 DBTYPE_I1 = 16,
162 DBTYPE_UI1 = 17,
163 DBTYPE_UI2 = 18,
164 DBTYPE_UI4 = 19,
165 DBTYPE_I8 = 20,
166 DBTYPE_UI8 = 21,
167 DBTYPE_GUID = 72,
168 DBTYPE_BYTES = 128,
169 DBTYPE_STR = 129,
170 DBTYPE_WSTR = 130,
171 DBTYPE_NUMERIC = 131,
172 DBTYPE_UDT = 132,
173 DBTYPE_DBDATE = 133,
174 DBTYPE_DBTIME = 134,
175 DBTYPE_DBTIMESTAMP = 135,
177 DBTYPE_VECTOR = 0x1000,
178 DBTYPE_ARRAY = 0x2000,
179 DBTYPE_BYREF = 0x4000,
180 DBTYPE_RESERVED = 0x8000
183 enum DBTYPEENUM15
185 DBTYPE_HCHAPTER = 136
188 enum DBTYPEENUM20
190 DBTYPE_FILETIME = 64,
191 DBTYPE_PROPVARIANT = 138,
192 DBTYPE_VARNUMERIC = 139
195 typedef DWORD DBSTATUS;
197 enum DBSTATUSENUM
199 DBSTATUS_S_OK = 0,
200 DBSTATUS_E_BADACCESSOR = 1,
201 DBSTATUS_E_CANTCONVERTVALUE = 2,
202 DBSTATUS_S_ISNULL = 3,
203 DBSTATUS_S_TRUNCATED = 4,
204 DBSTATUS_E_SIGNMISMATCH = 5,
205 DBSTATUS_E_DATAOVERFLOW = 6,
206 DBSTATUS_E_CANTCREATE = 7,
207 DBSTATUS_E_UNAVAILABLE = 8,
208 DBSTATUS_E_PERMISSIONDENIED = 9,
209 DBSTATUS_E_INTEGRITYVIOLATION = 10,
210 DBSTATUS_E_SCHEMAVIOLATION = 11,
211 DBSTATUS_E_BADSTATUS = 12,
212 DBSTATUS_S_DEFAULT = 13
215 enum DBPROPENUM
217 DBPROP_ABORTPRESERVE = 0x00000002,
218 DBPROP_ACTIVESESSIONS = 0x00000003,
219 DBPROP_ASYNCTXNCOMMIT = 0x00000004,
220 DBPROP_AUTH_CACHE_AUTHINFO = 0x00000005,
221 DBPROP_AUTH_ENCRYPT_PASSWORD = 0x00000006,
222 DBPROP_AUTH_INTEGRATED = 0x00000007,
223 DBPROP_AUTH_MASK_PASSWORD = 0x00000008,
224 DBPROP_AUTH_PASSWORD = 0x00000009,
225 DBPROP_AUTH_PERSIST_ENCRYPTED = 0x0000000a,
226 DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO = 0x0000000b,
227 DBPROP_AUTH_USERID = 0x0000000c,
228 DBPROP_BLOCKINGSTORAGEOBJECTS = 0x0000000d,
229 DBPROP_BOOKMARKS = 0x0000000e,
230 DBPROP_BOOKMARKSKIPPED = 0x0000000f,
231 DBPROP_BOOKMARKTYPE = 0x00000010,
232 DBPROP_CACHEDEFERRED = 0x00000011,
233 DBPROP_CANFETCHBACKWARDS = 0x00000012,
234 DBPROP_CANHOLDROWS = 0x00000013,
235 DBPROP_CANSCROLLBACKWARDS = 0x00000015,
236 DBPROP_CATALOGLOCATION = 0x00000016,
237 DBPROP_CATALOGTERM = 0x00000017,
238 DBPROP_CATALOGUSAGE = 0x00000018,
239 DBPROP_COL_AUTOINCREMENT = 0x0000001a,
240 DBPROP_COL_DEFAULT = 0x0000001b,
241 DBPROP_COL_DESCRIPTION = 0x0000001c,
242 DBPROP_COL_NULLABLE = 0x0000001d,
243 DBPROP_COL_PRIMARYKEY = 0x0000001e,
244 DBPROP_COL_UNIQUE = 0x0000001f,
245 DBPROP_COLUMNDEFINITION = 0x00000020,
246 DBPROP_COLUMNRESTRICT = 0x00000021,
247 DBPROP_COMMANDTIMEOUT = 0x00000022,
248 DBPROP_COMMITPRESERVE = 0x00000023,
249 DBPROP_CONCATNULLBEHAVIOR = 0x00000024,
250 DBPROP_CURRENTCATALOG = 0x00000025,
251 DBPROP_DATASOURCENAME = 0x00000026,
252 DBPROP_DATASOURCEREADONLY = 0x00000027,
253 DBPROP_DBMSNAME = 0x00000028,
254 DBPROP_DBMSVER = 0x00000029,
255 DBPROP_DEFERRED = 0x0000002a,
256 DBPROP_DELAYSTORAGEOBJECTS = 0x0000002b,
257 DBPROP_GROUPBY = 0x0000002c,
258 DBPROP_HETEROGENEOUSTABLES = 0x0000002d,
259 DBPROP_IDENTIFIERCASE = 0x0000002e,
260 DBPROP_IMMOBILEROWS = 0x0000002f,
261 DBPROP_INDEX_AUTOUPDATE = 0x00000030,
262 DBPROP_INDEX_CLUSTERED = 0x00000031,
263 DBPROP_INDEX_FILLFACTOR = 0x00000032,
264 DBPROP_INDEX_INITIALSIZE = 0x00000033,
265 DBPROP_INDEX_NULLCOLLATION = 0x00000034,
266 DBPROP_INDEX_NULLS = 0x00000035,
267 DBPROP_INDEX_PRIMARYKEY = 0x00000036,
268 DBPROP_INDEX_SORTBOOKMARKS = 0x00000037,
269 DBPROP_INDEX_TYPE = 0x00000038,
270 DBPROP_INDEX_UNIQUE = 0x00000039,
271 DBPROP_INIT_DATASOURCE = 0x0000003b,
272 DBPROP_INIT_HWND = 0x0000003c,
273 DBPROP_INIT_IMPERSONATION_LEVEL = 0x0000003d,
274 DBPROP_INIT_LOCATION = 0x0000003e,
275 DBPROP_INIT_MODE = 0x0000003f,
276 DBPROP_INIT_PROMPT = 0x00000040,
277 DBPROP_INIT_PROTECTION_LEVEL = 0x00000041,
278 DBPROP_INIT_TIMEOUT = 0x00000042,
279 DBPROP_LITERALBOOKMARKS = 0x00000043,
280 DBPROP_LITERALIDENTITY = 0x00000044,
281 DBPROP_MAXINDEXSIZE = 0x00000046,
282 DBPROP_MAXOPENROWS = 0x00000047,
283 DBPROP_MAXPENDINGROWS = 0x00000048,
284 DBPROP_MAXROWS = 0x00000049,
285 DBPROP_MAXROWSIZE = 0x0000004a,
286 DBPROP_MAXROWSIZEINCLUDESBLOB = 0x0000004b,
287 DBPROP_MAXTABLESINSELECT = 0x0000004c,
288 DBPROP_MAYWRITECOLUMN = 0x0000004d,
289 DBPROP_MEMORYUSAGE = 0x0000004e,
290 DBPROP_MULTIPLESTORAGEOBJECTS = 0x00000050,
291 DBPROP_MULTITABLEUPDATE = 0x00000051,
292 DBPROP_NOTIFICATIONPHASES = 0x00000052,
293 DBPROP_NULLCOLLATION = 0x00000053,
294 DBPROP_OLEOBJECTS = 0x00000054,
295 DBPROP_ORDERBYCOLUMNSINSELECT = 0x00000055,
296 DBPROP_ORDEREDBOOKMARKS = 0x00000056,
297 DBPROP_OTHERINSERT = 0x00000057,
298 DBPROP_OTHERUPDATEDELETE = 0x00000058,
299 DBPROP_OWNINSERT = 0x00000059,
300 DBPROP_OWNUPDATEDELETE = 0x0000005a,
301 DBPROP_PREPAREABORTBEHAVIOR = 0x0000005b,
302 DBPROP_PREPARECOMMITBEHAVIOR = 0x0000005c,
303 DBPROP_PROCEDURETERM = 0x0000005d,
304 DBPROP_PROVIDERNAME = 0x00000060,
305 DBPROP_PROVIDEROLEDBVER = 0x00000061,
306 DBPROP_PROVIDERVER = 0x00000062,
307 DBPROP_QUICKRESTART = 0x00000063,
308 DBPROP_QUOTEDIDENTIFIERCASE = 0x00000064,
309 DBPROP_REENTRANTEVENTS = 0x00000065,
310 DBPROP_REMOVEDELETED = 0x00000066,
311 DBPROP_REPORTMULTIPLECHANGES = 0x00000067,
312 DBPROP_ROWRESTRICT = 0x00000068,
313 DBPROP_ROWTHREADMODEL = 0x00000069,
314 DBPROP_SCHEMATERM = 0x0000006a,
315 DBPROP_SCHEMAUSAGE = 0x0000006b,
316 DBPROP_SERVERCURSOR = 0x0000006c,
317 DBPROP_SQLSUPPORT = 0x0000006d,
318 DBPROP_STRUCTUREDSTORAGE = 0x0000006f,
319 DBPROP_SUBQUERIES = 0x00000070,
320 DBPROP_SUPPORTEDTXNISOLEVELS = 0x00000071,
321 DBPROP_SUPPORTEDTXNISORETAIN = 0x00000072,
322 DBPROP_TABLETERM = 0x00000073,
323 DBPROP_TRANSACTEDOBJECT = 0x00000074,
324 DBPROP_UPDATABILITY = 0x00000075,
325 DBPROP_USERNAME = 0x00000076,
326 DBPROP_STRONGIDENTITY = 0x00000077,
327 DBPROP_BYREFACCESSORS = 0x00000078,
328 DBPROP_IAccessor = 0x00000079,
329 DBPROP_IColumnsInfo = 0x0000007a,
330 DBPROP_IColumnsRowset = 0x0000007b,
331 DBPROP_IConnectionPointContainer = 0x0000007c,
332 DBPROP_IRowset = 0x0000007e,
333 DBPROP_IRowsetChange = 0x0000007f,
334 DBPROP_IRowsetIdentity = 0x00000080,
335 DBPROP_IRowsetInfo = 0x00000081,
336 DBPROP_IRowsetLocate = 0x00000082,
337 DBPROP_IRowsetResynch = 0x00000084,
338 DBPROP_IRowsetScroll = 0x00000085,
339 DBPROP_IRowsetUpdate = 0x00000086,
340 DBPROP_ISupportErrorInfo = 0x00000087,
341 DBPROP_ILockBytes = 0x00000088,
342 DBPROP_ISequentialStream = 0x00000089,
343 DBPROP_IStorage = 0x0000008a,
344 DBPROP_IStream = 0x0000008b,
345 DBPROP_TBL_TEMPTABLE = 0x0000008c,
346 DBPROP_IRowsetIndex = 0x0000009f,
347 DBPROP_INIT_PROVIDERSTRING = 0x000000a0,
348 DBPROP_SUPPORTEDTXNDDL = 0x000000a1,
349 DBPROP_INDEX_TEMPINDEX = 0x000000a3,
350 DBPROP_COL_FIXEDLENGTH = 0x000000a7,
351 DBPROP_ASYNCTXNABORT = 0x000000a8,
352 DBPROP_DSOTHREADMODEL = 0x000000a9,
353 DBPROP_NOTIFYCOLUMNSET = 0x000000ab,
354 DBPROP_NOTIFYROWDELETE = 0x000000ad,
355 DBPROP_NOTIFYROWFIRSTCHANGE = 0x000000ae,
356 DBPROP_NOTIFYROWINSERT = 0x000000af,
357 DBPROP_NOTIFYROWRESYNCH = 0x000000b1,
358 DBPROP_NOTIFYROWSETRELEASE = 0x000000b2,
359 DBPROP_NOTIFYROWSETFETCHPOSITIONCHANGE = 0x000000b3,
360 DBPROP_NOTIFYROWUNDOCHANGE = 0x000000b4,
361 DBPROP_NOTIFYROWUNDODELETE = 0x000000b5,
362 DBPROP_NOTIFYROWUNDOINSERT = 0x000000b6,
363 DBPROP_NOTIFYROWUPDATE = 0x000000b7,
364 DBPROP_OUTPUTPARAMETERAVAILABILITY = 0x000000b8,
365 DBPROP_PERSISTENTIDTYPE = 0x000000b9,
366 DBPROP_INIT_LCID = 0x000000ba,
367 DBPROP_APPENDONLY = 0x000000bb,
368 DBPROP_CHANGEINSERTEDROWS = 0x000000bc,
369 DBPROP_RETURNPENDINGINSERTS = 0x000000bd,
370 DBPROP_SESS_AUTOCOMMITISOLEVELS = 0x000000be,
371 DBPROP_MULTIPLEPARAMSETS = 0x000000bf,
372 DBPROP_ROWSETCONVERSIONSONCOMMAND = 0x000000c0,
373 DBPROP_IConvertType = 0x000000c2,
374 DBPROP_MULTIPLERESULTS = 0x000000c4,
375 DBPROP_NOTIFICATIONGRANULARITY = 0x000000c6,
376 DBPROP_NOTIFYROWSETCHANGED = 0x000000d3,
379 enum DBPROPENUM15 {
380 DBPROP_FILTERCOMPAREOPS = 0x000000d1,
381 DBPROP_FINDCOMPAREOPS = 0x000000d2,
382 DBPROP_IChapteredRowset = 0x000000ca,
383 DBPROP_IDBAsynchStatus = 0x000000cb,
384 DBPROP_IRowsetFind = 0x000000cc,
385 DBPROP_IRowsetView = 0x000000d4,
386 DBPROP_IViewChapter = 0x000000d5,
387 DBPROP_IViewFilter = 0x000000d6,
388 DBPROP_IViewRowset = 0x000000d7,
389 DBPROP_IViewSort = 0x000000d8,
390 DBPROP_INIT_ASYNCH = 0x000000c8,
391 DBPROP_MAXOPENCHAPTERS = 0x000000c7,
392 DBPROP_MAXORSINFILTER = 0x000000cd,
393 DBPROP_MAXSORTCOLUMNS = 0x000000ce,
394 DBPROP_ROWSET_ASYNCH = 0x000000c9,
395 DBPROP_SORTONINDEX = 0x000000cf
398 enum DBPROPENUM20 {
399 DBPROP_IMultipleResults = 0x000000d9,
400 DBPROP_DATASOURCE_TYPE = 0x000000fb,
401 MDPROP_AXES = 0x000000fc,
402 MDPROP_FLATTENING_SUPPORT = 0x000000fd,
403 MDPROP_MDX_JOINCUBES = 0x000000fe,
404 MDPROP_NAMED_LEVELS = 0x000000ff,
405 MDPROP_RANGEROWSET = 0x00000100,
406 MDPROP_MDX_SLICER = 0x000000da,
407 MDPROP_MDX_CUBEQUALIFICATION = 0x000000db,
408 MDPROP_MDX_OUTERREFERENCE = 0x000000dc,
409 MDPROP_MDX_QUERYBYPROPERTY = 0x000000dd,
410 MDPROP_MDX_CASESUPPORT = 0x000000de,
411 MDPROP_MDX_STRING_COMPOP = 0x000000e0,
412 MDPROP_MDX_DESCFLAGS = 0x000000e1,
413 MDPROP_MDX_SET_FUNCTIONS = 0x000000e2,
414 MDPROP_MDX_MEMBER_FUNCTIONS = 0x000000e3,
415 MDPROP_MDX_NUMERIC_FUNCTIONS = 0x000000e4,
416 MDPROP_MDX_FORMULAS = 0x000000e5,
417 MDPROP_AGGREGATECELL_UPDATE = 0x000000e6,
418 MDPROP_MDX_AGGREGATECELL_UPDATE = MDPROP_AGGREGATECELL_UPDATE,
419 MDPROP_MDX_OBJQUALIFICATION = 0x00000105,
420 MDPROP_MDX_NONMEASURE_EXPRESSIONS = 0x00000106,
421 DBPROP_ACCESSORDER = 0x000000e7,
422 DBPROP_BOOKMARKINFO = 0x000000e8,
423 DBPROP_INIT_CATALOG = 0x000000e9,
424 DBPROP_ROW_BULKOPS = 0x000000ea,
425 DBPROP_PROVIDERFRIENDLYNAME = 0x000000eb,
426 DBPROP_LOCKMODE = 0x000000ec,
427 DBPROP_MULTIPLECONNECTIONS = 0x000000ed,
428 DBPROP_UNIQUEROWS = 0x000000ee,
429 DBPROP_SERVERDATAONINSERT = 0x000000ef,
430 DBPROP_STORAGEFLAGS = 0x000000f0,
431 DBPROP_CONNECTIONSTATUS = 0x000000f4,
432 DBPROP_ALTERCOLUMN = 0x000000f5,
433 DBPROP_COLUMNLCID = 0x000000f6,
434 DBPROP_RESETDATASOURCE = 0x000000f7,
435 DBPROP_INIT_OLEDBSERVICES = 0x000000f8,
436 DBPROP_IRowsetRefresh = 0x000000f9,
437 DBPROP_SERVERNAME = 0x000000fa,
438 DBPROP_IParentRowset = 0x00000101,
439 DBPROP_HIDDENCOLUMNS = 0x00000102,
440 DBPROP_PROVIDERMEMORY = 0x00000103,
441 DBPROP_CLIENTCURSOR = 0x00000104
445 enum DBPROPENUM21 {
446 DBPROP_TRUSTEE_USERNAME = 0x000000f1,
447 DBPROP_TRUSTEE_AUTHENTICATION = 0x000000f2,
448 DBPROP_TRUSTEE_NEWAUTHENTICATION = 0x000000f3,
449 DBPROP_IRow = 0x00000107,
450 DBPROP_IRowChange = 0x00000108,
451 DBPROP_IRowSchemaChange = 0x00000109,
452 DBPROP_IGetRow = 0x0000010a,
453 DBPROP_IScopedOperations = 0x0000010b,
454 DBPROP_IBindResource = 0x0000010c,
455 DBPROP_ICreateRow = 0x0000010d,
456 DBPROP_INIT_BINDFLAGS = 0x0000010e,
457 DBPROP_INIT_LOCKOWNER = 0x0000010f,
458 DBPROP_GENERATEURL = 0x00000111,
459 DBPROP_IDBBinderProperties = 0x00000112,
460 DBPROP_IColumnsInfo2 = 0x00000113,
461 DBPROP_IRegisterProvider = 0x00000114,
462 DBPROP_IGetSession = 0x00000115,
463 DBPROP_IGetSourceRow = 0x00000116,
464 DBPROP_IRowsetCurrentIndex = 0x00000117,
465 DBPROP_OPENROWSETSUPPORT = 0x00000118,
466 DBPROP_COL_ISLONG = 0x00000119
469 enum DBPROPENUM25 {
470 DBPROP_COL_SEED = 0x0000011a,
471 DBPROP_COL_INCREMENT = 0x0000011b,
472 DBPROP_INIT_GENERALTIMEOUT = 0x0000011c,
473 DBPROP_COMSERVICES = 0x0000011d
476 enum DBPROPENUM26 {
477 DBPROP_OUTPUTSTREAM = 0x0000011e,
478 DBPROP_OUTPUTENCODING = 0x0000011f,
479 DBPROP_TABLESTATISTICS = 0x00000120,
480 DBPROP_SKIPROWCOUNTRESULTS = 0x00000123,
481 DBPROP_IRowsetBookmark = 0x00000124,
482 MDPROP_VISUALMODE = 0x00000125,
485 cpp_quote("#ifdef DBINITCONSTANTS")
486 cpp_quote("#ifdef __cplusplus")
487 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
488 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN; \\")
489 cpp_quote(" EXTERN_C const GUID name = \\")
490 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
491 cpp_quote("#else")
492 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
493 cpp_quote(" const GUID name DECLSPEC_HIDDEN; \\")
494 cpp_quote(" const GUID name = \\")
495 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
496 cpp_quote("#endif")
497 cpp_quote("#else")
498 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
499 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN")
500 cpp_quote("#endif")
502 cpp_quote("DEFINE_DBGUID(DB_NULLGUID, 0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);")
503 cpp_quote("DEFINE_DBGUID(DBGUID_SESSION, 0xc8b522f5, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
504 cpp_quote("DEFINE_DBGUID(DBGUID_ROWSET, 0xc8b522f6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
505 cpp_quote("DEFINE_DBGUID(DBGUID_ROW, 0xc8b522f7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
506 cpp_quote("DEFINE_DBGUID(DBGUID_STREAM, 0xc8b522f9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
508 cpp_quote("DEFINE_DBGUID(DBPROPSET_COLUMN, 0xc8b522b9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
509 cpp_quote("DEFINE_DBGUID(DBPROPSET_DATASOURCE, 0xc8b522ba, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
510 cpp_quote("DEFINE_DBGUID(DBPROPSET_DATASOURCEINFO, 0xc8b522bb, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
511 cpp_quote("DEFINE_DBGUID(DBPROPSET_DBINIT, 0xc8b522bc, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
512 cpp_quote("DEFINE_DBGUID(DBPROPSET_INDEX, 0xc8b522bd, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
513 cpp_quote("DEFINE_DBGUID(DBPROPSET_ROWSET, 0xc8b522be, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
514 cpp_quote("DEFINE_DBGUID(DBPROPSET_TABLE, 0xc8b522bf, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
515 cpp_quote("DEFINE_DBGUID(DBPROPSET_DATASOURCEALL, 0xc8b522c0, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
516 cpp_quote("DEFINE_DBGUID(DBPROPSET_DATASOURCEINFOALL, 0xc8b522c1, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
517 cpp_quote("DEFINE_DBGUID(DBPROPSET_ROWSETALL, 0xc8b522c2, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
518 cpp_quote("DEFINE_DBGUID(DBPROPSET_SESSION, 0xc8b522c6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
519 cpp_quote("DEFINE_DBGUID(DBPROPSET_SESSIONALL, 0xc8b522c7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
520 cpp_quote("DEFINE_DBGUID(DBPROPSET_DBINITALL, 0xc8b522ca, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
521 cpp_quote("DEFINE_DBGUID(DBPROPSET_PROPERTIESINERROR, 0xc8b522d4, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
523 cpp_quote("#define DBPROMPT_PROMPT 0x01")
524 cpp_quote("#define DBPROMPT_COMPLETE 0x02")
525 cpp_quote("#define DBPROMPT_COMPLETEREQUIRED 0x03")
526 cpp_quote("#define DBPROMPT_NOPROMPT 0x04")
528 cpp_quote("#define DBPROPVAL_STGM_READ OF_READ")
529 cpp_quote("#define DBPROPVAL_STGM_WRITE OF_WRITE")
530 cpp_quote("#define DBPROPVAL_STGM_READWRITE OF_READWRITE")
531 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_NONE OF_SHARE_DENY_NONE")
532 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_READ OF_SHARE_DENY_READ")
533 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_WRITE OF_SHARE_DENY_WRITE)")
534 cpp_quote("#define DBPROPVAL_STGM_SHARE_EXCLUSIVE OF_SHARE_EXCLUSIVE")
535 cpp_quote("#define DBPROPVAL_STGM_DIRECT 0x00010000")
536 cpp_quote("#define DBPROPVAL_STGM_TRANSACTED 0x00020000")
537 cpp_quote("#define DBPROPVAL_STGM_CREATE OF_CREATE")
538 cpp_quote("#define DBPROPVAL_STGM_CONVERT 0x00040000")
539 cpp_quote("#define DBPROPVAL_STGM_FAILIFTHERE 0x00080000")
540 cpp_quote("#define DBPROPVAL_STGM_PRIORITY 0x00100000")
541 cpp_quote("#define DBPROPVAL_STGM_DELETEONRELEASE 0x00200000")
542 cpp_quote("#define DBPROPVAL_GB_COLLATE __MSABI_LONG(0x00000010)")
543 cpp_quote("#define DBPROPVAL_CS_UNINITIALIZED __MSABI_LONG(0x00000000)")
544 cpp_quote("#define DBPROPVAL_CS_INITIALIZED __MSABI_LONG(0x00000001)")
545 cpp_quote("#define DBPROPVAL_CS_COMMUNICATIONFAILURE __MSABI_LONG(0x00000002)")
547 cpp_quote("#define DBPROPVAL_RD_RESETALL __MSABI_LONG(0xffffffff)")
548 cpp_quote("#define DBPROPVAL_OS_RESOURCEPOOLING __MSABI_LONG(0x00000001)")
549 cpp_quote("#define DBPROPVAL_OS_TXNENLISTMENT __MSABI_LONG(0x00000002)")
550 cpp_quote("#define DBPROPVAL_OS_CLIENTCURSOR __MSABI_LONG(0x00000004)")
551 cpp_quote("#define DBPROPVAL_OS_ENABLEALL __MSABI_LONG(0xffffffff)")
552 cpp_quote("#define DBPROPVAL_BI_CROSSROWSET __MSABI_LONG(0x00000001)")
554 cpp_quote("#define DB_MODE_READ 0x01")
555 cpp_quote("#define DB_MODE_WRITE 0x02")
556 cpp_quote("#define DB_MODE_READWRITE 0x03")
557 cpp_quote("#define DB_MODE_SHARE_DENY_READ 0x04")
558 cpp_quote("#define DB_MODE_SHARE_DENY_WRITE 0x08")
559 cpp_quote("#define DB_MODE_SHARE_EXCLUSIVE 0x0c")
560 cpp_quote("#define DB_MODE_SHARE_DENY_NONE 0x10")
562 typedef struct tagDBCOLUMNACCESS
564 void *pData;
565 DBID columnid;
566 DBLENGTH cbDataLen;
567 DBSTATUS dwStatus;
568 DBLENGTH cbMaxLen;
569 DB_DWRESERVE dwReserved;
570 DBTYPE wType;
571 BYTE bPrecision;
572 BYTE bScale;
573 } DBCOLUMNACCESS;
575 typedef DWORD DBROWSTATUS;
577 enum DBROWSTATUSENUM
579 DBROWSTATUS_S_OK,
580 DBROWSTATUS_S_LOCKUPGRADED,
581 DBROWSTATUS_S_MULTIPLECHANGES,
582 DBROWSTATUS_S_PENDINGCHANGES,
583 DBROWSTATUS_E_CANCELED,
584 DBROWSTATUS_E_CANTLOCKROW,
585 DBROWSTATUS_E_CANTRELEASE,
586 DBROWSTATUS_E_CONCURRENCYVIOLATION,
587 DBROWSTATUS_E_DELETED,
588 DBROWSTATUS_E_PENDINGINSERT,
589 DBROWSTATUS_E_NEWLYINSERTED,
590 DBROWSTATUS_E_INTEGRITYVIOLATION,
591 DBROWSTATUS_E_INVALID,
592 DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED,
593 DBROWSTATUS_E_OBJECTOPEN,
594 DBROWSTATUS_E_OUTOFMEMORY,
595 DBROWSTATUS_E_PERMISSIONDENIED,
596 DBROWSTATUS_E_LIMITREACHED,
597 DBROWSTATUS_E_SCHEMAVIOLATION,
598 DBROWSTATUS_E_FAIL,
602 typedef DWORD DBPART;
604 enum DBPARTENUM
606 DBPART_INVALID = 0,
607 DBPART_VALUE = 1,
608 DBPART_LENGTH = 2,
609 DBPART_STATUS = 4,
612 typedef DWORD DBPARAMIO;
614 enum DBPARAMIOENUM
616 DBPARAMIO_NOTPARAM = 0,
617 DBPARAMIO_INPUT = 1,
618 DBPARAMIO_OUTPUT = 2,
621 typedef DWORD DBMEMOWNER;
623 enum DBMEMOWNERENUM
625 DBMEMOWNER_CLIENTOWNED = 0,
626 DBMEMOWNER_PROVIDEROWNED = 1,
629 typedef struct tagDBOBJECT
631 DWORD dwFlags;
632 IID iid;
633 } DBOBJECT;
635 typedef struct tagDBBINDEXT
637 [size_is((ULONG)ulExtension)] BYTE *pExtension;
638 DBCOUNTITEM ulExtension;
639 } DBBINDEXT;
641 typedef struct tagDBBINDING
643 DBORDINAL iOrdinal;
644 DBBYTEOFFSET obValue;
645 DBBYTEOFFSET obLength;
646 DBBYTEOFFSET obStatus;
647 ITypeInfo *pTypeInfo;
648 DBOBJECT *pObject;
649 DBBINDEXT *pBindExt;
650 DBPART dwPart;
651 DBMEMOWNER dwMemOwner;
652 DBPARAMIO eParamIO;
653 DBLENGTH cbMaxLen;
654 DWORD dwFlags;
655 DBTYPE wType;
656 BYTE bPrecision;
657 BYTE bScale;
658 } DBBINDING;
660 typedef ULONG_PTR HACCESSOR;
662 cpp_quote("#define DB_INVALID_HACCESSOR 0x00")
664 typedef ULONG_PTR HROW;
666 cpp_quote("#define DB_NULL_HROW 0x00")
668 typedef ULONG_PTR HWATCHREGION;
670 cpp_quote("#define DBWATCHREGION_NULL NULL")
672 typedef ULONG_PTR HCHAPTER;
674 cpp_quote("#define DB_NULL_HCHAPTER 0x00")
676 typedef struct tagDBPARAMS
678 void *pData;
679 DB_UPARAMS cParamSets;
680 HACCESSOR hAccessor;
681 } DBPARAMS;
683 typedef DWORD DBASYNCHOP;
685 enum DBASYNCHOPENUM
687 DBSYNCHOP_OPEN,
690 typedef DWORD DBASYNCHPHASE;
692 enum DBASYNCHPHASEENUM
694 DBASYNCHPHASE_INITIALIZATION,
695 DBASYNCHPHASE_POPULATION,
696 DBASYNCHPHASE_COMPLETE,
697 DBASYNCHPHASE_CANCELED,
700 typedef struct tagRMTPACK
702 ISequentialStream *pISeqStream;
703 ULONG cbData;
704 ULONG cBSTR;
705 [size_is(cBSTR)] BSTR *rgBSTR;
706 ULONG cVARIANT;
707 [size_is(cVARIANT)] VARIANT *rgVARIANT;
708 ULONG cIDISPATCH;
709 [size_is(cIDISPATCH)] IDispatch **rgIDISPATCH;
710 ULONG cIUNKNOWN;
711 [size_is(cIUNKNOWN)] IUnknown **rgIUNKNOWN;
712 ULONG cPROPVARIANT;
713 [size_is(cPROPVARIANT)] PROPVARIANT *rgPROPVARIANT;
714 ULONG cArray;
715 [size_is(cArray)] VARIANT *rgArray;
716 } RMTPACK;
718 typedef struct tagDBDATE {
719 SHORT year;
720 USHORT month;
721 USHORT day;
722 } DBDATE;
724 typedef struct tagDBTIME {
725 USHORT hour;
726 USHORT minute;
727 USHORT second;
728 } DBTIME;
730 typedef struct tagDBTIMESTAMP {
731 SHORT year;
732 USHORT month;
733 USHORT day;
734 USHORT hour;
735 USHORT minute;
736 USHORT second;
737 ULONG fraction;
738 } DBTIMESTAMP;
740 typedef DWORD DBREASON;
741 typedef DWORD DBEVENTPHASE;
743 enum DBEVENTPHASEENUM {
744 DBEVENTPHASE_OKTODO,
745 DBEVENTPHASE_ABOUTTODO,
746 DBEVENTPHASE_SYNCHAFTER,
747 DBEVENTPHASE_FAILEDTODO,
748 DBEVENTPHASE_DIDEVENT
751 enum DBREASONENUM {
752 DBREASON_ROWSET_FETCHPOSITIONCHANGE,
753 DBREASON_ROWSET_RELEASE,
754 DBREASON_COLUMN_SET,
755 DBREASON_COLUMN_RECALCULATED,
756 DBREASON_ROW_ACTIVATE,
757 DBREASON_ROW_RELEASE,
758 DBREASON_ROW_DELETE,
759 DBREASON_ROW_FIRSTCHANCE,
760 DBREASON_ROW_INSERT,
761 DBREASON_ROW_RESYNCH,
762 DBREASON_ROW_UNDOCHANGE,
763 DBREASON_ROW_UNDOINSERT,
764 DBREASON_ROW_UNDODELETE,
765 DBREASON_ROW_UPDATE,
766 DBREASON_ROWSET_CHANGED
769 enum DBREASONENUM15 {
770 DBREASON_ROWPOSITION_CHANGED = DBREASON_ROWSET_CHANGED + 1,
771 DBREASON_ROWPOSITION_CHAPTERCHANGED,
772 DBREASON_ROWPOSITION_CLEARED,
773 DBREASON_ROW_ASYNCHINSERT
776 typedef DWORD DBCOLUMNFLAGS;
778 enum DBCOLUMNFLAGSENUM {
779 DBCOLUMNFLAGS_ISBOOKMARK = 0x0001,
780 DBCOLUMNFLAGS_MAYDEFER = 0x0002,
781 DBCOLUMNFLAGS_WRITE = 0x0004,
782 DBCOLUMNFLAGS_WRITEUNKNOWN = 0x0008,
783 DBCOLUMNFLAGS_ISFIXEDLENGTH = 0x0010,
784 DBCOLUMNFLAGS_ISNULLABLE = 0x0020,
785 DBCOLUMNFLAGS_MAYBENULL = 0x0040,
786 DBCOLUMNFLAGS_ISLONG = 0x0080,
787 DBCOLUMNFLAGS_ISROWID = 0x0100,
788 DBCOLUMNFLAGS_ISROWVER = 0x0200,
789 DBCOLUMNFLAGS_CACHEDEFERRED = 0x1000
792 typedef struct tagDBCOLUMNINFO {
793 LPOLESTR pwszName;
794 ITypeInfo *pTypeInfo;
795 DBORDINAL iOrdinal;
796 DBCOLUMNFLAGS dwFlags;
797 DBLENGTH ulColumnSize;
798 DBTYPE wType;
799 BYTE bPrecision;
800 BYTE bScale;
801 DBID columnid;
802 } DBCOLUMNINFO;