VirtualBox

source: vbox/trunk/src/VBox/Devices/Graphics/shaderlib/wine/include/dbs.idl@ 96080

最後變更 在這個檔案從96080是 53206,由 vboxsync 提交於 10 年 前

Devices/vmsvga: header fixes

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

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette