po: Update French translation.
[wine/multimedia.git] / include / dbs.idl
blob1e0ac6ca57fad2520a079d37a1e20417807a68c8
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 typedef DWORD DBKIND;
21 enum DBKINDENUM {
22 DBKIND_GUID_NAME,
23 DBKIND_GUID_PROPID,
24 DBKIND_NAME,
25 DBKIND_PGUID_NAME,
26 DBKIND_PGUID_PROPID,
27 DBKIND_PROPID,
28 DBKIND_GUID,
31 typedef struct tagDBID {
32 [switch_type(DBKIND), switch_is(eKind)] union
34 [case(DBKIND_GUID_NAME, DBKIND_GUID_PROPID, DBKIND_GUID, DBKIND_NAME, DBKIND_PROPID)]
35 GUID guid;
36 [case(DBKIND_PGUID_NAME, DBKIND_PGUID_PROPID)]
37 GUID *pguid;
38 [default]
40 } uGuid;
41 DBKIND eKind;
42 [switch_type(DBKIND), switch_is(eKind)] union
44 [case(DBKIND_GUID_NAME, DBKIND_NAME, DBKIND_PGUID_NAME)]
45 LPOLESTR pwszName;
46 [case(DBKIND_GUID_PROPID, DBKIND_GUID, DBKIND_PGUID_PROPID, DBKIND_PROPID)]
47 ULONG ulPropid;
48 [default]
50 } uName;
51 } DBID;
53 typedef struct tagDB_NUMERIC {
54 BYTE precision;
55 BYTE scale;
56 BYTE sign;
57 BYTE val[16];
58 } DB_NUMERIC;
60 typedef DWORD DBPROPID;
62 typedef struct tagDBPROPIDSET {
63 [size_is(cPropertyIDs)] DBPROPID *rgPropertyIDs;
64 ULONG cPropertyIDs;
65 GUID guidPropertySet;
66 } DBPROPIDSET;
68 typedef DWORD DBPROPOPTIONS;
70 enum DBPROPOPTIONENUM {
71 DBPROPOPTIONS_REQUIRED = 0,
72 DBPROPOPTIONS_SETIFCHEAP = 1,
73 DBPROPOPTIONS_OPTIONAL = 1,
76 typedef DWORD DBPROPSTATUS;
78 typedef struct tagDBPROP {
79 DBPROPID dwPropertyID;
80 DBPROPOPTIONS dwOptions;
81 DBPROPSTATUS dwStatus;
82 DBID colid;
83 VARIANT vValue;
84 } DBPROP;
86 typedef struct tagDBPROPSET {
87 [size_is(cProperties)] DBPROP *rgProperties;
88 ULONG cProperties;
89 GUID guidPropertySet;
90 } DBPROPSET;
92 typedef DWORD DBPROPFLAGS;
94 typedef struct tagDBPROPINFO {
95 LPOLESTR pwszDescription;
96 DBPROPID dwPropertyID;
97 DBPROPFLAGS dwFlags;
98 VARTYPE vtType;
99 VARIANT vValues;
100 } DBPROPINFO;
102 typedef DBPROPINFO *PDBPROPINFO;
104 typedef struct tagDBPROPINFOSET {
105 [size_is(cPropertyInfos)] PDBPROPINFO rgPropertyInfos;
106 ULONG cPropertyInfos;
107 GUID guidPropertySet;
108 } DBPROPINFOSET;
110 typedef DWORD DBBINDURLFLAG;
111 typedef DWORD DBBINDURLSTATUS;
113 typedef struct tagDBIMPLICITSESSION
115 IUnknown *pUnkOuter;
116 IID *piid;
117 IUnknown *pSession;
118 } DBIMPLICITSESSION;
120 typedef WORD DBTYPE;
122 enum DBTYPEENUM
124 DBTYPE_EMPTY = 0,
125 DBTYPE_NULL = 1,
126 DBTYPE_I2 = 2,
127 DBTYPE_I4 = 3,
128 DBTYPE_R4 = 4,
129 DBTYPE_R8 = 5,
130 DBTYPE_CY = 6,
131 DBTYPE_DATE = 7,
132 DBTYPE_BSTR = 8,
133 DBTYPE_IDISPATCH = 9,
134 DBTYPE_ERROR = 10,
135 DBTYPE_BOOL = 11,
136 DBTYPE_VARIANT = 12,
137 DBTYPE_IUNKNOWN = 13,
138 DBTYPE_DECIMAL = 14,
139 DBTYPE_I1 = 16,
140 DBTYPE_UI1 = 17,
141 DBTYPE_UI2 = 18,
142 DBTYPE_UI4 = 19,
143 DBTYPE_I8 = 20,
144 DBTYPE_UI8 = 21,
145 DBTYPE_GUID = 72,
146 DBTYPE_BYTES = 128,
147 DBTYPE_STR = 129,
148 DBTYPE_WSTR = 130,
149 DBTYPE_NUMERIC = 131,
150 DBTYPE_UDT = 132,
151 DBTYPE_DBDATE = 133,
152 DBTYPE_DBTIME = 134,
153 DBTYPE_DBTIMESTAMP = 135,
155 DBTYPE_VECTOR = 0x1000,
156 DBTYPE_ARRAY = 0x2000,
157 DBTYPE_BYREF = 0x4000,
158 DBTYPE_RESERVED = 0x8000
161 enum DBTYPEENUM15
163 DBTYPE_HCHAPTER = 136
166 enum DBTYPEENUM20
168 DBTYPE_FILETIME = 64,
169 DBTYPE_PROPVARIANT = 138,
170 DBTYPE_VARNUMERIC = 139
173 typedef DWORD DBSTATUS;
175 enum DBSTATUSENUM
177 DBSTATUS_S_OK = 0,
178 DBSTATUS_E_BADACCESSOR = 1,
179 DBSTATUS_E_CANTCONVERTVALUE = 2,
180 DBSTATUS_S_ISNULL = 3,
181 DBSTATUS_S_TRUNCATED = 4,
182 DBSTATUS_E_SIGNMISMATCH = 5,
183 DBSTATUS_E_DATAOVERFLOW = 6,
184 DBSTATUS_E_CANTCREATE = 7,
185 DBSTATUS_E_UNAVAILABLE = 8,
186 DBSTATUS_E_PERMISSIONDENIED = 9,
187 DBSTATUS_E_INTEGRITYVIOLATION = 10,
188 DBSTATUS_E_SCHEMAVIOLATION = 11,
189 DBSTATUS_E_BADSTATUS = 12,
190 DBSTATUS_S_DEFAULT = 13
193 enum DBPROPENUM
195 DBPROP_ABORTPRESERVE = 0x00000002,
196 DBPROP_ACTIVESESSIONS = 0x00000003,
197 DBPROP_ASYNCTXNCOMMIT = 0x00000004,
198 DBPROP_AUTH_CACHE_AUTHINFO = 0x00000005,
199 DBPROP_AUTH_ENCRYPT_PASSWORD = 0x00000006,
200 DBPROP_AUTH_INTEGRATED = 0x00000007,
201 DBPROP_AUTH_MASK_PASSWORD = 0x00000008,
202 DBPROP_AUTH_PASSWORD = 0x00000009,
203 DBPROP_AUTH_PERSIST_ENCRYPTED = 0x0000000a,
204 DBPROP_AUTH_PERSIST_SENSITIVE_AUTHINFO = 0x0000000b,
205 DBPROP_AUTH_USERID = 0x0000000c,
206 DBPROP_BLOCKINGSTORAGEOBJECTS = 0x0000000d,
207 DBPROP_BOOKMARKS = 0x0000000e,
208 DBPROP_BOOKMARKSKIPPED = 0x0000000f,
209 DBPROP_BOOKMARKTYPE = 0x00000010,
210 DBPROP_CACHEDEFERRED = 0x00000011,
211 DBPROP_CANFETCHBACKWARDS = 0x00000012,
212 DBPROP_CANHOLDROWS = 0x00000013,
213 DBPROP_CANSCROLLBACKWARDS = 0x00000015,
214 DBPROP_CATALOGLOCATION = 0x00000016,
215 DBPROP_CATALOGTERM = 0x00000017,
216 DBPROP_CATALOGUSAGE = 0x00000018,
217 DBPROP_COL_AUTOINCREMENT = 0x0000001a,
218 DBPROP_COL_DEFAULT = 0x0000001b,
219 DBPROP_COL_DESCRIPTION = 0x0000001c,
220 DBPROP_COL_NULLABLE = 0x0000001d,
221 DBPROP_COL_PRIMARYKEY = 0x0000001e,
222 DBPROP_COL_UNIQUE = 0x0000001f,
223 DBPROP_COLUMNDEFINITION = 0x00000020,
224 DBPROP_COLUMNRESTRICT = 0x00000021,
225 DBPROP_COMMANDTIMEOUT = 0x00000022,
226 DBPROP_COMMITPRESERVE = 0x00000023,
227 DBPROP_CONCATNULLBEHAVIOR = 0x00000024,
228 DBPROP_CURRENTCATALOG = 0x00000025,
229 DBPROP_DATASOURCENAME = 0x00000026,
230 DBPROP_DATASOURCEREADONLY = 0x00000027,
231 DBPROP_DBMSNAME = 0x00000028,
232 DBPROP_DBMSVER = 0x00000029,
233 DBPROP_DEFERRED = 0x0000002a,
234 DBPROP_DELAYSTORAGEOBJECTS = 0x0000002b,
235 DBPROP_GROUPBY = 0x0000002c,
236 DBPROP_HETEROGENEOUSTABLES = 0x0000002d,
237 DBPROP_IDENTIFIERCASE = 0x0000002e,
238 DBPROP_IMMOBILEROWS = 0x0000002f,
239 DBPROP_INDEX_AUTOUPDATE = 0x00000030,
240 DBPROP_INDEX_CLUSTERED = 0x00000031,
241 DBPROP_INDEX_FILLFACTOR = 0x00000032,
242 DBPROP_INDEX_INITIALSIZE = 0x00000033,
243 DBPROP_INDEX_NULLCOLLATION = 0x00000034,
244 DBPROP_INDEX_NULLS = 0x00000035,
245 DBPROP_INDEX_PRIMARYKEY = 0x00000036,
246 DBPROP_INDEX_SORTBOOKMARKS = 0x00000037,
247 DBPROP_INDEX_TYPE = 0x00000038,
248 DBPROP_INDEX_UNIQUE = 0x00000039,
249 DBPROP_INIT_DATASOURCE = 0x0000003b,
250 DBPROP_INIT_HWND = 0x0000003c,
251 DBPROP_INIT_IMPERSONATION_LEVEL = 0x0000003d,
252 DBPROP_INIT_LOCATION = 0x0000003e,
253 DBPROP_INIT_MODE = 0x0000003f,
254 DBPROP_INIT_PROMPT = 0x00000040,
255 DBPROP_INIT_PROTECTION_LEVEL = 0x00000041,
256 DBPROP_INIT_TIMEOUT = 0x00000042,
257 DBPROP_LITERALBOOKMARKS = 0x00000043,
258 DBPROP_LITERALIDENTITY = 0x00000044,
259 DBPROP_MAXINDEXSIZE = 0x00000046,
260 DBPROP_MAXOPENROWS = 0x00000047,
261 DBPROP_MAXPENDINGROWS = 0x00000048,
262 DBPROP_MAXROWS = 0x00000049,
263 DBPROP_MAXROWSIZE = 0x0000004a,
264 DBPROP_MAXROWSIZEINCLUDESBLOB = 0x0000004b,
265 DBPROP_MAXTABLESINSELECT = 0x0000004c,
266 DBPROP_MAYWRITECOLUMN = 0x0000004d,
267 DBPROP_MEMORYUSAGE = 0x0000004e,
268 DBPROP_MULTIPLESTORAGEOBJECTS = 0x00000050,
269 DBPROP_MULTITABLEUPDATE = 0x00000051,
270 DBPROP_NOTIFICATIONPHASES = 0x00000052,
271 DBPROP_NULLCOLLATION = 0x00000053,
272 DBPROP_OLEOBJECTS = 0x00000054,
273 DBPROP_ORDERBYCOLUMNSINSELECT = 0x00000055,
274 DBPROP_ORDEREDBOOKMARKS = 0x00000056,
275 DBPROP_OTHERINSERT = 0x00000057,
276 DBPROP_OTHERUPDATEDELETE = 0x00000058,
277 DBPROP_OWNINSERT = 0x00000059,
278 DBPROP_OWNUPDATEDELETE = 0x0000005a,
279 DBPROP_PREPAREABORTBEHAVIOR = 0x0000005b,
280 DBPROP_PREPARECOMMITBEHAVIOR = 0x0000005c,
281 DBPROP_PROCEDURETERM = 0x0000005d,
282 DBPROP_PROVIDERNAME = 0x00000060,
283 DBPROP_PROVIDEROLEDBVER = 0x00000061,
284 DBPROP_PROVIDERVER = 0x00000062,
285 DBPROP_QUICKRESTART = 0x00000063,
286 DBPROP_QUOTEDIDENTIFIERCASE = 0x00000064,
287 DBPROP_REENTRANTEVENTS = 0x00000065,
288 DBPROP_REMOVEDELETED = 0x00000066,
289 DBPROP_REPORTMULTIPLECHANGES = 0x00000067,
290 DBPROP_ROWRESTRICT = 0x00000068,
291 DBPROP_ROWTHREADMODEL = 0x00000069,
292 DBPROP_SCHEMATERM = 0x0000006a,
293 DBPROP_SCHEMAUSAGE = 0x0000006b,
294 DBPROP_SERVERCURSOR = 0x0000006c,
295 DBPROP_SQLSUPPORT = 0x0000006d,
296 DBPROP_STRUCTUREDSTORAGE = 0x0000006f,
297 DBPROP_SUBQUERIES = 0x00000070,
298 DBPROP_SUPPORTEDTXNISOLEVELS = 0x00000071,
299 DBPROP_SUPPORTEDTXNISORETAIN = 0x00000072,
300 DBPROP_TABLETERM = 0x00000073,
301 DBPROP_TRANSACTEDOBJECT = 0x00000074,
302 DBPROP_UPDATABILITY = 0x00000075,
303 DBPROP_USERNAME = 0x00000076,
304 DBPROP_STRONGIDENTITY = 0x00000077,
305 DBPROP_BYREFACCESSORS = 0x00000078,
306 DBPROP_IAccessor = 0x00000079,
307 DBPROP_IColumnsInfo = 0x0000007a,
308 DBPROP_IColumnsRowset = 0x0000007b,
309 DBPROP_IConnectionPointContainer = 0x0000007c,
310 DBPROP_IRowset = 0x0000007e,
311 DBPROP_IRowsetChange = 0x0000007f,
312 DBPROP_IRowsetIdentity = 0x00000080,
313 DBPROP_IRowsetInfo = 0x00000081,
314 DBPROP_IRowsetLocate = 0x00000082,
315 DBPROP_IRowsetResynch = 0x00000084,
316 DBPROP_IRowsetScroll = 0x00000085,
317 DBPROP_IRowsetUpdate = 0x00000086,
318 DBPROP_ISupportErrorInfo = 0x00000087,
319 DBPROP_ILockBytes = 0x00000088,
320 DBPROP_ISequentialStream = 0x00000089,
321 DBPROP_IStorage = 0x0000008a,
322 DBPROP_IStream = 0x0000008b,
323 DBPROP_TBL_TEMPTABLE = 0x0000008c,
324 DBPROP_IRowsetIndex = 0x0000009f,
325 DBPROP_INIT_PROVIDERSTRING = 0x000000a0,
326 DBPROP_SUPPORTEDTXNDDL = 0x000000a1,
327 DBPROP_INDEX_TEMPINDEX = 0x000000a3,
328 DBPROP_COL_FIXEDLENGTH = 0x000000a7,
329 DBPROP_ASYNCTXNABORT = 0x000000a8,
330 DBPROP_DSOTHREADMODEL = 0x000000a9,
331 DBPROP_NOTIFYCOLUMNSET = 0x000000ab,
332 DBPROP_NOTIFYROWDELETE = 0x000000ad,
333 DBPROP_NOTIFYROWFIRSTCHANGE = 0x000000ae,
334 DBPROP_NOTIFYROWINSERT = 0x000000af,
335 DBPROP_NOTIFYROWRESYNCH = 0x000000b1,
336 DBPROP_NOTIFYROWSETRELEASE = 0x000000b2,
337 DBPROP_NOTIFYROWSETFETCHPOSITIONCHANGE = 0x000000b3,
338 DBPROP_NOTIFYROWUNDOCHANGE = 0x000000b4,
339 DBPROP_NOTIFYROWUNDODELETE = 0x000000b5,
340 DBPROP_NOTIFYROWUNDOINSERT = 0x000000b6,
341 DBPROP_NOTIFYROWUPDATE = 0x000000b7,
342 DBPROP_OUTPUTPARAMETERAVAILABILITY = 0x000000b8,
343 DBPROP_PERSISTENTIDTYPE = 0x000000b9,
344 DBPROP_INIT_LCID = 0x000000ba,
345 DBPROP_APPENDONLY = 0x000000bb,
346 DBPROP_CHANGEINSERTEDROWS = 0x000000bc,
347 DBPROP_RETURNPENDINGINSERTS = 0x000000bd,
348 DBPROP_SESS_AUTOCOMMITISOLEVELS = 0x000000be,
349 DBPROP_MULTIPLEPARAMSETS = 0x000000bf,
350 DBPROP_ROWSETCONVERSIONSONCOMMAND = 0x000000c0,
351 DBPROP_IConvertType = 0x000000c2,
352 DBPROP_MULTIPLERESULTS = 0x000000c4,
353 DBPROP_NOTIFICATIONGRANULARITY = 0x000000c6,
354 DBPROP_NOTIFYROWSETCHANGED = 0x000000d3,
357 enum DBPROPENUM15 {
358 DBPROP_FILTERCOMPAREOPS = 0x000000d1,
359 DBPROP_FINDCOMPAREOPS = 0x000000d2,
360 DBPROP_IChapteredRowset = 0x000000ca,
361 DBPROP_IDBAsynchStatus = 0x000000cb,
362 DBPROP_IRowsetFind = 0x000000cc,
363 DBPROP_IRowsetView = 0x000000d4,
364 DBPROP_IViewChapter = 0x000000d5,
365 DBPROP_IViewFilter = 0x000000d6,
366 DBPROP_IViewRowset = 0x000000d7,
367 DBPROP_IViewSort = 0x000000d8,
368 DBPROP_INIT_ASYNCH = 0x000000c8,
369 DBPROP_MAXOPENCHAPTERS = 0x000000c7,
370 DBPROP_MAXORSINFILTER = 0x000000cd,
371 DBPROP_MAXSORTCOLUMNS = 0x000000ce,
372 DBPROP_ROWSET_ASYNCH = 0x000000c9,
373 DBPROP_SORTONINDEX = 0x000000cf
376 enum DBPROPENUM20 {
377 DBPROP_IMultipleResults = 0x000000d9,
378 DBPROP_DATASOURCE_TYPE = 0x000000fb,
379 MDPROP_AXES = 0x000000fc,
380 MDPROP_FLATTENING_SUPPORT = 0x000000fd,
381 MDPROP_MDX_JOINCUBES = 0x000000fe,
382 MDPROP_NAMED_LEVELS = 0x000000ff,
383 MDPROP_RANGEROWSET = 0x00000100,
384 MDPROP_MDX_SLICER = 0x000000da,
385 MDPROP_MDX_CUBEQUALIFICATION = 0x000000db,
386 MDPROP_MDX_OUTERREFERENCE = 0x000000dc,
387 MDPROP_MDX_QUERYBYPROPERTY = 0x000000dd,
388 MDPROP_MDX_CASESUPPORT = 0x000000de,
389 MDPROP_MDX_STRING_COMPOP = 0x000000e0,
390 MDPROP_MDX_DESCFLAGS = 0x000000e1,
391 MDPROP_MDX_SET_FUNCTIONS = 0x000000e2,
392 MDPROP_MDX_MEMBER_FUNCTIONS = 0x000000e3,
393 MDPROP_MDX_NUMERIC_FUNCTIONS = 0x000000e4,
394 MDPROP_MDX_FORMULAS = 0x000000e5,
395 MDPROP_AGGREGATECELL_UPDATE = 0x000000e6,
396 MDPROP_MDX_AGGREGATECELL_UPDATE = MDPROP_AGGREGATECELL_UPDATE,
397 MDPROP_MDX_OBJQUALIFICATION = 0x00000105,
398 MDPROP_MDX_NONMEASURE_EXPRESSIONS = 0x00000106,
399 DBPROP_ACCESSORDER = 0x000000e7,
400 DBPROP_BOOKMARKINFO = 0x000000e8,
401 DBPROP_INIT_CATALOG = 0x000000e9,
402 DBPROP_ROW_BULKOPS = 0x000000ea,
403 DBPROP_PROVIDERFRIENDLYNAME = 0x000000eb,
404 DBPROP_LOCKMODE = 0x000000ec,
405 DBPROP_MULTIPLECONNECTIONS = 0x000000ed,
406 DBPROP_UNIQUEROWS = 0x000000ee,
407 DBPROP_SERVERDATAONINSERT = 0x000000ef,
408 DBPROP_STORAGEFLAGS = 0x000000f0,
409 DBPROP_CONNECTIONSTATUS = 0x000000f4,
410 DBPROP_ALTERCOLUMN = 0x000000f5,
411 DBPROP_COLUMNLCID = 0x000000f6,
412 DBPROP_RESETDATASOURCE = 0x000000f7,
413 DBPROP_INIT_OLEDBSERVICES = 0x000000f8,
414 DBPROP_IRowsetRefresh = 0x000000f9,
415 DBPROP_SERVERNAME = 0x000000fa,
416 DBPROP_IParentRowset = 0x00000101,
417 DBPROP_HIDDENCOLUMNS = 0x00000102,
418 DBPROP_PROVIDERMEMORY = 0x00000103,
419 DBPROP_CLIENTCURSOR = 0x00000104
423 enum DBPROPENUM21 {
424 DBPROP_TRUSTEE_USERNAME = 0x000000f1,
425 DBPROP_TRUSTEE_AUTHENTICATION = 0x000000f2,
426 DBPROP_TRUSTEE_NEWAUTHENTICATION = 0x000000f3,
427 DBPROP_IRow = 0x00000107,
428 DBPROP_IRowChange = 0x00000108,
429 DBPROP_IRowSchemaChange = 0x00000109,
430 DBPROP_IGetRow = 0x0000010a,
431 DBPROP_IScopedOperations = 0x0000010b,
432 DBPROP_IBindResource = 0x0000010c,
433 DBPROP_ICreateRow = 0x0000010d,
434 DBPROP_INIT_BINDFLAGS = 0x0000010e,
435 DBPROP_INIT_LOCKOWNER = 0x0000010f,
436 DBPROP_GENERATEURL = 0x00000111,
437 DBPROP_IDBBinderProperties = 0x00000112,
438 DBPROP_IColumnsInfo2 = 0x00000113,
439 DBPROP_IRegisterProvider = 0x00000114,
440 DBPROP_IGetSession = 0x00000115,
441 DBPROP_IGetSourceRow = 0x00000116,
442 DBPROP_IRowsetCurrentIndex = 0x00000117,
443 DBPROP_OPENROWSETSUPPORT = 0x00000118,
444 DBPROP_COL_ISLONG = 0x00000119
447 enum DBPROPENUM25 {
448 DBPROP_COL_SEED = 0x0000011a,
449 DBPROP_COL_INCREMENT = 0x0000011b,
450 DBPROP_INIT_GENERALTIMEOUT = 0x0000011c,
451 DBPROP_COMSERVICES = 0x0000011d
454 enum DBPROPENUM26 {
455 DBPROP_OUTPUTSTREAM = 0x0000011e,
456 DBPROP_OUTPUTENCODING = 0x0000011f,
457 DBPROP_TABLESTATISTICS = 0x00000120,
458 DBPROP_SKIPROWCOUNTRESULTS = 0x00000123,
459 DBPROP_IRowsetBookmark = 0x00000124,
460 MDPROP_VISUALMODE = 0x00000125,
463 cpp_quote("#ifdef DBINITCONSTANTS")
464 cpp_quote("#ifdef __cplusplus")
465 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
466 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN; \\")
467 cpp_quote(" EXTERN_C const GUID name = \\")
468 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
469 cpp_quote("#else")
470 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
471 cpp_quote(" const GUID name DECLSPEC_HIDDEN; \\")
472 cpp_quote(" const GUID name = \\")
473 cpp_quote(" { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } }")
474 cpp_quote("#endif")
475 cpp_quote("#else")
476 cpp_quote("#define DEFINE_DBGUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \\")
477 cpp_quote(" EXTERN_C const GUID name DECLSPEC_HIDDEN")
478 cpp_quote("#endif")
480 cpp_quote("DEFINE_DBGUID(DB_NULLGUID, 0x00000000, 0x0000, 0x0000, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00);")
481 cpp_quote("DEFINE_DBGUID(DBPROPSET_DBINIT, 0xc8b522bc, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
482 cpp_quote("DEFINE_DBGUID(DBGUID_SESSION, 0xc8b522f5, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
483 cpp_quote("DEFINE_DBGUID(DBGUID_ROWSET, 0xc8b522f6, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
484 cpp_quote("DEFINE_DBGUID(DBGUID_ROW, 0xc8b522f7, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
485 cpp_quote("DEFINE_DBGUID(DBGUID_STREAM, 0xc8b522f9, 0x5cf3, 0x11ce, 0xad, 0xe5, 0x00, 0xaa, 0x00, 0x44, 0x77, 0x3d);")
487 cpp_quote("#define DBPROMPT_PROMPT 0x01")
488 cpp_quote("#define DBPROMPT_COMPLETE 0x02")
489 cpp_quote("#define DBPROMPT_COMPLETEREQUIRED 0x03")
490 cpp_quote("#define DBPROMPT_NOPROMPT 0x04")
492 cpp_quote("#define DBPROPVAL_STGM_READ OF_READ")
493 cpp_quote("#define DBPROPVAL_STGM_WRITE OF_WRITE")
494 cpp_quote("#define DBPROPVAL_STGM_READWRITE OF_READWRITE")
495 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_NONE OF_SHARE_DENY_NONE")
496 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_READ OF_SHARE_DENY_READ")
497 cpp_quote("#define DBPROPVAL_STGM_SHARE_DENY_WRITE OF_SHARE_DENY_WRITE)")
498 cpp_quote("#define DBPROPVAL_STGM_SHARE_EXCLUSIVE OF_SHARE_EXCLUSIVE")
499 cpp_quote("#define DBPROPVAL_STGM_DIRECT 0x00010000")
500 cpp_quote("#define DBPROPVAL_STGM_TRANSACTED 0x00020000")
501 cpp_quote("#define DBPROPVAL_STGM_CREATE OF_CREATE")
502 cpp_quote("#define DBPROPVAL_STGM_CONVERT 0x00040000")
503 cpp_quote("#define DBPROPVAL_STGM_FAILIFTHERE 0x00080000")
504 cpp_quote("#define DBPROPVAL_STGM_PRIORITY 0x00100000")
505 cpp_quote("#define DBPROPVAL_STGM_DELETEONRELEASE 0x00200000")
506 cpp_quote("#define DBPROPVAL_GB_COLLATE __MSABI_LONG(0x00000010)")
507 cpp_quote("#define DBPROPVAL_CS_UNINITIALIZED __MSABI_LONG(0x00000000)")
508 cpp_quote("#define DBPROPVAL_CS_INITIALIZED __MSABI_LONG(0x00000001)")
509 cpp_quote("#define DBPROPVAL_CS_COMMUNICATIONFAILURE __MSABI_LONG(0x00000002)")
511 cpp_quote("#define DBPROPVAL_RD_RESETALL __MSABI_LONG(0xffffffff)")
512 cpp_quote("#define DBPROPVAL_OS_RESOURCEPOOLING __MSABI_LONG(0x00000001)")
513 cpp_quote("#define DBPROPVAL_OS_TXNENLISTMENT __MSABI_LONG(0x00000002)")
514 cpp_quote("#define DBPROPVAL_OS_CLIENTCURSOR __MSABI_LONG(0x00000004)")
515 cpp_quote("#define DBPROPVAL_OS_ENABLEALL __MSABI_LONG(0xffffffff)")
516 cpp_quote("#define DBPROPVAL_BI_CROSSROWSET __MSABI_LONG(0x00000001)")
519 typedef struct tagDBCOLUMNACCESS
521 void *pData;
522 DBID columnid;
523 DBLENGTH cbDataLen;
524 DBSTATUS dwStatus;
525 DBLENGTH cbMaxLen;
526 DB_DWRESERVE dwReserved;
527 DBTYPE wType;
528 BYTE bPrecision;
529 BYTE bScale;
530 } DBCOLUMNACCESS;
532 typedef DWORD DBROWSTATUS;
534 enum DBROWSTATUSENUM
536 DBROWSTATUS_S_OK,
537 DBROWSTATUS_S_LOCKUPGRADED,
538 DBROWSTATUS_S_MULTIPLECHANGES,
539 DBROWSTATUS_S_PENDINGCHANGES,
540 DBROWSTATUS_E_CANCELED,
541 DBROWSTATUS_E_CANTLOCKROW,
542 DBROWSTATUS_E_CANTRELEASE,
543 DBROWSTATUS_E_CONCURRENCYVIOLATION,
544 DBROWSTATUS_E_DELETED,
545 DBROWSTATUS_E_PENDINGINSERT,
546 DBROWSTATUS_E_NEWLYINSERTED,
547 DBROWSTATUS_E_INTEGRITYVIOLATION,
548 DBROWSTATUS_E_INVALID,
549 DBROWSTATUS_E_MAXPENDCHANGESEXCEEDED,
550 DBROWSTATUS_E_OBJECTOPEN,
551 DBROWSTATUS_E_OUTOFMEMORY,
552 DBROWSTATUS_E_PERMISSIONDENIED,
553 DBROWSTATUS_E_LIMITREACHED,
554 DBROWSTATUS_E_SCHEMAVIOLATION,
555 DBROWSTATUS_E_FAIL,
559 typedef DWORD DBPART;
561 enum DBPARTENUM
563 DBPART_INVALID = 0,
564 DBPART_VALUE = 1,
565 DBPART_LENGTH = 2,
566 DBPART_STATUS = 4,
569 typedef DWORD DBPARAMIO;
571 enum DBPARAMIOENUM
573 DBPARAMIO_NOTPARAM = 0,
574 DBPARAMIO_INPUT = 1,
575 DBPARAMIO_OUTPUT = 2,
578 typedef DWORD DBMEMOWNER;
580 enum DBMEMOWNERENUM
582 DBMEMOWNER_CLIENTOWNED = 0,
583 DBMEMOWNER_PROVIDEROWNED = 1,
586 typedef struct tagDBOBJECT
588 DWORD dwFlags;
589 IID iid;
590 } DBOBJECT;
592 typedef struct tagDBBINDEXT
594 [size_is((ULONG)ulExtension)] BYTE *pExtension;
595 DBCOUNTITEM ulExtension;
596 } DBBINDEXT;
598 typedef struct tagDBBINDING
600 DBORDINAL iOrdinal;
601 DBBYTEOFFSET obValue;
602 DBBYTEOFFSET obLength;
603 DBBYTEOFFSET obStatus;
604 ITypeInfo *pTypeInfo;
605 DBOBJECT *pObject;
606 DBBINDEXT *pBindExt;
607 DBPART dwPart;
608 DBMEMOWNER dwMemOwner;
609 DBPARAMIO eParamIO;
610 DBLENGTH cbMaxLen;
611 DWORD dwFlags;
612 DBTYPE wType;
613 BYTE bPrecision;
614 BYTE bScale;
615 } DBBINDING;
617 typedef ULONG_PTR HACCESSOR;
619 cpp_quote("#define DB_INVALID_HACCESSOR 0x00")
621 typedef ULONG_PTR HROW;
623 cpp_quote("#define DB_NULL_HROW 0x00")
625 typedef ULONG_PTR HWATCHREGION;
627 cpp_quote("#define DBWATCHREGION_NULL NULL")
629 typedef ULONG_PTR HCHAPTER;
631 cpp_quote("#define DB_NULL_HCHAPTER 0x00")
633 typedef struct tagDBPARAMS
635 void *pData;
636 DB_UPARAMS cParamSets;
637 HACCESSOR hAccessor;
638 } DBPARAMS;
640 typedef DWORD DBASYNCHOP;
642 enum DBASYNCHOPENUM
644 DBSYNCHOP_OPEN,
647 typedef DWORD DBASYNCHPHASE;
649 enum DBASYNCHPHASEENUM
651 DBASYNCHPHASE_INITIALIZATION,
652 DBASYNCHPHASE_POPULATION,
653 DBASYNCHPHASE_COMPLETE,
654 DBASYNCHPHASE_CANCELED,
657 typedef struct tagRMTPACK
659 ISequentialStream *pISeqStream;
660 ULONG cbData;
661 ULONG cBSTR;
662 [size_is(cBSTR)] BSTR *rgBSTR;
663 ULONG cVARIANT;
664 [size_is(cVARIANT)] VARIANT *rgVARIANT;
665 ULONG cIDISPATCH;
666 [size_is(cIDISPATCH)] IDispatch **rgIDISPATCH;
667 ULONG cIUNKNOWN;
668 [size_is(cIUNKNOWN)] IUnknown **rgIUNKNOWN;
669 ULONG cPROPVARIANT;
670 [size_is(cPROPVARIANT)] PROPVARIANT *rgPROPVARIANT;
671 ULONG cArray;
672 [size_is(cArray)] VARIANT *rgArray;
673 } RMTPACK;
675 typedef struct tagDBDATE {
676 SHORT year;
677 USHORT month;
678 USHORT day;
679 } DBDATE;
681 typedef struct tagDBTIME {
682 USHORT hour;
683 USHORT minute;
684 USHORT second;
685 } DBTIME;
687 typedef struct tagDBTIMESTAMP {
688 SHORT year;
689 USHORT month;
690 USHORT day;
691 USHORT hour;
692 USHORT minute;
693 USHORT second;
694 ULONG fraction;
695 } DBTIMESTAMP;
697 typedef DWORD DBREASON;
698 typedef DWORD DBEVENTPHASE;
700 enum DBEVENTPHASEENUM {
701 DBEVENTPHASE_OKTODO,
702 DBEVENTPHASE_ABOUTTODO,
703 DBEVENTPHASE_SYNCHAFTER,
704 DBEVENTPHASE_FAILEDTODO,
705 DBEVENTPHASE_DIDEVENT
708 enum DBREASONENUM {
709 DBREASON_ROWSET_FETCHPOSITIONCHANGE,
710 DBREASON_ROWSET_RELEASE,
711 DBREASON_COLUMN_SET,
712 DBREASON_COLUMN_RECALCULATED,
713 DBREASON_ROW_ACTIVATE,
714 DBREASON_ROW_RELEASE,
715 DBREASON_ROW_DELETE,
716 DBREASON_ROW_FIRSTCHANCE,
717 DBREASON_ROW_INSERT,
718 DBREASON_ROW_RESYNCH,
719 DBREASON_ROW_UNDOCHANGE,
720 DBREASON_ROW_UNDOINSERT,
721 DBREASON_ROW_UNDODELETE,
722 DBREASON_ROW_UPDATE,
723 DBREASON_ROWSET_CHANGED
726 enum DBREASONENUM15 {
727 DBREASON_ROWPOSITION_CHANGED = DBREASON_ROWSET_CHANGED + 1,
728 DBREASON_ROWPOSITION_CHAPTERCHANGED,
729 DBREASON_ROWPOSITION_CLEARED,
730 DBREASON_ROW_ASYNCHINSERT