mshtml: Use variant_to_nsstr in IHTMLIFrameElement2::put_width.
[wine.git] / include / msado15_backcompat.idl
blobe5d0f5ecfe9df246d50ed41a4cc341c5215ab77c
1 /*
2 * Copyright 2019 Hans Leidekker for CodeWeavers
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 import "oaidl.idl";
21 interface _ADO;
22 interface _Collection;
23 interface _Command;
24 interface _Connection;
25 interface _DynaCollection;
26 interface _Parameter;
27 interface _Record;
28 interface _Recordset;
29 interface _Stream;
30 interface ADODebugging;
31 interface ADOConnectionConstruction;
32 interface ADOCommandConstruction;
33 interface ADORecordsetConstruction;
34 interface Command15;
35 interface Command25;
36 interface Error;
37 interface Errors;
38 interface Field;
39 interface Field15;
40 interface Field20;
41 interface Fields;
42 interface Fields15;
43 interface Fields20;
44 interface Parameters;
45 interface Properties;
46 interface Property;
47 interface Recordset15;
48 interface Recordset20;
49 interface Recordset21;
50 interface ConnectionEventsVt;
51 dispinterface ConnectionEvents;
52 dispinterface RecordsetEvents;
54 typedef [uuid(0000052A-0000-0010-8000-00AA006D2EA4)] enum ErrorValueEnum
56 adErrInvalidArgument = 3001,
57 adErrOpeningFile = 3002,
58 adErrReadFile = 3003,
59 adErrWriteFile = 3004,
60 adErrNoCurrentRecord = 3021,
61 adErrIllegalOperation = 3219,
62 adErrCantChangeProvider = 3220,
63 adErrInTransaction = 3246,
64 adErrFeatureNotAvailable = 3251,
65 adErrItemNotFound = 3265,
66 adErrObjectInCollection = 3367,
67 adErrObjectNotSet = 3420,
68 adErrDataConversion = 3421,
69 adErrObjectClosed = 3704,
70 adErrObjectOpen = 3705,
71 adErrProviderNotFound = 3706,
72 adErrBoundToCommand = 3707,
73 adErrInvalidParamInfo = 3708,
74 adErrInvalidConnection = 3709,
75 adErrNotReentrant = 3710,
76 adErrStillExecuting = 3711,
77 adErrOperationCancelled = 3712,
78 adErrStillConnecting = 3713,
79 adErrInvalidTransaction = 3714,
80 adErrNotExecuting = 3715,
81 adErrUnsafeOperation = 3716,
82 adWrnSecurityDialog = 3717,
83 adWrnSecurityDialogHeader = 3718,
84 adErrIntegrityViolation = 3719,
85 adErrPermissionDenied = 3720,
86 adErrDataOverflow = 3721,
87 adErrSchemaViolation = 3722,
88 adErrSignMismatch = 3723,
89 adErrCantConvertvalue = 3724,
90 adErrCantCreate = 3725,
91 adErrColumnNotOnThisRow = 3726,
92 adErrURLDoesNotExist = 3727,
93 adErrTreePermissionDenied = 3728,
94 adErrInvalidURL = 3729,
95 adErrResourceLocked = 3730,
96 adErrResourceExists = 3731,
97 adErrCannotComplete = 3732,
98 adErrVolumeNotFound = 3733,
99 adErrOutOfSpace = 3734,
100 adErrResourceOutOfScope = 3735,
101 adErrUnavailable = 3736,
102 adErrURLNamedRowDoesNotExist = 3737,
103 adErrDelResOutOfScope = 3738,
104 adErrPropInvalidColumn = 3739,
105 adErrPropInvalidOption = 3740,
106 adErrPropInvalidValue = 3741,
107 adErrPropConflicting = 3742,
108 adErrPropNotAllSettable = 3743,
109 adErrPropNotSet = 3744,
110 adErrPropNotSettable = 3745,
111 adErrPropNotSupported = 3746,
112 adErrCatalogNotSet = 3747,
113 adErrCantChangeConnection = 3748,
114 adErrFieldsUpdateFailed = 3749,
115 adErrDenyNotSupported = 3750,
116 adErrDenyTypeNotSupported = 3751,
117 adErrProviderNotSpecified = 3753,
118 adErrConnectionStringTooLong = 3754
119 } ErrorValueEnum;
121 typedef [uuid(00000528-0000-0010-8000-00aa006d2ea4)] enum PositionEnum
123 adPosUnknown = -1,
124 adPosBOF = -2,
125 adPosEOF = -3
126 } PositionEnum;
128 typedef [uuid(a56187c5-d690-4037-ae32-a00edc376ac3), public] PositionEnum PositionEnum_Param;
130 typedef [uuid(0000051f-0000-0010-8000-00aa006d2ea4)] enum DataTypeEnum
132 adEmpty = 0,
133 adTinyInt = 16,
134 adSmallInt = 2,
135 adInteger = 3,
136 adBigInt = 20,
137 adUnsignedTinyInt = 17,
138 adUnsignedSmallInt = 18,
139 adUnsignedInt = 19,
140 adUnsignedBigInt = 21,
141 adSingle = 4,
142 adDouble = 5,
143 adCurrency = 6,
144 adDecimal = 14,
145 adNumeric = 131,
146 adBoolean = 11,
147 adError = 10,
148 adUserDefined = 132,
149 adVariant = 12,
150 adIDispatch = 9,
151 adIUnknown = 13,
152 adGUID = 72,
153 adDate = 7,
154 adDBDate = 133,
155 adDBTime = 134,
156 adDBTimeStamp = 135,
157 adBSTR = 8,
158 adChar = 129,
159 adVarChar = 200,
160 adLongVarChar = 201,
161 adWChar = 130,
162 adVarWChar = 202,
163 adLongVarWChar = 203,
164 adBinary = 128,
165 adVarBinary = 204,
166 adLongVarBinary = 205,
167 adChapter = 136,
168 adFileTime = 64,
169 adPropVariant = 138,
170 adVarNumeric = 139,
171 adArray = 0x2000
172 } DataTypeEnum;
174 typedef [uuid(00000548-0000-0010-8000-00aa006d2ea4)] enum PersistFormatEnum
176 adPersistADTG = 0,
177 adPersistXML = 1
178 } PersistFormatEnum;
180 typedef [uuid(00000552-0000-0010-8000-00aa006d2ea4)] enum SeekEnum
182 adSeekFirstEQ = 1,
183 adSeekLastEQ = 2,
184 adSeekAfterEQ = 4,
185 adSeekAfter = 8,
186 adSeekBeforeEQ = 16,
187 adSeekBefore = 32
188 } SeekEnum;
190 typedef [uuid(0000051b-0000-0010-8000-00aa006d2ea4)] enum CursorTypeEnum
192 adOpenUnspecified = -1,
193 adOpenForwardOnly = 0,
194 adOpenKeyset = 1,
195 adOpenDynamic = 2,
196 adOpenStatic = 3
197 } CursorTypeEnum;
199 typedef [uuid(00000525-0000-0010-8000-00aa006d2ea4)] enum FieldAttributeEnum
201 adFldUnspecified = -1,
202 adFldMayDefer = 0x00000002,
203 adFldUpdatable = 0x00000004,
204 adFldUnknownUpdatable = 0x00000008,
205 adFldFixed = 0x00000010,
206 adFldIsNullable = 0x00000020,
207 adFldMayBeNull = 0x00000040,
208 adFldLong = 0x00000080,
209 adFldRowID = 0x00000100,
210 adFldRowVersion = 0x00000200,
211 adFldCacheDeferred = 0x00001000,
212 adFldIsChapter = 0x00002000,
213 adFldNegativeScale = 0x00004000,
214 adFldKeyColumn = 0x00008000,
215 adFldIsRowURL = 0x00010000,
216 adFldIsDefaultStream = 0x00020000,
217 adFldIsCollection = 0x00040000
218 } FieldAttributeEnum;
220 typedef [uuid(00000544-0000-0010-8000-00aa006d2ea4)] enum ResyncEnum
222 adResyncUnderlyingValues = 1,
223 adResyncAllValues = 2
224 } ResyncEnum;
226 typedef [uuid(0000051d-0000-0010-8000-00aa006d2ea4)] enum LockTypeEnum
228 adLockUnspecified = -1,
229 adLockReadOnly = 1,
230 adLockPessimistic = 2,
231 adLockOptimistic = 3,
232 adLockBatchOptimistic = 4
233 } LockTypeEnum;
235 typedef [uuid(00000543-0000-0010-8000-00aa006d2ea4)] enum AffectEnum
237 adAffectCurrent = 1,
238 adAffectGroup = 2,
239 adAffectAll = 3,
240 adAffectAllChapters = 4
241 } AffectEnum;
243 typedef [uuid(00000526-0000-0010-8000-00aa006d2ea4)] enum EditModeEnum
245 adEditNone = 0,
246 adEditInProgress = 1,
247 adEditAdd = 2,
248 adEditDelete = 4
249 } EditModeEnum;
251 typedef [uuid(0000052f-0000-0010-8000-00aa006d2ea4)] enum CursorLocationEnum
253 adUseNone = 1,
254 adUseServer = 2,
255 adUseClient = 3,
256 adUseClientBatch = 3
257 } CursorLocationEnum;
259 typedef [uuid(0000051c-0000-0010-8000-00aa006d2ea4)] enum CursorOptionEnum
261 adHoldRecords = 256,
262 adMovePrevious = 512,
263 adBookmark = 8192,
264 adApproxPosition = 16384,
265 adUpdateBatch = 65536,
266 adResync = 131072,
267 adNotify = 262144,
268 adFind = 524288,
269 adSeek = 4194304,
270 adIndex = 8388608,
271 adAddNew = 16778240,
272 adDelete = 16779264,
273 adUpdate = 16809984
274 } CursorOptionEnum;
276 typedef [uuid(00000540-0000-0010-8000-00aa006d2ea4)] enum MarshalOptionsEnum
278 adMarshalAll = 0,
279 adMarshalModifiedOnly = 1
280 } MarshalOptionsEnum;
282 typedef [uuid(00000547-0000-0010-8000-00aa006d2ea4)] enum SearchDirectionEnum
284 adSearchForward = 1,
285 adSearchBackward = -1
286 } SearchDirectionEnum;
288 typedef [uuid(00000549-0000-0010-8000-00aa006d2ea4)] enum StringFormatEnum
290 adClipString = 2
291 } StringFormatEnum;
293 typedef [uuid(00000545-0000-0010-8000-00aa006d2ea4)] enum CompareEnum
295 adCompareLessThan = 0,
296 adCompareEqual = 1,
297 adCompareGreaterThan = 2,
298 adCompareNotEqual = 3,
299 adCompareNotComparable = 4
300 } CompareEnum;
302 typedef [uuid(00000523-0000-0010-8000-00aa006d2ea4)] enum IsolationLevelEnum
304 adXactUnspecified = -1,
305 adXactChaos = 16,
306 adXactReadUncommitted = 256,
307 adXactBrowse = 256,
308 adXactCursorStability = 4096,
309 adXactReadCommitted = 4096,
310 adXactRepeatableRead = 65536,
311 adXactSerializable = 1048576,
312 adXactIsolated = 1048576
313 } IsolationLevelEnum;
315 typedef [uuid(00000521-0000-0010-8000-00aa006d2ea4)] enum ConnectModeEnum
317 adModeUnknown = 0,
318 adModeRead = 1,
319 adModeWrite = 2,
320 adModeReadWrite = 3,
321 adModeShareDenyRead = 4,
322 adModeShareDenyWrite = 8,
323 adModeShareExclusive = 12,
324 adModeShareDenyNone = 16,
325 adModeRecursive = 4194304
326 } ConnectModeEnum;
328 typedef [uuid(00000533-0000-0010-8000-00aa006d2ea4)] enum SchemaEnum
330 adSchemaProviderSpecific = -1,
331 adSchemaAsserts = 0,
332 adSchemaCatalogs = 1,
333 adSchemaCharacterSets = 2,
334 adSchemaCollations = 3,
335 adSchemaColumns = 4,
336 adSchemaCheckConstraints = 5,
337 adSchemaConstraintColumnUsage = 6,
338 adSchemaConstraintTableUsage = 7,
339 adSchemaKeyColumnUsage = 8,
340 adSchemaReferentialContraints = 9,
341 adSchemaReferentialConstraints = 9,
342 adSchemaTableConstraints = 10,
343 adSchemaColumnsDomainUsage = 11,
344 adSchemaIndexes = 12,
345 adSchemaColumnPrivileges = 13,
346 adSchemaTablePrivileges = 14,
347 adSchemaUsagePrivileges = 15,
348 adSchemaProcedures = 16,
349 adSchemaSchemata = 17,
350 adSchemaSQLLanguages = 18,
351 adSchemaStatistics = 19,
352 adSchemaTables = 20,
353 adSchemaTranslations = 21,
354 adSchemaProviderTypes = 22,
355 adSchemaViews = 23,
356 adSchemaViewColumnUsage = 24,
357 adSchemaViewTableUsage = 25,
358 adSchemaProcedureParameters = 26,
359 adSchemaForeignKeys = 27,
360 adSchemaPrimaryKeys = 28,
361 adSchemaProcedureColumns = 29,
362 adSchemaDBInfoKeywords = 30,
363 adSchemaDBInfoLiterals = 31,
364 adSchemaCubes = 32,
365 adSchemaDimensions = 33,
366 adSchemaHierarchies = 34,
367 adSchemaLevels = 35,
368 adSchemaMeasures = 36,
369 adSchemaProperties = 37,
370 adSchemaMembers = 38,
371 adSchemaTrustees = 39,
372 adSchemaFunctions = 40,
373 adSchemaActions = 41,
374 adSchemaCommands = 42,
375 adSchemaSets = 43
376 } SchemaEnum;
378 typedef [uuid(00000530-0000-0010-8000-00aa006d2ea4)] enum EventStatusEnum
380 adStatusOK = 1,
381 adStatusErrorsOccurred = 2,
382 adStatusCantDeny = 3,
383 adStatusCancel = 4,
384 adStatusUnwantedEvent = 5
385 } EventStatusEnum;
387 typedef [uuid(0000052c-0000-0010-8000-00aa006d2ea4)] enum ParameterDirectionEnum
389 adParamUnknown = 0,
390 adParamInput = 1,
391 adParamOutput = 2,
392 adParamInputOutput = 3,
393 adParamReturnValue = 4
394 } ParameterDirectionEnum;
396 typedef [uuid(0000052e-0000-0010-8000-00aa006d2ea4)] enum CommandTypeEnum
398 adCmdUnspecified = -1,
399 adCmdUnknown = 8,
400 adCmdText = 1,
401 adCmdTable = 2,
402 adCmdStoredProc = 4,
403 adCmdFile = 256,
404 adCmdTableDirect = 512
405 } CommandTypeEnum;
407 typedef [uuid(00000532-0000-0010-8000-00aa006d2ea4)] enum ObjectStateEnum
409 adStateClosed = 0,
410 adStateOpen = 1,
411 adStateConnecting = 2,
412 adStateExecuting = 4,
413 adStateFetching = 8
414 } ObjectStateEnum;
416 typedef [uuid(00000573-0000-0010-8000-00aa006d2ea4)] enum MoveRecordOptionsEnum
418 adMoveUnspecified = -1,
419 adMoveOverWrite = 1,
420 adMoveDontUpdateLinks = 2,
421 adMoveAllowEmulation = 4
422 } MoveRecordOptionsEnum;
424 typedef [uuid(00000574-0000-0010-8000-00aa006d2ea4)] enum CopyRecordOptionsEnum
426 adCopyUnspecified = -1,
427 adCopyOverWrite = 1,
428 adCopyAllowEmulation = 4,
429 adCopyNonRecursive = 2
430 } CopyRecordOptionsEnum;
432 typedef [uuid(00000570-0000-0010-8000-00aa006d2ea4)] enum RecordCreateOptionsEnum
434 adCreateCollection = (int) 0x00002000,
435 adCreateStructDoc = (int) 0x80000000,
436 adCreateNonCollection = (int) 0x00000000,
437 adOpenIfExists = (int) 0x02000000,
438 adCreateOverwrite = (int) 0x04000000,
439 adFailIfNotExists = (int) -1
440 } RecordCreateOptionsEnum;
442 typedef [uuid(00000571-0000-0010-8000-00aa006d2ea4)] enum RecordOpenOptionsEnum
444 adOpenRecordUnspecified = -1,
445 adOpenOutput = 0x00800000,
446 adOpenAsync = 0x00001000,
447 adDelayFetchStream = 0x00004000,
448 adDelayFetchFields = 0x00008000,
449 adOpenExecuteCommand = 0x00010000
450 } RecordOpenOptionsEnum;
452 typedef [uuid(0000057d-0000-0010-8000-00aa006d2ea4)] enum RecordTypeEnum
454 adSimpleRecord = 0,
455 adCollectionRecord = 1,
456 adStructDoc = 2
457 } RecordTypeEnum;
459 typedef [uuid(00000576-0000-0010-8000-00aa006d2ea4)] enum StreamTypeEnum
461 adTypeBinary = 1,
462 adTypeText = 2
463 } StreamTypeEnum;
465 typedef [uuid(00000577-0000-0010-8000-00aa006d2ea4)] enum LineSeparatorEnum
467 adLF = 10,
468 adCR = 13,
469 adCRLF = -1
470 } LineSeparatorEnum;
472 typedef enum
474 adReadAll = -1,
475 adReadLine = -2
476 } StreamReadEnum;
478 typedef [uuid(0000057c-0000-0010-8000-00aa006d2ea4)] enum SaveOptionsEnum
480 adSaveCreateNotExist = 1,
481 adSaveCreateOverWrite = 2
482 } SaveOptionsEnum;
484 typedef [uuid(0000057a-0000-0010-8000-00aa006d2ea4)] enum StreamOpenOptionsEnum
486 adOpenStreamUnspecified = -1,
487 adOpenStreamAsync = 1,
488 adOpenStreamFromRecord = 4
489 } StreamOpenOptionsEnum;
491 typedef [uuid(0000057b-0000-0010-8000-00aa006d2ea4)] enum StreamWriteEnum
493 adWriteChar = 0,
494 adWriteLine = 1
495 } StreamWriteEnum;
497 typedef [uuid(00000531-0000-0010-8000-00aa006d2ea4)] enum EventReasonEnum
499 adRsnAddNew = 1,
500 adRsnDelete = 2,
501 adRsnUpdate = 3,
502 adRsnUndoUpdate = 4,
503 adRsnUndoAddNew = 5,
504 adRsnUndoDelete = 6,
505 adRsnRequery = 7,
506 adRsnResynch = 8,
507 adRsnClose = 9,
508 adRsnMove = 10,
509 adRsnFirstChange = 11,
510 adRsnMoveFirst = 12,
511 adRsnMoveNext = 13,
512 adRsnMovePrevious = 14,
513 adRsnMoveLast = 15
514 } EventReasonEnum;
516 typedef [uuid(00000541-0000-0010-8000-00aa006d2ea4)] enum ConnectOptionEnum
518 adConnectUnspecified = -1,
519 adAsyncConnect = 0x10
520 } ConnectOptionEnum;
523 uuid(00000503-0000-0010-8000-00aa006d2ea4),
524 odl,
525 dual,
526 nonextensible,
527 oleautomation
529 interface Property : IDispatch
531 [id(00000000), propget]
532 HRESULT Value(
533 [out, retval] VARIANT *val);
535 [id(00000000), propput]
536 HRESULT Value(
537 [in] VARIANT val);
539 [id(0x60020002), propget]
540 HRESULT Name(
541 [out, retval] BSTR *str);
543 [id(0x60020003), propget]
544 HRESULT Type(
545 [out, retval] DataTypeEnum *type);
547 [id(0x60020004), propget]
548 HRESULT Attributes(
549 [out, retval] LONG *attributes);
551 [id(0x60020004), propput]
552 HRESULT Attributes(
553 [in] LONG attributes);
557 uuid(00000512-0000-0010-8000-00aa006d2ea4),
558 odl,
559 dual,
560 nonextensible,
561 oleautomation
563 interface _Collection : IDispatch
565 [id(0x60020000), propget]
566 HRESULT Count(
567 [out, retval] LONG *count);
569 [id(0xfffffffc), restricted]
570 HRESULT _NewEnum(
571 [out, retval] IUnknown **object);
573 [id(0x60020002)]
574 HRESULT Refresh();
578 uuid(00000504-0000-0010-8000-00aa006d2ea4),
579 odl,
580 dual,
581 nonextensible,
582 oleautomation
584 interface Properties : _Collection
586 [id(00000000), propget]
587 HRESULT Item(
588 [in] VARIANT index,
589 [out, retval] Property **object);
593 uuid(00000534-0000-0010-8000-00aa006d2ea4),
594 odl,
595 dual,
596 nonextensible,
597 oleautomation
599 interface _ADO : IDispatch
601 [id(0x000001f4), propget]
602 HRESULT Properties(
603 [out, retval] Properties **object);
607 uuid(0000054c-0000-0010-8000-00aa006d2ea4),
608 odl,
609 dual,
610 nonextensible,
611 oleautomation,
612 hidden
614 interface Field20 : _ADO
616 [id(0x00000455), propget]
617 HRESULT ActualSize(
618 [out, retval] LONG *size);
620 [id(0x0000040c), propget]
621 HRESULT Attributes(
622 [out, retval] LONG *attrs);
624 [id(0x0000044f), propget]
625 HRESULT DefinedSize(
626 [out, retval] LONG *size);
628 [id(0x0000044c), propget]
629 HRESULT Name(
630 [out, retval] BSTR *str);
632 [id(0x0000044e), propget]
633 HRESULT Type(
634 [out, retval] DataTypeEnum *type);
636 [id(00000000), propget]
637 HRESULT Value(
638 [out, retval] VARIANT *val);
640 [id(00000000), propput]
641 HRESULT Value(
642 [in] VARIANT val);
644 [id(0x60030007), propget]
645 HRESULT Precision(
646 [out, retval] unsigned char *precision);
648 [id(0x60030008), propget]
649 HRESULT NumericScale(
650 [out, retval] unsigned char *scale);
652 [id(0x00000453)]
653 HRESULT AppendChunk(
654 [in] VARIANT data);
656 [id(0x00000454)]
657 HRESULT GetChunk(
658 [in] LONG length,
659 [out, retval] VARIANT *var);
661 [id(0x00000450), propget]
662 HRESULT OriginalValue(
663 [out, retval] VARIANT *val);
665 [id(0x00000451), propget]
666 HRESULT UnderlyingValue(
667 [out, retval] VARIANT *val);
669 [id(0x6003000d), propget]
670 HRESULT DataFormat(
671 [out, retval] IUnknown **format);
673 [id(0x6003000d), propputref]
674 HRESULT DataFormat(
675 [in] IUnknown *format);
677 [id(0x60030007), propput]
678 HRESULT Precision(
679 [in] unsigned char precision);
681 [id(0x60030008), propput]
682 HRESULT NumericScale(
683 [in] unsigned char scale);
685 [id(0x0000044e), propput]
686 HRESULT Type(
687 [in] DataTypeEnum type);
689 [id(0x0000044f), propput]
690 HRESULT DefinedSize(
691 [in] LONG size);
693 [id(0x0000040c), propput]
694 HRESULT Attributes(
695 [in] LONG attrs);
699 uuid(00000569-0000-0010-8000-00aa006d2ea4),
700 odl,
701 dual,
702 nonextensible,
703 oleautomation
705 interface Field : Field20
707 [id(0x0000045c), propget]
708 HRESULT Status(
709 [out, retval] LONG *status);
713 uuid(00000506-0000-0010-8000-00aa006d2ea4),
714 odl,
715 dual,
716 nonextensible,
717 oleautomation
719 interface Fields15 : _Collection
721 [id(00000000), propget]
722 HRESULT Item(
723 [in] VARIANT index,
724 [out, retval] Field **object);
728 uuid(0000054d-0000-0010-8000-00aa006d2ea4),
729 odl,
730 dual,
731 nonextensible,
732 oleautomation
734 interface Fields20 : Fields15
736 [id(0x60030001)]
737 HRESULT _Append(
738 [in] BSTR name,
739 [in] DataTypeEnum type,
740 [in, defaultvalue(0)] LONG size,
741 [in, defaultvalue(adFldUnspecified)] FieldAttributeEnum attr);
743 [id(0x60030002)]
744 HRESULT Delete(
745 [in] VARIANT index);
749 uuid(00000564-0000-0010-8000-00aa006d2ea4),
750 odl,
751 dual,
752 nonextensible,
753 oleautomation
755 interface Fields : Fields20
757 [id(0x60040001)]
758 HRESULT Append(
759 [in] BSTR name,
760 [in] DataTypeEnum type,
761 [in, defaultvalue(0)] LONG size,
762 [in, defaultvalue(adFldUnspecified)] FieldAttributeEnum attr,
763 [in, optional] VARIANT value);
765 [id(0x60040002)]
766 HRESULT Update();
768 [id(0x60040003)]
769 HRESULT Resync(
770 [in, defaultvalue(adResyncAllValues)] ResyncEnum resync_values);
772 [id(0x60040004)]
773 HRESULT CancelUpdate();
777 uuid(0000050e-0000-0010-8000-00aa006d2ea4),
778 odl,
779 dual,
780 nonextensible,
781 oleautomation
783 interface Recordset15 : _ADO
785 [id(0x000003e8), propget]
786 HRESULT AbsolutePosition(
787 [out, retval] PositionEnum_Param *position);
789 [id(0x000003e8), propput]
790 HRESULT AbsolutePosition(
791 [in] PositionEnum_Param position);
793 [id(0x000003e9), propputref]
794 HRESULT ActiveConnection(
795 [in] IDispatch *connection);
797 [id(0x000003e9), propput]
798 HRESULT ActiveConnection(
799 [in] VARIANT connection);
801 [id(0x000003e9), propget]
802 HRESULT ActiveConnection(
803 [out, retval] VARIANT *connection);
805 [id(0x000003ea), propget]
806 HRESULT BOF(
807 [out, retval] VARIANT_BOOL *bof);
809 [id(0x000003eb), propget]
810 HRESULT Bookmark(
811 [out, retval] VARIANT *bookmark);
813 [id(0x000003eb), propput]
814 HRESULT Bookmark(
815 [in] VARIANT bookmark);
817 [id(0x000003ec), propget]
818 HRESULT CacheSize(
819 [out, retval] LONG *size);
821 [id(0x000003ec), propput]
822 HRESULT CacheSize(
823 [in] LONG size);
825 [id(0x000003ed), propget]
826 HRESULT CursorType(
827 [out, retval] CursorTypeEnum *cursor_type);
829 [id(0x000003ed), propput]
830 HRESULT CursorType(
831 [in] CursorTypeEnum cursor_type);
833 [id(0x000003ee), propget]
834 HRESULT EOF(
835 [out, retval] VARIANT_BOOL *eof);
837 [id(00000000), propget]
838 HRESULT Fields(
839 [out, retval] Fields **object);
841 [id(0x000003f0), propget]
842 HRESULT LockType(
843 [out, retval] LockTypeEnum *lock_type);
845 [id(0x000003f0), propput]
846 HRESULT LockType(
847 [in] LockTypeEnum lock_type);
849 [id(0x000003f1), propget]
850 HRESULT MaxRecords(
851 [out, retval] LONG *max_records);
853 [id(0x000003f1), propput]
854 HRESULT MaxRecords(
855 [in] LONG max_records);
857 [id(0x000003f2), propget]
858 HRESULT RecordCount(
859 [out, retval] LONG *count);
861 [id(0x000003f3), propputref]
862 HRESULT Source(
863 [in] IDispatch *source);
865 [id(0x000003f3), propput]
866 HRESULT Source(
867 [in] BSTR source);
869 [id(0x000003f3), propget]
870 HRESULT Source(
871 [out, retval] VARIANT *source);
873 [id(0x000003f4)]
874 HRESULT AddNew(
875 [in, optional] VARIANT field_list,
876 [in, optional] VARIANT values);
878 [id(0x000003f5)]
879 HRESULT CancelUpdate();
881 [id(0x000003f6)]
882 HRESULT Close();
884 [id(0x000003f7)]
885 HRESULT Delete(
886 [in, defaultvalue(adAffectCurrent)] AffectEnum affect_records);
888 [id(0x000003f8)]
889 HRESULT GetRows(
890 [in, defaultvalue(-1)] LONG rows,
891 [in, optional] VARIANT start,
892 [in, optional] VARIANT fields,
893 [out, retval] VARIANT *var);
895 [id(0x000003f9)]
896 HRESULT Move(
897 [in] LONG num_records,
898 [in, optional] VARIANT start);
900 [id(0x000003fa)]
901 HRESULT MoveNext();
903 [id(0x000003fb)]
904 HRESULT MovePrevious();
906 [id(0x000003fc)]
907 HRESULT MoveFirst();
909 [id(0x000003fd)]
910 HRESULT MoveLast();
912 [id(0x000003fe)]
913 HRESULT Open(
914 [in, optional] VARIANT source,
915 [in, optional] VARIANT active_connection,
916 [in, defaultvalue(adOpenUnspecified)] CursorTypeEnum cursor_type,
917 [in, defaultvalue(adLockUnspecified)] LockTypeEnum lock_type,
918 [in, defaultvalue(-1)] LONG options);
920 [id(0x000003ff)]
921 HRESULT Requery(
922 [in, defaultvalue(-1)] LONG options);
924 [id(0x60030022), hidden]
925 HRESULT _xResync(
926 [in, defaultvalue(adAffectAll)] AffectEnum affect_records);
928 [id(0x00000401)]
929 HRESULT Update(
930 [in, optional] VARIANT fields,
931 [in, optional] VARIANT values);
933 [id(0x00000417), propget]
934 HRESULT AbsolutePage(
935 [out, retval] PositionEnum_Param *position);
937 [id(0x00000417), propput]
938 HRESULT AbsolutePage(
939 [in] PositionEnum_Param position);
941 [id(0x00000402), propget]
942 HRESULT EditMode(
943 [out, retval] EditModeEnum *mode);
945 [id(0x00000406), propget]
946 HRESULT Filter(
947 [out, retval] VARIANT *criteria);
949 [id(0x00000406), propput]
950 HRESULT Filter(
951 [in] VARIANT criteria);
953 [id(0x0000041a), propget]
954 HRESULT PageCount(
955 [out, retval] LONG *count);
957 [id(0x00000418), propget]
958 HRESULT PageSize(
959 [out, retval] LONG *size);
961 [id(0x00000418), propput]
962 HRESULT PageSize(
963 [in] LONG size);
965 [id(0x00000407), propget]
966 HRESULT Sort(
967 [out, retval] BSTR *criteria);
969 [id(0x00000407), propput]
970 HRESULT Sort(
971 [in] BSTR criteria);
973 [id(0x00000405), propget]
974 HRESULT Status(
975 [out, retval] LONG *status);
977 [id(0x0000041e), propget]
978 HRESULT State(
979 [out, retval] LONG *state);
981 [id(0x60030030), hidden]
982 HRESULT _xClone(
983 [out, retval] _Recordset **object);
985 [id(0x0000040b)]
986 HRESULT UpdateBatch(
987 [in, defaultvalue(adAffectAll)] AffectEnum affect_records);
989 [id(0x00000419)]
990 HRESULT CancelBatch(
991 [in, defaultvalue(adAffectAll)] AffectEnum affect_records);
993 [id(0x0000041b), propget]
994 HRESULT CursorLocation(
995 [out, retval] CursorLocationEnum *cursor_loc);
997 [id(0x0000041b), propput]
998 HRESULT CursorLocation(
999 [in] CursorLocationEnum cursor_loc);
1001 [id(0x0000041c)]
1002 HRESULT NextRecordset(
1003 [out, optional] VARIANT *records_affected,
1004 [out, retval] _Recordset **record_set);
1006 [id(0x0000040c)]
1007 HRESULT Supports(
1008 [in] CursorOptionEnum cursor_options,
1009 [out, retval] VARIANT_BOOL *ret);
1011 [id(0xfffffff8), propget, hidden]
1012 HRESULT Collect(
1013 [in] VARIANT index,
1014 [out, retval] VARIANT *var);
1016 [id(0xfffffff8), propput, hidden]
1017 HRESULT Collect(
1018 [in] VARIANT index,
1019 [in] VARIANT var);
1021 [id(0x0000041d), propget]
1022 HRESULT MarshalOptions(
1023 [out, retval] MarshalOptionsEnum *options);
1025 [id(0x0000041d), propput]
1026 HRESULT MarshalOptions(
1027 [in] MarshalOptionsEnum options);
1029 [id(0x00000422)]
1030 HRESULT Find(
1031 [in] BSTR criteria,
1032 [in, defaultvalue(0)] LONG skip_records,
1033 [in, defaultvalue(adSearchForward)] SearchDirectionEnum search_direction,
1034 [in, optional] VARIANT start);
1038 uuid(0000054f-0000-0010-8000-00aa006d2ea4),
1039 odl,
1040 dual,
1041 nonextensible,
1042 oleautomation
1044 interface Recordset20 : Recordset15
1046 [id(0x0000041f)]
1047 HRESULT Cancel();
1049 [id(0x00000420), propget]
1050 HRESULT DataSource(
1051 [out, retval] IUnknown **data_source);
1053 [id(0x00000420), propputref]
1054 HRESULT DataSource(
1055 [in] IUnknown *data_source);
1057 [hidden]
1058 HRESULT _xSave(
1059 [in, optional] BSTR filename,
1060 [in, defaultvalue(adPersistADTG)] PersistFormatEnum persist_format);
1062 [id(0x00000425), propget]
1063 HRESULT ActiveCommand(
1064 [out, retval] IDispatch **cmd);
1066 [id(0x00000427), propput]
1067 HRESULT StayInSync(
1068 [in] VARIANT_BOOL stay_in_sync);
1070 [id(0x00000427), propget]
1071 HRESULT StayInSync(
1072 [out, retval] VARIANT_BOOL *stay_in_sync);
1074 [id(0x00000426)]
1075 HRESULT GetString(
1076 [in, defaultvalue(adClipString)] StringFormatEnum string_format,
1077 [in, defaultvalue(-1)] LONG num_rows,
1078 [in, optional] BSTR column_delimiter,
1079 [in, optional] BSTR row_delimiter,
1080 [in, optional] BSTR null_expr,
1081 [out, retval] BSTR *ret_string);
1083 [id(0x00000428), propget]
1084 HRESULT DataMember(
1085 [out, retval] BSTR *data_member);
1087 [id(0x00000428), propput]
1088 HRESULT DataMember(
1089 [in] BSTR data_member);
1091 [id(0x00000429)]
1092 HRESULT CompareBookmarks(
1093 [in] VARIANT bookmark1,
1094 [in] VARIANT bookmark2,
1095 [out, retval] CompareEnum *compare);
1097 [id(0x0000040a)]
1098 HRESULT Clone(
1099 [in, defaultvalue(adLockUnspecified)] LockTypeEnum lock_type,
1100 [out, retval] _Recordset **object);
1102 [id(0x00000400)]
1103 HRESULT Resync(
1104 [in, defaultvalue(adAffectAll)] AffectEnum affect_records,
1105 [in, defaultvalue(adResyncAllValues)] ResyncEnum resync_values);
1109 uuid(00000555-0000-0010-8000-00aa006d2ea4),
1110 odl,
1111 dual,
1112 nonextensible,
1113 oleautomation
1115 interface Recordset21 : Recordset20
1117 [id(0x0000042a)]
1118 HRESULT Seek(
1119 [in] VARIANT key_values,
1120 [in, defaultvalue(adSeekFirstEQ)] SeekEnum seek_option);
1122 [id(0x0000042b), propput]
1123 HRESULT Index(
1124 [in] BSTR index);
1126 [id(0x0000042b), propget]
1127 HRESULT Index(
1128 [out, retval] BSTR *index);
1132 uuid(00000556-0000-0010-8000-00aa006d2ea4),
1133 odl,
1134 dual,
1135 nonextensible,
1136 oleautomation
1138 interface _Recordset : Recordset21
1140 [id(0x00000421)]
1141 HRESULT Save(
1142 [in, optional] VARIANT destination,
1143 [in, defaultvalue(adPersistADTG)] PersistFormatEnum persist_format);
1147 uuid(00000500-0000-0010-8000-00aa006d2ea4),
1148 odl,
1149 dual,
1150 nonextensible,
1151 oleautomation
1153 interface Error : IDispatch
1155 [id(0x60020000), propget]
1156 HRESULT Number(
1157 [out, retval] LONG *number);
1159 [id(0x60020001), propget]
1160 HRESULT Source(
1161 [out, retval] BSTR *str);
1163 [id(00000000), propget]
1164 HRESULT Description(
1165 [out, retval] BSTR *str);
1167 [id(0x60020003), propget]
1168 HRESULT HelpFile(
1169 [out, retval] BSTR *str);
1171 [id(0x60020004), propget]
1172 HRESULT HelpContext(
1173 [out, retval] LONG *ctx);
1175 [id(0x60020005), propget]
1176 HRESULT SQLState(
1177 [out, retval] BSTR *str);
1179 [id(0x60020006), propget]
1180 HRESULT NativeError(
1181 [out, retval] LONG *error);
1185 uuid(00000501-0000-0010-8000-00aa006d2ea4),
1186 odl,
1187 dual,
1188 nonextensible,
1189 oleautomation
1191 interface Errors : _Collection
1193 [id(00000000), propget]
1194 HRESULT Item(
1195 [in] VARIANT index,
1196 [out, retval] Error **object);
1198 [id(0x60030001)]
1199 HRESULT Clear();
1203 uuid(00000515-0000-0010-8000-00aa006d2ea4),
1204 odl,
1205 dual,
1206 oleautomation
1208 interface Connection15 : _ADO
1210 [id(00000000), propget]
1211 HRESULT ConnectionString(
1212 [out, retval] BSTR *str);
1214 [id(00000000), propput]
1215 HRESULT ConnectionString(
1216 [in] BSTR str);
1218 [id(0x00000002), propget]
1219 HRESULT CommandTimeout(
1220 [out, retval] LONG *timeout);
1222 [id(0x00000002), propput]
1223 HRESULT CommandTimeout(
1224 [in] LONG timeout);
1226 [id(0x00000003), propget]
1227 HRESULT ConnectionTimeout(
1228 [out, retval] LONG *timeout);
1230 [id(0x00000003), propput]
1231 HRESULT ConnectionTimeout(
1232 [in] LONG timeout);
1234 [id(0x00000004), propget]
1235 HRESULT Version(
1236 [out, retval] BSTR *str);
1238 [id(0x00000005)]
1239 HRESULT Close();
1241 [id(0x00000006)]
1242 HRESULT Execute(
1243 [in] BSTR command,
1244 [out, optional] VARIANT *records_affected,
1245 [in, defaultvalue(-1)] LONG options,
1246 [out, retval] _Recordset **record_set);
1248 [id(0x00000007)]
1249 HRESULT BeginTrans(
1250 [out, retval] LONG *transaction_level);
1252 [id(0x00000008)]
1253 HRESULT CommitTrans();
1255 [id(0x00000009)]
1256 HRESULT RollbackTrans();
1258 [id(0x0000000a)]
1259 HRESULT Open(
1260 [in, defaultvalue("")] BSTR connection_str,
1261 [in, defaultvalue("")] BSTR user_id,
1262 [in, defaultvalue("")] BSTR password,
1263 [in, defaultvalue(-1)] LONG options);
1265 [id(0x0000000b), propget]
1266 HRESULT Errors(
1267 [out, retval] Errors **object);
1269 [id(0x0000000c), propget]
1270 HRESULT DefaultDatabase(
1271 [out, retval] BSTR *str);
1273 [id(0x0000000c), propput]
1274 HRESULT DefaultDatabase(
1275 [in] BSTR str);
1277 [id(0x0000000d), propget]
1278 HRESULT IsolationLevel(
1279 [out, retval] IsolationLevelEnum *level);
1281 [id(0x0000000d), propput]
1282 HRESULT IsolationLevel(
1283 [in] IsolationLevelEnum level);
1285 [id(0x0000000e), propget]
1286 HRESULT Attributes(
1287 [out, retval] LONG *attr);
1289 [id(0x0000000e), propput]
1290 HRESULT Attributes(
1291 [in] LONG attr);
1293 [id(0x0000000f), propget]
1294 HRESULT CursorLocation(
1295 [out, retval] CursorLocationEnum *cursor_loc);
1297 [id(0x0000000f), propput]
1298 HRESULT CursorLocation(
1299 [in] CursorLocationEnum cursor_loc);
1301 [id(0x00000010), propget]
1302 HRESULT Mode(
1303 [out, retval] ConnectModeEnum *mode);
1305 [id(0x00000010), propput]
1306 HRESULT Mode(
1307 [in] ConnectModeEnum mode);
1309 [id(0x00000011), propget]
1310 HRESULT Provider(
1311 [out, retval] BSTR *str);
1313 [id(0x00000011), propput]
1314 HRESULT Provider(
1315 [in] BSTR str);
1317 [id(0x00000012), propget]
1318 HRESULT State(
1319 [out, retval] LONG *state);
1321 [id(0x00000013)]
1322 HRESULT OpenSchema(
1323 [in] SchemaEnum schema,
1324 [in, optional] VARIANT restrictions,
1325 [in, optional] VARIANT schema_id,
1326 [out, retval] _Recordset **record_set);
1330 uuid(00000550-0000-0010-8000-00aa006d2ea4),
1331 odl,
1332 dual,
1333 oleautomation
1335 interface _Connection : Connection15
1337 [id(0x00000015)]
1338 HRESULT Cancel();
1342 uuid(0000050c-0000-0010-8000-00aa006d2ea4),
1343 odl,
1344 dual,
1345 nonextensible,
1346 oleautomation
1348 interface _Parameter : _ADO
1350 [id(0x60030000), propget]
1351 HRESULT Name(
1352 [out, retval] BSTR *str);
1354 [id(0x60030000), propput]
1355 HRESULT Name(
1356 [in] BSTR str);
1358 [id(00000000), propget]
1359 HRESULT Value(
1360 [out, retval] VARIANT *val);
1362 [id(00000000), propput]
1363 HRESULT Value(
1364 [in] VARIANT val);
1366 [id(0x60030004), propget]
1367 HRESULT Type(
1368 [out, retval] DataTypeEnum *data_type);
1370 [id(0x60030004), propput]
1371 HRESULT Type(
1372 [in] DataTypeEnum data_type);
1374 [id(0x60030006), propput]
1375 HRESULT Direction(
1376 [in] ParameterDirectionEnum direction);
1378 [id(0x60030006), propget]
1379 HRESULT Direction(
1380 [out, retval] ParameterDirectionEnum *direction);
1382 [id(0x60030008), propput]
1383 HRESULT Precision(
1384 [in] unsigned char precision);
1386 [id(0x60030008), propget]
1387 HRESULT Precision(
1388 [out, retval] unsigned char *precision);
1390 [id(0x6003000a), propput]
1391 HRESULT NumericScale(
1392 [in] unsigned char scale);
1394 [id(0x6003000a), propget]
1395 HRESULT NumericScale(
1396 [out, retval] unsigned char *scale);
1398 [id(0x6003000c), propput]
1399 HRESULT Size(
1400 [in] LONG size);
1402 [id(0x6003000c), propget]
1403 HRESULT Size(
1404 [out, retval] LONG *size);
1406 [id(0x6003000e)]
1407 HRESULT AppendChunk(
1408 [in] VARIANT val);
1410 [id(0x6003000f), propget]
1411 HRESULT Attributes(
1412 [out, retval] LONG *attrs);
1414 [id(0x6003000f), propput]
1415 HRESULT Attributes(
1416 [in] LONG attrs);
1420 uuid(00000513-0000-0010-8000-00aa006d2ea4),
1421 odl,
1422 dual,
1423 nonextensible,
1424 oleautomation
1426 interface _DynaCollection : _Collection
1428 [id(0x60030000)]
1429 HRESULT Append(
1430 [in] IDispatch *object);
1432 [id(0x60030001)]
1433 HRESULT Delete(
1434 [in] VARIANT index);
1438 uuid(0000050d-0000-0010-8000-00aa006d2ea4),
1439 odl,
1440 dual,
1441 nonextensible,
1442 oleautomation
1444 interface Parameters : _DynaCollection
1446 [id(00000000), propget]
1447 HRESULT Item(
1448 [in] VARIANT index,
1449 [out, retval] _Parameter **object);
1453 uuid(00000508-0000-0010-8000-00aa006d2ea4),
1454 odl,
1455 dual,
1456 nonextensible,
1457 oleautomation
1459 interface Command15 : _ADO
1461 [id(0x60030000), propget]
1462 HRESULT ActiveConnection(
1463 [out, retval] _Connection **object);
1465 [id(0x60030000), propputref]
1466 HRESULT ActiveConnection(
1467 [in] _Connection *object);
1469 [id(0x60030000), propput]
1470 HRESULT ActiveConnection(
1471 [in] VARIANT object);
1473 [id(0x60030003), propget]
1474 HRESULT CommandText(
1475 [out, retval] BSTR *str);
1477 [id(0x60030003), propput]
1478 HRESULT CommandText(
1479 [in] BSTR str);
1481 [id(0x60030005), propget]
1482 HRESULT CommandTimeout(
1483 [out, retval] LONG *timeout);
1485 [id(0x60030005), propput]
1486 HRESULT CommandTimeout(
1487 [in] LONG timeout);
1489 [id(0x60030007), propget]
1490 HRESULT Prepared(
1491 [out, retval] VARIANT_BOOL *prepared);
1493 [id(0x60030007), propput]
1494 HRESULT Prepared(
1495 [in] VARIANT_BOOL prepared);
1497 [id(0x60030009)]
1498 HRESULT Execute(
1499 [out, optional] VARIANT *records_affected,
1500 [in, optional] VARIANT *parameters,
1501 [in, defaultvalue(-1)] LONG options,
1502 [out, retval] _Recordset **record_set);
1504 [id(0x6003000a)]
1505 HRESULT CreateParameter(
1506 [in, defaultvalue("")] BSTR name,
1507 [in, defaultvalue(adEmpty)] DataTypeEnum type,
1508 [in, defaultvalue(adParamInput)] ParameterDirectionEnum direction,
1509 [in, defaultvalue(0)] LONG size,
1510 [in, optional] VARIANT value,
1511 [out, retval] _Parameter **parameter);
1513 [id(00000000), propget]
1514 HRESULT Parameters(
1515 [out, retval] Parameters **object);
1517 [id(0x6003000c), propput]
1518 HRESULT CommandType(
1519 [in] CommandTypeEnum cmd_type);
1521 [id(0x6003000c), propget]
1522 HRESULT CommandType(
1523 [out, retval] CommandTypeEnum *cmd_type);
1525 [id(0x6003000e), propget]
1526 HRESULT Name(
1527 [out, retval] BSTR *name);
1529 [id(0x6003000e), propput]
1530 HRESULT Name(
1531 [in] BSTR name);
1535 uuid(0000054e-0000-0010-8000-00aa006d2ea4),
1536 odl,
1537 dual,
1538 nonextensible,
1539 oleautomation
1541 interface Command25 : Command15
1543 [id(0x60030010), propget]
1544 HRESULT State(
1545 [out, retval] LONG *state);
1547 [id(0x60030011)]
1548 HRESULT Cancel();
1552 uuid(b08400bd-f9d1-4d02-b856-71d5dba123e9),
1553 odl,
1554 dual,
1555 nonextensible,
1556 oleautomation
1558 interface _Command : Command25
1560 [id(0x60030012), propputref]
1561 HRESULT CommandStream(
1562 [in] IUnknown *stream);
1564 [id(0x60030012), propget]
1565 HRESULT CommandStream(
1566 [out, retval] VARIANT *stream);
1568 [id(0x60030013), propput]
1569 HRESULT Dialect(
1570 [in] BSTR dialect);
1572 [id(0x60030013), propget]
1573 HRESULT Dialect(
1574 [out, retval] BSTR *dialect);
1576 [id(0x60030014), propput]
1577 HRESULT NamedParameters(
1578 [in] VARIANT_BOOL named_parameters);
1580 [id(0x60030014), propget]
1581 HRESULT NamedParameters(
1582 [out, retval] VARIANT_BOOL *named_parameters);
1586 uuid(00000402-0000-0010-8000-00aa006d2ea4),
1587 odl,
1588 hidden
1590 interface ConnectionEventsVt : IUnknown
1592 HRESULT InfoMessage(
1593 [in] Error *error,
1594 [in, out] EventStatusEnum *status,
1595 [in] _Connection *connection);
1597 HRESULT BeginTransComplete(
1598 [in] LONG TransactionLevel,
1599 [in] Error *error,
1600 [in, out] EventStatusEnum *status,
1601 [in] _Connection *connection);
1603 HRESULT CommitTransComplete(
1604 [in] Error *error,
1605 [in, out] EventStatusEnum *status,
1606 [in] _Connection *connection);
1608 HRESULT RollbackTransComplete(
1609 [in] Error *error,
1610 [in, out] EventStatusEnum *status,
1611 [in] _Connection *connection);
1613 HRESULT WillExecute(
1614 [in, out] BSTR *source,
1615 [in, out] CursorTypeEnum *cursor_type,
1616 [in, out] LockTypeEnum *lock_type,
1617 [in, out] LONG *options,
1618 [in, out] EventStatusEnum *status,
1619 [in] _Command *command,
1620 [in] _Recordset *record_set,
1621 [in] _Connection *connection);
1623 HRESULT ExecuteComplete(
1624 [in] LONG records_affected,
1625 [in] Error *error,
1626 [in, out] EventStatusEnum *status,
1627 [in] _Command *command,
1628 [in] _Recordset *record_set,
1629 [in] _Connection *connection);
1631 HRESULT WillConnect(
1632 [in, out] BSTR *string,
1633 [in, out] BSTR *userid,
1634 [in, out] BSTR *password,
1635 [in, out] LONG *options,
1636 [in, out] EventStatusEnum *status,
1637 [in] _Connection *connection);
1639 HRESULT ConnectComplete(
1640 [in] Error *error,
1641 [in, out] EventStatusEnum *status,
1642 [in] _Connection *connection);
1644 HRESULT Disconnect(
1645 [in, out] EventStatusEnum *status,
1646 [in] _Connection *connection);
1650 uuid(00000400-0000-0010-8000-00aa006d2ea4)
1652 dispinterface ConnectionEvents
1654 properties:
1655 methods:
1656 [id(00000000)]
1657 HRESULT InfoMessage(
1658 [in] Error *error,
1659 [in, out] EventStatusEnum *status,
1660 [in] _Connection *Connection);
1662 [id(0x00000001)]
1663 HRESULT BeginTransComplete(
1664 [in] LONG TransactionLevel,
1665 [in] Error *error,
1666 [in, out] EventStatusEnum *status,
1667 [in] _Connection *connection);
1669 [id(0x00000003)]
1670 HRESULT CommitTransComplete(
1671 [in] Error *error,
1672 [in, out] EventStatusEnum *status,
1673 [in] _Connection *connection);
1675 [id(0x00000002)]
1676 HRESULT RollbackTransComplete(
1677 [in] Error *error,
1678 [in, out] EventStatusEnum *status,
1679 [in] _Connection *connection);
1681 [id(0x00000004)]
1682 HRESULT WillExecute(
1683 [in, out] BSTR *source,
1684 [in, out] CursorTypeEnum *cursor_type,
1685 [in, out] LockTypeEnum *lock_type,
1686 [in, out] LONG *options,
1687 [in, out] EventStatusEnum *status,
1688 [in] _Command *command,
1689 [in] _Recordset *record_set,
1690 [in] _Connection *connection);
1692 [id(0x00000005)]
1693 HRESULT ExecuteComplete(
1694 [in] LONG records_affected,
1695 [in] Error *error,
1696 [in, out] EventStatusEnum *status,
1697 [in] _Command *command,
1698 [in] _Recordset *record_set,
1699 [in] _Connection *connection);
1701 [id(0x00000006)]
1702 HRESULT WillConnect(
1703 [in, out] BSTR *string,
1704 [in, out] BSTR *userid,
1705 [in, out] BSTR *password,
1706 [in, out] LONG *options,
1707 [in, out] EventStatusEnum *status,
1708 [in] _Connection *connection);
1710 [id(0x00000007)]
1711 HRESULT ConnectComplete(
1712 [in] Error *error,
1713 [in, out] EventStatusEnum *status,
1714 [in] _Connection *connection);
1716 [id(0x00000008)]
1717 HRESULT Disconnect(
1718 [in, out] EventStatusEnum *status,
1719 [in] _Connection *connection);
1723 uuid(00000562-0000-0010-8000-00aa006d2ea4),
1724 odl,
1725 dual,
1726 nonextensible,
1727 oleautomation
1729 interface _Record : _ADO
1731 [id(1), propget]
1732 HRESULT ActiveConnection(
1733 [out, retval] VARIANT *connection);
1735 [id(1), propput]
1736 HRESULT ActiveConnection(
1737 [in] BSTR connection);
1739 [id(1), propputref]
1740 HRESULT ActiveConnection(
1741 [in] _Connection *connection);
1743 [id(2), propget]
1744 HRESULT State(
1745 [out, retval] ObjectStateEnum *state);
1747 [id(3), propget]
1748 HRESULT Source(
1749 [out, retval] VARIANT *source);
1751 [id(3), propput]
1752 HRESULT Source(
1753 [in] BSTR source);
1755 [id(3), propputref]
1756 HRESULT Source(
1757 [in] IDispatch *source);
1759 [id(4), propget]
1760 HRESULT Mode(
1761 [out, retval] ConnectModeEnum *mode);
1763 [id(4), propput]
1764 HRESULT Mode(
1765 [in] ConnectModeEnum mode);
1767 [id(5), propget]
1768 HRESULT ParentURL(
1769 [out, retval] BSTR *parent_URL);
1771 [id(6)]
1772 HRESULT MoveRecord(
1773 [in, defaultvalue("")] BSTR source,
1774 [in, defaultvalue("")] BSTR Destination,
1775 [in, optional] BSTR UserName,
1776 [in, optional] BSTR Password,
1777 [in, defaultvalue(adMoveUnspecified)] MoveRecordOptionsEnum Options,
1778 [in, optional] VARIANT_BOOL Async,
1779 [out, retval] BSTR *pbstrNewURL);
1781 [id(7)]
1782 HRESULT CopyRecord(
1783 [in, defaultvalue("")] BSTR source,
1784 [in, defaultvalue("")] BSTR destination,
1785 [in, optional] BSTR username,
1786 [in, optional] BSTR password,
1787 [in, defaultvalue(adCopyUnspecified)] CopyRecordOptionsEnum options,
1788 [in, optional] VARIANT_BOOL async,
1789 [out, retval] BSTR *new_URL);
1791 [id(8)]
1792 HRESULT DeleteRecord(
1793 [in] BSTR source,
1794 [in, optional] VARIANT_BOOL async);
1796 [id(9)]
1797 HRESULT Open(
1798 [in, optional] VARIANT source,
1799 [in, optional] VARIANT active_connection,
1800 [in, optional] ConnectModeEnum mode,
1801 [in, defaultvalue(adFailIfNotExists)] RecordCreateOptionsEnum create_options,
1802 [in, defaultvalue(adOpenRecordUnspecified)] RecordOpenOptionsEnum options,
1803 [in, optional] BSTR username,
1804 [in, optional] BSTR password);
1806 [id(10)]
1807 HRESULT Close();
1809 [id(0), propget]
1810 HRESULT Fields(
1811 [out, retval] Fields **fields);
1813 [id(11), propget]
1814 HRESULT RecordType(
1815 [out, retval] RecordTypeEnum *type);
1817 [id(12)]
1818 HRESULT GetChildren(
1819 [out, retval] _Recordset **record_set);
1821 [id(13)]
1822 HRESULT Cancel();
1826 uuid(00000565-0000-0010-8000-00aa006d2ea4),
1827 odl,
1828 dual,
1829 nonextensible,
1830 oleautomation
1832 interface _Stream : IDispatch
1834 [id(1), propget]
1835 HRESULT Size(
1836 [out, retval] LONG *size);
1838 [id(2), propget]
1839 HRESULT EOS(
1840 [out, retval] VARIANT_BOOL *eos);
1842 [id(3), propget]
1843 HRESULT Position(
1844 [out, retval] LONG *position);
1846 [id(3), propput]
1847 HRESULT Position(
1848 [in] LONG position);
1850 [id(4), propget]
1851 HRESULT Type(
1852 [out, retval] StreamTypeEnum *type);
1854 [id(4), propput]
1855 HRESULT Type(
1856 [in] StreamTypeEnum type);
1858 [id(5), propget]
1859 HRESULT LineSeparator(
1860 [out, retval] LineSeparatorEnum *separator);
1862 [id(5), propput]
1863 HRESULT LineSeparator(
1864 [in] LineSeparatorEnum separator);
1866 [id(6), propget]
1867 HRESULT State(
1868 [out, retval] ObjectStateEnum *state);
1870 [id(7), propget]
1871 HRESULT Mode(
1872 [out, retval] ConnectModeEnum *mode);
1874 [id(7), propput]
1875 HRESULT Mode(
1876 [in] ConnectModeEnum mode);
1878 [id(8), propget]
1879 HRESULT Charset(
1880 [out, retval] BSTR *charset);
1882 [id(8), propput]
1883 HRESULT Charset(
1884 [in] BSTR charset);
1886 [id(9)]
1887 HRESULT Read(
1888 [in, defaultvalue(adReadAll)] LONG num_bytes,
1889 [out, retval] VARIANT *val);
1891 [id(10)]
1892 HRESULT Open(
1893 [in, optional] VARIANT source,
1894 [in, defaultvalue(adModeUnknown)] ConnectModeEnum mode,
1895 [in, defaultvalue(adOpenStreamUnspecified)] StreamOpenOptionsEnum options,
1896 [in, optional] BSTR username,
1897 [in, optional] BSTR password);
1899 [id(11)]
1900 HRESULT Close(void);
1902 [id(12)]
1903 HRESULT SkipLine(void);
1905 [id(13)]
1906 HRESULT Write(
1907 [in] VARIANT buffer);
1909 [id(14)]
1910 HRESULT SetEOS(void);
1912 [id(15)]
1913 HRESULT CopyTo(
1914 [in] _Stream *dest,
1915 [in, defaultvalue(-1)] LONG size);
1917 [id(16)]
1918 HRESULT Flush(void);
1920 [id(17)]
1921 HRESULT SaveToFile(
1922 [in] BSTR FileName,
1923 [in, defaultvalue(adSaveCreateNotExist)] SaveOptionsEnum options);
1925 [id(18)]
1926 HRESULT LoadFromFile(
1927 [in] BSTR filename);
1929 [id(19)]
1930 HRESULT ReadText(
1931 [in, defaultvalue(adReadAll)] LONG size,
1932 [out, retval] BSTR *str);
1934 [id(20)]
1935 HRESULT WriteText(
1936 [in] BSTR data,
1937 [in, defaultvalue(adWriteChar)] StreamWriteEnum options);
1939 [id(21)]
1940 HRESULT Cancel(void);
1944 uuid(00000266-0000-0010-8000-00aa006d2ea4)
1946 dispinterface RecordsetEvents
1948 properties:
1949 methods:
1950 [id(0x00000009)]
1951 HRESULT WillChangeField(
1952 [in] LONG count,
1953 [in] VARIANT fields,
1954 [in, out] EventStatusEnum *status,
1955 [in] _Recordset *record_set);
1957 [id(0x0000000a)]
1958 HRESULT FieldChangeComplete(
1959 [in] LONG count,
1960 [in] VARIANT fields,
1961 [in] Error *error,
1962 [in, out] EventStatusEnum *status,
1963 [in] _Recordset *record_set);
1965 [id(0x0000000b)]
1966 HRESULT WillChangeRecord(
1967 [in] EventReasonEnum reason,
1968 [in] LONG count,
1969 [in, out] EventStatusEnum *status,
1970 [in] _Recordset *record_set);
1972 [id(0x0000000c)]
1973 HRESULT RecordChangeComplete(
1974 [in] EventReasonEnum reason,
1975 [in] LONG count,
1976 [in] Error *error,
1977 [in, out] EventStatusEnum *status,
1978 [in] _Recordset *record_set);
1980 [id(0x0000000d)]
1981 HRESULT WillChangeRecordset(
1982 [in] EventReasonEnum reason,
1983 [in, out] EventStatusEnum *status,
1984 [in] _Recordset *record_set);
1986 [id(0x0000000e)]
1987 HRESULT RecordsetChangeComplete(
1988 [in] EventReasonEnum reason,
1989 [in] Error *error,
1990 [in, out] EventStatusEnum *status,
1991 [in] _Recordset *record_set);
1993 [id(0x0000000f)]
1994 HRESULT WillMove(
1995 [in] EventReasonEnum reason,
1996 [in, out] EventStatusEnum *status,
1997 [in] _Recordset *record_set);
1999 [id(0x00000010)]
2000 HRESULT MoveComplete(
2001 [in] EventReasonEnum reason,
2002 [in] Error *error,
2003 [in, out] EventStatusEnum *status,
2004 [in] _Recordset *record_set);
2006 [id(0x00000011)]
2007 HRESULT EndOfRecordset(
2008 [in, out] VARIANT_BOOL *more_data,
2009 [in, out] EventStatusEnum *status,
2010 [in] _Recordset *record_set);
2012 [id(0x00000012)]
2013 HRESULT FetchProgress(
2014 [in] LONG progress,
2015 [in] LONG max_progress,
2016 [in, out] EventStatusEnum *status,
2017 [in] _Recordset *record_set);
2019 [id(0x00000013)]
2020 HRESULT FetchComplete(
2021 [in] Error *error,
2022 [in, out] EventStatusEnum *status,
2023 [in] _Recordset *record_set);
2027 uuid(00000538-0000-0010-8000-00aa006d2ea4),
2028 odl,
2029 hidden
2031 interface ADODebugging : IUnknown
2033 HRESULT IsGlobalDebugMode(
2034 VARIANT_BOOL *debugging_on);
2036 HRESULT SetGlobalDebugMode(
2037 IUnknown *debugger,
2038 VARIANT_BOOL debugging_on);
2042 uuid(00000516-0000-0010-8000-00aa006d2ea4),
2043 odl,
2044 restricted
2046 interface ADOConnectionConstruction15 : IUnknown
2048 [propget]
2049 HRESULT DSO(
2050 [out, retval] IUnknown **dso);
2052 [propget]
2053 HRESULT Session(
2054 [out, retval] IUnknown **session);
2056 HRESULT WrapDSOandSession(
2057 [in] IUnknown *dso,
2058 [in] IUnknown *session);
2062 uuid(00000551-0000-0010-8000-00aa006d2ea4),
2063 odl,
2064 restricted
2066 interface ADOConnectionConstruction : ADOConnectionConstruction15
2071 uuid(00000517-0000-0010-8000-00aa006d2ea4),
2072 odl,
2073 restricted
2075 interface ADOCommandConstruction : IUnknown
2077 [propget]
2078 HRESULT OLEDBCommand(
2079 [out, retval] IUnknown **command);
2081 [propput]
2082 HRESULT OLEDBCommand(
2083 [in] IUnknown *command);
2087 uuid(00000283-0000-0010-8000-00aa006d2ea4),
2088 odl,
2089 restricted
2091 interface ADORecordsetConstruction : IDispatch
2093 [propget]
2094 HRESULT Rowset(
2095 [out, retval] IUnknown **row_set);
2097 [propput]
2098 HRESULT Rowset(
2099 [in] IUnknown *row_set);
2101 [propget]
2102 HRESULT Chapter(
2103 [out, retval] LONG *chapter);
2105 [propput]
2106 HRESULT Chapter(
2107 [in] LONG chapter);
2109 [propget]
2110 HRESULT RowPosition(
2111 [out, retval] IUnknown **row_pos);
2113 [propput]
2114 HRESULT RowPosition(
2115 [in] IUnknown *row_pos);
2119 uuid(2a75196c-d9eb-4129-b803-931327f72d5c),
2120 version(2.8)
2122 library ADODB
2124 importlib("stdole2.tlb");
2127 uuid(00000514-0000-0010-8000-00aa006d2ea4),
2129 coclass Connection
2131 [default] interface _Connection;
2132 [default, source] dispinterface ConnectionEvents;
2136 uuid(00000507-0000-0010-8000-00aa006d2ea4),
2138 coclass Command
2140 [default] interface _Command;
2144 uuid(00000535-0000-0010-8000-00aa006d2ea4),
2146 coclass Recordset
2148 [default] interface _Recordset;
2149 [default, source] dispinterface RecordsetEvents;
2153 uuid(0000050b-0000-0010-8000-00aa006d2ea4),
2155 coclass Parameter
2157 [default] interface _Parameter;
2161 uuid(00000560-0000-0010-8000-00aa006d2ea4),
2163 coclass Record
2165 [default] interface _Record;
2169 uuid(00000566-0000-0010-8000-00aa006d2ea4),
2171 coclass Stream
2173 [default] interface _Stream;