vbscript: Add Array implementation.
[wine.git] / include / dbs.idl
blob53cadedf65283a508d51265ac274ff15c2cfc9f6
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 typedef struct tagDBPROPINFO {
99 LPOLESTR pwszDescription;
100 DBPROPID dwPropertyID;
101 DBPROPFLAGS dwFlags;
102 VARTYPE vtType;
103 VARIANT vValues;
104 } DBPROPINFO;
106 typedef DBPROPINFO *PDBPROPINFO;
108 typedef struct tagDBPROPINFOSET {
109 [size_is(cPropertyInfos)] PDBPROPINFO rgPropertyInfos;
110 ULONG cPropertyInfos;
111 GUID guidPropertySet;
112 } DBPROPINFOSET;
114 typedef DWORD DBBINDURLFLAG;
115 typedef DWORD DBBINDURLSTATUS;
117 typedef struct tagDBIMPLICITSESSION
119 IUnknown *pUnkOuter;
120 IID *piid;
121 IUnknown *pSession;
122 } DBIMPLICITSESSION;
124 typedef WORD DBTYPE;
126 enum DBTYPEENUM
128 DBTYPE_EMPTY = 0,
129 DBTYPE_NULL = 1,
130 DBTYPE_I2 = 2,
131 DBTYPE_I4 = 3,
132 DBTYPE_R4 = 4,
133 DBTYPE_R8 = 5,
134 DBTYPE_CY = 6,
135 DBTYPE_DATE = 7,
136 DBTYPE_BSTR = 8,
137 DBTYPE_IDISPATCH = 9,
138 DBTYPE_ERROR = 10,
139 DBTYPE_BOOL = 11,
140 DBTYPE_VARIANT = 12,
141 DBTYPE_IUNKNOWN = 13,
142 DBTYPE_DECIMAL = 14,
143 DBTYPE_I1 = 16,
144 DBTYPE_UI1 = 17,
145 DBTYPE_UI2 = 18,
146 DBTYPE_UI4 = 19,
147 DBTYPE_I8 = 20,
148 DBTYPE_UI8 = 21,
149 DBTYPE_GUID = 72,
150 DBTYPE_BYTES = 128,
151 DBTYPE_STR = 129,
152 DBTYPE_WSTR = 130,
153 DBTYPE_NUMERIC = 131,
154 DBTYPE_UDT = 132,
155 DBTYPE_DBDATE = 133,
156 DBTYPE_DBTIME = 134,
157 DBTYPE_DBTIMESTAMP = 135,
159 DBTYPE_VECTOR = 0x1000,
160 DBTYPE_ARRAY = 0x2000,
161 DBTYPE_BYREF = 0x4000,
162 DBTYPE_RESERVED = 0x8000
165 enum DBTYPEENUM15
167 DBTYPE_HCHAPTER = 136
170 enum DBTYPEENUM20
172 DBTYPE_FILETIME = 64,
173 DBTYPE_PROPVARIANT = 138,
174 DBTYPE_VARNUMERIC = 139
177 typedef DWORD DBSTATUS;
179 enum DBSTATUSENUM
181 DBSTATUS_S_OK = 0,
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
197 enum DBPROPENUM
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,
361 enum DBPROPENUM15 {
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
380 enum DBPROPENUM20 {
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
427 enum DBPROPENUM21 {
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
451 enum DBPROPENUM25 {
452 DBPROP_COL_SEED = 0x0000011a,
453 DBPROP_COL_INCREMENT = 0x0000011b,
454 DBPROP_INIT_GENERALTIMEOUT = 0x0000011c,
455 DBPROP_COMSERVICES = 0x0000011d
458 enum DBPROPENUM26 {
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 } }")
473 cpp_quote("#else")
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 } }")
478 cpp_quote("#endif")
479 cpp_quote("#else")
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")
482 cpp_quote("#endif")
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)")
522 cpp_quote("#define DB_MODE_READ 0x01")
523 cpp_quote("#define DB_MODE_WRITE 0x02")
524 cpp_quote("#define DB_MODE_READWRITE 0x03")
525 cpp_quote("#define DB_MODE_SHARE_DENY_READ 0x04")
526 cpp_quote("#define DB_MODE_SHARE_DENY_WRITE 0x08")
527 cpp_quote("#define DB_MODE_SHARE_EXCLUSIVE 0x0c")
528 cpp_quote("#define DB_MODE_SHARE_DENY_NONE 0x10")
530 typedef struct tagDBCOLUMNACCESS
532 void *pData;
533 DBID columnid;
534 DBLENGTH cbDataLen;
535 DBSTATUS dwStatus;
536 DBLENGTH cbMaxLen;
537 DB_DWRESERVE dwReserved;
538 DBTYPE wType;
539 BYTE bPrecision;
540 BYTE bScale;
541 } DBCOLUMNACCESS;
543 typedef DWORD DBROWSTATUS;
545 enum DBROWSTATUSENUM
547 DBROWSTATUS_S_OK,
548 DBROWSTATUS_S_LOCKUPGRADED,
549 DBROWSTATUS_S_MULTIPLECHANGES,
550 DBROWSTATUS_S_PENDINGCHANGES,
551 DBROWSTATUS_E_CANCELED,
552 DBROWSTATUS_E_CANTLOCKROW,
553 DBROWSTATUS_E_CANTRELEASE,
554 DBROWSTATUS_E_CONCURRENCYVIOLATION,
555 DBROWSTATUS_E_DELETED,
556 DBROWSTATUS_E_PENDINGINSERT,
557 DBROWSTATUS_E_NEWLYINSERTED,
558 DBROWSTATUS_E_INTEGRITYVIOLATION,
559 DBROWSTATUS_E_INVALID,
560 DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED,
561 DBROWSTATUS_E_OBJECTOPEN,
562 DBROWSTATUS_E_OUTOFMEMORY,
563 DBROWSTATUS_E_PERMISSIONDENIED,
564 DBROWSTATUS_E_LIMITREACHED,
565 DBROWSTATUS_E_SCHEMAVIOLATION,
566 DBROWSTATUS_E_FAIL,
570 typedef DWORD DBPART;
572 enum DBPARTENUM
574 DBPART_INVALID = 0,
575 DBPART_VALUE = 1,
576 DBPART_LENGTH = 2,
577 DBPART_STATUS = 4,
580 typedef DWORD DBPARAMIO;
582 enum DBPARAMIOENUM
584 DBPARAMIO_NOTPARAM = 0,
585 DBPARAMIO_INPUT = 1,
586 DBPARAMIO_OUTPUT = 2,
589 typedef DWORD DBMEMOWNER;
591 enum DBMEMOWNERENUM
593 DBMEMOWNER_CLIENTOWNED = 0,
594 DBMEMOWNER_PROVIDEROWNED = 1,
597 typedef struct tagDBOBJECT
599 DWORD dwFlags;
600 IID iid;
601 } DBOBJECT;
603 typedef struct tagDBBINDEXT
605 [size_is((ULONG)ulExtension)] BYTE *pExtension;
606 DBCOUNTITEM ulExtension;
607 } DBBINDEXT;
609 typedef struct tagDBBINDING
611 DBORDINAL iOrdinal;
612 DBBYTEOFFSET obValue;
613 DBBYTEOFFSET obLength;
614 DBBYTEOFFSET obStatus;
615 ITypeInfo *pTypeInfo;
616 DBOBJECT *pObject;
617 DBBINDEXT *pBindExt;
618 DBPART dwPart;
619 DBMEMOWNER dwMemOwner;
620 DBPARAMIO eParamIO;
621 DBLENGTH cbMaxLen;
622 DWORD dwFlags;
623 DBTYPE wType;
624 BYTE bPrecision;
625 BYTE bScale;
626 } DBBINDING;
628 typedef ULONG_PTR HACCESSOR;
630 cpp_quote("#define DB_INVALID_HACCESSOR 0x00")
632 typedef ULONG_PTR HROW;
634 cpp_quote("#define DB_NULL_HROW 0x00")
636 typedef ULONG_PTR HWATCHREGION;
638 cpp_quote("#define DBWATCHREGION_NULL NULL")
640 typedef ULONG_PTR HCHAPTER;
642 cpp_quote("#define DB_NULL_HCHAPTER 0x00")
644 typedef struct tagDBPARAMS
646 void *pData;
647 DB_UPARAMS cParamSets;
648 HACCESSOR hAccessor;
649 } DBPARAMS;
651 typedef DWORD DBASYNCHOP;
653 enum DBASYNCHOPENUM
655 DBSYNCHOP_OPEN,
658 typedef DWORD DBASYNCHPHASE;
660 enum DBASYNCHPHASEENUM
662 DBASYNCHPHASE_INITIALIZATION,
663 DBASYNCHPHASE_POPULATION,
664 DBASYNCHPHASE_COMPLETE,
665 DBASYNCHPHASE_CANCELED,
668 typedef struct tagRMTPACK
670 ISequentialStream *pISeqStream;
671 ULONG cbData;
672 ULONG cBSTR;
673 [size_is(cBSTR)] BSTR *rgBSTR;
674 ULONG cVARIANT;
675 [size_is(cVARIANT)] VARIANT *rgVARIANT;
676 ULONG cIDISPATCH;
677 [size_is(cIDISPATCH)] IDispatch **rgIDISPATCH;
678 ULONG cIUNKNOWN;
679 [size_is(cIUNKNOWN)] IUnknown **rgIUNKNOWN;
680 ULONG cPROPVARIANT;
681 [size_is(cPROPVARIANT)] PROPVARIANT *rgPROPVARIANT;
682 ULONG cArray;
683 [size_is(cArray)] VARIANT *rgArray;
684 } RMTPACK;
686 typedef struct tagDBDATE {
687 SHORT year;
688 USHORT month;
689 USHORT day;
690 } DBDATE;
692 typedef struct tagDBTIME {
693 USHORT hour;
694 USHORT minute;
695 USHORT second;
696 } DBTIME;
698 typedef struct tagDBTIMESTAMP {
699 SHORT year;
700 USHORT month;
701 USHORT day;
702 USHORT hour;
703 USHORT minute;
704 USHORT second;
705 ULONG fraction;
706 } DBTIMESTAMP;
708 typedef DWORD DBREASON;
709 typedef DWORD DBEVENTPHASE;
711 enum DBEVENTPHASEENUM {
712 DBEVENTPHASE_OKTODO,
713 DBEVENTPHASE_ABOUTTODO,
714 DBEVENTPHASE_SYNCHAFTER,
715 DBEVENTPHASE_FAILEDTODO,
716 DBEVENTPHASE_DIDEVENT
719 enum DBREASONENUM {
720 DBREASON_ROWSET_FETCHPOSITIONCHANGE,
721 DBREASON_ROWSET_RELEASE,
722 DBREASON_COLUMN_SET,
723 DBREASON_COLUMN_RECALCULATED,
724 DBREASON_ROW_ACTIVATE,
725 DBREASON_ROW_RELEASE,
726 DBREASON_ROW_DELETE,
727 DBREASON_ROW_FIRSTCHANCE,
728 DBREASON_ROW_INSERT,
729 DBREASON_ROW_RESYNCH,
730 DBREASON_ROW_UNDOCHANGE,
731 DBREASON_ROW_UNDOINSERT,
732 DBREASON_ROW_UNDODELETE,
733 DBREASON_ROW_UPDATE,
734 DBREASON_ROWSET_CHANGED
737 enum DBREASONENUM15 {
738 DBREASON_ROWPOSITION_CHANGED = DBREASON_ROWSET_CHANGED + 1,
739 DBREASON_ROWPOSITION_CHAPTERCHANGED,
740 DBREASON_ROWPOSITION_CLEARED,
741 DBREASON_ROW_ASYNCHINSERT
744 typedef DWORD DBCOLUMNFLAGS;
746 enum DBCOLUMNFLAGSENUM {
747 DBCOLUMNFLAGS_ISBOOKMARK = 0x0001,
748 DBCOLUMNFLAGS_MAYDEFER = 0x0002,
749 DBCOLUMNFLAGS_WRITE = 0x0004,
750 DBCOLUMNFLAGS_WRITEUNKNOWN = 0x0008,
751 DBCOLUMNFLAGS_ISFIXEDLENGTH = 0x0010,
752 DBCOLUMNFLAGS_ISNULLABLE = 0x0020,
753 DBCOLUMNFLAGS_MAYBENULL = 0x0040,
754 DBCOLUMNFLAGS_ISLONG = 0x0080,
755 DBCOLUMNFLAGS_ISROWID = 0x0100,
756 DBCOLUMNFLAGS_ISROWVER = 0x0200,
757 DBCOLUMNFLAGS_CACHEDEFERRED = 0x1000
760 typedef struct tagDBCOLUMNINFO {
761 LPOLESTR pwszName;
762 ITypeInfo *pTypeInfo;
763 DBORDINAL iOrdinal;
764 DBCOLUMNFLAGS dwFlags;
765 DBLENGTH ulColumnSize;
766 DBTYPE wType;
767 BYTE bPrecision;
768 BYTE bScale;
769 DBID columnid;
770 } DBCOLUMNINFO;