Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

5078 lines
160 KiB

  1. // Created by Microsoft (R) C/C++ Compiler Version 12.00.8472.0 (7af98fa5).
  2. //
  3. // msado15.tlh
  4. //
  5. // C++ source equivalent of Win32 type library c:\Program Files\Common Files\System\ado\msado15.dll
  6. // compiler-generated file created 02/10/00 at 10:49:04 - DO NOT EDIT!
  7. #pragma once
  8. #pragma pack(push, 8)
  9. #include <comdef.h>
  10. //
  11. // Forward references and typedefs
  12. //
  13. typedef enum SearchDirectionEnum SearchDirection;
  14. struct __declspec(uuid("00000512-0000-0010-8000-00aa006d2ea4"))
  15. /* dual interface */ _Collection;
  16. struct __declspec(uuid("00000513-0000-0010-8000-00aa006d2ea4"))
  17. /* dual interface */ _DynaCollection;
  18. struct __declspec(uuid("00000534-0000-0010-8000-00aa006d2ea4"))
  19. /* dual interface */ _ADO;
  20. struct __declspec(uuid("00000504-0000-0010-8000-00aa006d2ea4"))
  21. /* dual interface */ Properties;
  22. struct __declspec(uuid("00000503-0000-0010-8000-00aa006d2ea4"))
  23. /* dual interface */ Property;
  24. struct __declspec(uuid("00000500-0000-0010-8000-00aa006d2ea4"))
  25. /* dual interface */ Error;
  26. struct __declspec(uuid("00000501-0000-0010-8000-00aa006d2ea4"))
  27. /* dual interface */ Errors;
  28. struct __declspec(uuid("00000508-0000-0010-8000-00aa006d2ea4"))
  29. /* dual interface */ Command15;
  30. struct __declspec(uuid("00000550-0000-0010-8000-00aa006d2ea4"))
  31. /* dual interface */ _Connection;
  32. struct __declspec(uuid("00000515-0000-0010-8000-00aa006d2ea4"))
  33. /* dual interface */ Connection15;
  34. struct __declspec(uuid("00000556-0000-0010-8000-00aa006d2ea4"))
  35. /* dual interface */ _Recordset;
  36. struct __declspec(uuid("00000555-0000-0010-8000-00aa006d2ea4"))
  37. /* dual interface */ Recordset21;
  38. struct __declspec(uuid("0000054f-0000-0010-8000-00aa006d2ea4"))
  39. /* dual interface */ Recordset20;
  40. struct __declspec(uuid("0000050e-0000-0010-8000-00aa006d2ea4"))
  41. /* dual interface */ Recordset15;
  42. struct __declspec(uuid("00000564-0000-0010-8000-00aa006d2ea4"))
  43. /* dual interface */ Fields;
  44. struct __declspec(uuid("0000054d-0000-0010-8000-00aa006d2ea4"))
  45. /* dual interface */ Fields20;
  46. struct __declspec(uuid("00000506-0000-0010-8000-00aa006d2ea4"))
  47. /* dual interface */ Fields15;
  48. struct __declspec(uuid("00000569-0000-0010-8000-00aa006d2ea4"))
  49. /* dual interface */ Field;
  50. struct __declspec(uuid("0000054c-0000-0010-8000-00aa006d2ea4"))
  51. /* dual interface */ Field20;
  52. struct __declspec(uuid("0000050c-0000-0010-8000-00aa006d2ea4"))
  53. /* dual interface */ _Parameter;
  54. struct __declspec(uuid("0000050d-0000-0010-8000-00aa006d2ea4"))
  55. /* dual interface */ Parameters;
  56. struct __declspec(uuid("0000054e-0000-0010-8000-00aa006d2ea4"))
  57. /* dual interface */ _Command;
  58. struct __declspec(uuid("00000402-0000-0010-8000-00aa006d2ea4"))
  59. /* interface */ ConnectionEventsVt;
  60. struct __declspec(uuid("00000403-0000-0010-8000-00aa006d2ea4"))
  61. /* interface */ RecordsetEventsVt;
  62. struct __declspec(uuid("00000400-0000-0010-8000-00aa006d2ea4"))
  63. /* dispinterface */ ConnectionEvents;
  64. struct __declspec(uuid("00000266-0000-0010-8000-00aa006d2ea4"))
  65. /* dispinterface */ RecordsetEvents;
  66. struct __declspec(uuid("00000516-0000-0010-8000-00aa006d2ea4"))
  67. /* interface */ ADOConnectionConstruction15;
  68. struct __declspec(uuid("00000551-0000-0010-8000-00aa006d2ea4"))
  69. /* interface */ ADOConnectionConstruction;
  70. struct /* coclass */ Connection;
  71. struct __declspec(uuid("00000562-0000-0010-8000-00aa006d2ea4"))
  72. /* dual interface */ _Record;
  73. struct /* coclass */ Record;
  74. struct __declspec(uuid("00000563-0000-0010-8000-00aa006d2ea4"))
  75. /* dual interface */ IRecFields;
  76. struct __declspec(uuid("00000565-0000-0010-8000-00aa006d2ea4"))
  77. /* dual interface */ _Stream;
  78. struct /* coclass */ Stream;
  79. struct __declspec(uuid("00000567-0000-0010-8000-00aa006d2ea4"))
  80. /* interface */ ADORecordConstruction;
  81. struct __declspec(uuid("00000568-0000-0010-8000-00aa006d2ea4"))
  82. /* interface */ ADOStreamConstruction;
  83. struct __declspec(uuid("00000517-0000-0010-8000-00aa006d2ea4"))
  84. /* interface */ ADOCommandConstruction;
  85. struct /* coclass */ Command;
  86. struct /* coclass */ Recordset;
  87. struct __declspec(uuid("00000283-0000-0010-8000-00aa006d2ea4"))
  88. /* interface */ ADORecordsetConstruction;
  89. struct __declspec(uuid("00000505-0000-0010-8000-00aa006d2ea4"))
  90. /* dual interface */ Field15;
  91. struct /* coclass */ Parameter;
  92. //
  93. // Smart pointer typedef declarations
  94. //
  95. _COM_SMARTPTR_TYPEDEF(_Collection, __uuidof(_Collection));
  96. _COM_SMARTPTR_TYPEDEF(_DynaCollection, __uuidof(_DynaCollection));
  97. _COM_SMARTPTR_TYPEDEF(_ADO, __uuidof(_ADO));
  98. _COM_SMARTPTR_TYPEDEF(Properties, __uuidof(Properties));
  99. _COM_SMARTPTR_TYPEDEF(Property, __uuidof(Property));
  100. _COM_SMARTPTR_TYPEDEF(Error, __uuidof(Error));
  101. _COM_SMARTPTR_TYPEDEF(Errors, __uuidof(Errors));
  102. _COM_SMARTPTR_TYPEDEF(Command15, __uuidof(Command15));
  103. _COM_SMARTPTR_TYPEDEF(Connection15, __uuidof(Connection15));
  104. _COM_SMARTPTR_TYPEDEF(_Connection, __uuidof(_Connection));
  105. _COM_SMARTPTR_TYPEDEF(Recordset15, __uuidof(Recordset15));
  106. _COM_SMARTPTR_TYPEDEF(Recordset20, __uuidof(Recordset20));
  107. _COM_SMARTPTR_TYPEDEF(Recordset21, __uuidof(Recordset21));
  108. _COM_SMARTPTR_TYPEDEF(_Recordset, __uuidof(_Recordset));
  109. _COM_SMARTPTR_TYPEDEF(Fields15, __uuidof(Fields15));
  110. _COM_SMARTPTR_TYPEDEF(Fields20, __uuidof(Fields20));
  111. _COM_SMARTPTR_TYPEDEF(Fields, __uuidof(Fields));
  112. _COM_SMARTPTR_TYPEDEF(Field20, __uuidof(Field20));
  113. _COM_SMARTPTR_TYPEDEF(Field, __uuidof(Field));
  114. _COM_SMARTPTR_TYPEDEF(_Parameter, __uuidof(_Parameter));
  115. _COM_SMARTPTR_TYPEDEF(Parameters, __uuidof(Parameters));
  116. _COM_SMARTPTR_TYPEDEF(_Command, __uuidof(_Command));
  117. _COM_SMARTPTR_TYPEDEF(ConnectionEventsVt, __uuidof(ConnectionEventsVt));
  118. _COM_SMARTPTR_TYPEDEF(RecordsetEventsVt, __uuidof(RecordsetEventsVt));
  119. _COM_SMARTPTR_TYPEDEF(ConnectionEvents, __uuidof(IDispatch));
  120. _COM_SMARTPTR_TYPEDEF(RecordsetEvents, __uuidof(IDispatch));
  121. _COM_SMARTPTR_TYPEDEF(ADOConnectionConstruction15, __uuidof(ADOConnectionConstruction15));
  122. _COM_SMARTPTR_TYPEDEF(ADOConnectionConstruction, __uuidof(ADOConnectionConstruction));
  123. _COM_SMARTPTR_TYPEDEF(_Record, __uuidof(_Record));
  124. _COM_SMARTPTR_TYPEDEF(IRecFields, __uuidof(IRecFields));
  125. _COM_SMARTPTR_TYPEDEF(_Stream, __uuidof(_Stream));
  126. _COM_SMARTPTR_TYPEDEF(ADORecordConstruction, __uuidof(ADORecordConstruction));
  127. _COM_SMARTPTR_TYPEDEF(ADOStreamConstruction, __uuidof(ADOStreamConstruction));
  128. _COM_SMARTPTR_TYPEDEF(ADOCommandConstruction, __uuidof(ADOCommandConstruction));
  129. _COM_SMARTPTR_TYPEDEF(ADORecordsetConstruction, __uuidof(ADORecordsetConstruction));
  130. _COM_SMARTPTR_TYPEDEF(Field15, __uuidof(Field15));
  131. //
  132. // Type library items
  133. //
  134. enum CursorTypeEnum
  135. {
  136. adOpenUnspecified = -1,
  137. adOpenForwardOnly = 0,
  138. adOpenKeyset = 1,
  139. adOpenDynamic = 2,
  140. adOpenStatic = 3
  141. };
  142. enum CursorOptionEnum
  143. {
  144. adHoldRecords = 256,
  145. adMovePrevious = 512,
  146. adAddNew = 16778240,
  147. adDelete = 16779264,
  148. adUpdate = 16809984,
  149. adBookmark = 8192,
  150. adApproxPosition = 16384,
  151. adUpdateBatch = 65536,
  152. adResync = 131072,
  153. adNotify = 262144,
  154. adFind = 524288,
  155. adSeek = 4194304,
  156. adIndex = 8388608
  157. };
  158. enum LockTypeEnum
  159. {
  160. adLockUnspecified = -1,
  161. adLockReadOnly = 1,
  162. adLockPessimistic = 2,
  163. adLockOptimistic = 3,
  164. adLockBatchOptimistic = 4
  165. };
  166. enum ExecuteOptionEnum
  167. {
  168. adOptionUnspecified = -1,
  169. adAsyncExecute = 16,
  170. adAsyncFetch = 32,
  171. adAsyncFetchNonBlocking = 64,
  172. adExecuteNoRecords = 128
  173. };
  174. enum ConnectOptionEnum
  175. {
  176. adConnectUnspecified = -1,
  177. adAsyncConnect = 16
  178. };
  179. enum ObjectStateEnum
  180. {
  181. adStateClosed = 0,
  182. adStateOpen = 1,
  183. adStateConnecting = 2,
  184. adStateExecuting = 4,
  185. adStateFetching = 8
  186. };
  187. enum CursorLocationEnum
  188. {
  189. adUseNone = 1,
  190. adUseServer = 2,
  191. adUseClient = 3,
  192. adUseClientBatch = 3
  193. };
  194. enum DataTypeEnum
  195. {
  196. adEmpty = 0,
  197. adTinyInt = 16,
  198. adSmallInt = 2,
  199. adInteger = 3,
  200. adBigInt = 20,
  201. adUnsignedTinyInt = 17,
  202. adUnsignedSmallInt = 18,
  203. adUnsignedInt = 19,
  204. adUnsignedBigInt = 21,
  205. adSingle = 4,
  206. adDouble = 5,
  207. adCurrency = 6,
  208. adDecimal = 14,
  209. adNumeric = 131,
  210. adBoolean = 11,
  211. adError = 10,
  212. adUserDefined = 132,
  213. adVariant = 12,
  214. adIDispatch = 9,
  215. adIUnknown = 13,
  216. adGUID = 72,
  217. adDate = 7,
  218. adDBDate = 133,
  219. adDBTime = 134,
  220. adDBTimeStamp = 135,
  221. adBSTR = 8,
  222. adChar = 129,
  223. adVarChar = 200,
  224. adLongVarChar = 201,
  225. adWChar = 130,
  226. adVarWChar = 202,
  227. adLongVarWChar = 203,
  228. adBinary = 128,
  229. adVarBinary = 204,
  230. adLongVarBinary = 205,
  231. adChapter = 136,
  232. adFileTime = 64,
  233. adPropVariant = 138,
  234. adVarNumeric = 139,
  235. adArray = 8192
  236. };
  237. enum FieldAttributeEnum
  238. {
  239. adFldUnspecified = -1,
  240. adFldMayDefer = 2,
  241. adFldUpdatable = 4,
  242. adFldUnknownUpdatable = 8,
  243. adFldFixed = 16,
  244. adFldIsNullable = 32,
  245. adFldMayBeNull = 64,
  246. adFldLong = 128,
  247. adFldRowID = 256,
  248. adFldRowVersion = 512,
  249. adFldCacheDeferred = 4096,
  250. adFldIsChapter = 8192,
  251. adFldNegativeScale = 16384,
  252. adFldKeyColumn = 32768,
  253. adFldIsRowURL = 65536,
  254. adFldIsDefaultStream = 131072,
  255. adFldIsCollection = 262144
  256. };
  257. enum EditModeEnum
  258. {
  259. adEditNone = 0,
  260. adEditInProgress = 1,
  261. adEditAdd = 2,
  262. adEditDelete = 4
  263. };
  264. enum RecordStatusEnum
  265. {
  266. adRecOK = 0,
  267. adRecNew = 1,
  268. adRecModified = 2,
  269. adRecDeleted = 4,
  270. adRecUnmodified = 8,
  271. adRecInvalid = 16,
  272. adRecMultipleChanges = 64,
  273. adRecPendingChanges = 128,
  274. adRecCanceled = 256,
  275. adRecCantRelease = 1024,
  276. adRecConcurrencyViolation = 2048,
  277. adRecIntegrityViolation = 4096,
  278. adRecMaxChangesExceeded = 8192,
  279. adRecObjectOpen = 16384,
  280. adRecOutOfMemory = 32768,
  281. adRecPermissionDenied = 65536,
  282. adRecSchemaViolation = 131072,
  283. adRecDBDeleted = 262144
  284. };
  285. enum GetRowsOptionEnum
  286. {
  287. adGetRowsRest = -1
  288. };
  289. enum PositionEnum
  290. {
  291. adPosUnknown = -1,
  292. adPosBOF = -2,
  293. adPosEOF = -3
  294. };
  295. enum BookmarkEnum
  296. {
  297. adBookmarkCurrent = 0,
  298. adBookmarkFirst = 1,
  299. adBookmarkLast = 2
  300. };
  301. enum MarshalOptionsEnum
  302. {
  303. adMarshalAll = 0,
  304. adMarshalModifiedOnly = 1
  305. };
  306. enum AffectEnum
  307. {
  308. adAffectCurrent = 1,
  309. adAffectGroup = 2,
  310. adAffectAll = 3,
  311. adAffectAllChapters = 4
  312. };
  313. enum ResyncEnum
  314. {
  315. adResyncUnderlyingValues = 1,
  316. adResyncAllValues = 2
  317. };
  318. enum CompareEnum
  319. {
  320. adCompareLessThan = 0,
  321. adCompareEqual = 1,
  322. adCompareGreaterThan = 2,
  323. adCompareNotEqual = 3,
  324. adCompareNotComparable = 4
  325. };
  326. enum FilterGroupEnum
  327. {
  328. adFilterNone = 0,
  329. adFilterPendingRecords = 1,
  330. adFilterAffectedRecords = 2,
  331. adFilterFetchedRecords = 3,
  332. adFilterPredicate = 4,
  333. adFilterConflictingRecords = 5
  334. };
  335. enum SearchDirectionEnum
  336. {
  337. adSearchForward = 1,
  338. adSearchBackward = -1
  339. };
  340. enum PersistFormatEnum
  341. {
  342. adPersistADTG = 0,
  343. adPersistXML = 1
  344. };
  345. enum StringFormatEnum
  346. {
  347. adClipString = 2
  348. };
  349. enum ConnectPromptEnum
  350. {
  351. adPromptAlways = 1,
  352. adPromptComplete = 2,
  353. adPromptCompleteRequired = 3,
  354. adPromptNever = 4
  355. };
  356. enum ConnectModeEnum
  357. {
  358. adModeUnknown = 0,
  359. adModeRead = 1,
  360. adModeWrite = 2,
  361. adModeReadWrite = 3,
  362. adModeShareDenyRead = 4,
  363. adModeShareDenyWrite = 8,
  364. adModeShareExclusive = 12,
  365. adModeShareDenyNone = 16,
  366. adModeRecursive = 4194304
  367. };
  368. enum RecordCreateOptionsEnum
  369. {
  370. adCreateCollection = 8192,
  371. adCreateStructDoc = -2147483648,
  372. adCreateNonCollection = 0,
  373. adOpenIfExists = 33554432,
  374. adCreateOverwrite = 67108864,
  375. adFailIfNotExists = -1
  376. };
  377. enum RecordOpenOptionsEnum
  378. {
  379. adOpenRecordUnspecified = -1,
  380. adOpenSource = 8388608,
  381. adOpenAsync = 4096,
  382. adDelayFetchStream = 16384,
  383. adDelayFetchFields = 32768
  384. };
  385. enum IsolationLevelEnum
  386. {
  387. adXactUnspecified = -1,
  388. adXactChaos = 16,
  389. adXactReadUncommitted = 256,
  390. adXactBrowse = 256,
  391. adXactCursorStability = 4096,
  392. adXactReadCommitted = 4096,
  393. adXactRepeatableRead = 65536,
  394. adXactSerializable = 1048576,
  395. adXactIsolated = 1048576
  396. };
  397. enum XactAttributeEnum
  398. {
  399. adXactCommitRetaining = 131072,
  400. adXactAbortRetaining = 262144,
  401. adXactAsyncPhaseOne = 524288,
  402. adXactSyncPhaseOne = 1048576
  403. };
  404. enum PropertyAttributesEnum
  405. {
  406. adPropNotSupported = 0,
  407. adPropRequired = 1,
  408. adPropOptional = 2,
  409. adPropRead = 512,
  410. adPropWrite = 1024
  411. };
  412. enum ErrorValueEnum
  413. {
  414. adErrProviderFailed = 3000,
  415. adErrInvalidArgument = 3001,
  416. adErrOpeningFile = 3002,
  417. adErrReadFile = 3003,
  418. adErrWriteFile = 3004,
  419. adErrNoCurrentRecord = 3021,
  420. adErrIllegalOperation = 3219,
  421. adErrCantChangeProvider = 3220,
  422. adErrInTransaction = 3246,
  423. adErrFeatureNotAvailable = 3251,
  424. adErrItemNotFound = 3265,
  425. adErrObjectInCollection = 3367,
  426. adErrObjectNotSet = 3420,
  427. adErrDataConversion = 3421,
  428. adErrObjectClosed = 3704,
  429. adErrObjectOpen = 3705,
  430. adErrProviderNotFound = 3706,
  431. adErrBoundToCommand = 3707,
  432. adErrInvalidParamInfo = 3708,
  433. adErrInvalidConnection = 3709,
  434. adErrNotReentrant = 3710,
  435. adErrStillExecuting = 3711,
  436. adErrOperationCancelled = 3712,
  437. adErrStillConnecting = 3713,
  438. adErrInvalidTransaction = 3714,
  439. adErrNotExecuting = 3715,
  440. adErrUnsafeOperation = 3716,
  441. adwrnSecurityDialog = 3717,
  442. adwrnSecurityDialogHeader = 3718,
  443. adErrIntegrityViolation = 3719,
  444. adErrPermissionDenied = 3720,
  445. adErrDataOverflow = 3721,
  446. adErrSchemaViolation = 3722,
  447. adErrSignMismatch = 3723,
  448. adErrCantConvertvalue = 3724,
  449. adErrCantCreate = 3725,
  450. adErrColumnNotOnThisRow = 3726,
  451. adErrURLDoesNotExist = 3727,
  452. adErrTreePermissionDenied = 3728,
  453. adErrInvalidURL = 3729,
  454. adErrResourceLocked = 3730,
  455. adErrResourceExists = 3731,
  456. adErrCannotComplete = 3732,
  457. adErrVolumeNotFound = 3733,
  458. adErrOutOfSpace = 3734,
  459. adErrResourceOutOfScope = 3735,
  460. adErrUnavailable = 3736,
  461. adErrURLNamedRowDoesNotExist = 3737,
  462. adErrDelResOutOfScope = 3738,
  463. adErrPropInvalidColumn = 3739,
  464. adErrPropInvalidOption = 3740,
  465. adErrPropInvalidValue = 3741,
  466. adErrPropConflicting = 3742,
  467. adErrPropNotAllSettable = 3743,
  468. adErrPropNotSet = 3744,
  469. adErrPropNotSettable = 3745,
  470. adErrPropNotSupported = 3746,
  471. adErrCatalogNotSet = 3747,
  472. adErrCantChangeConnection = 3748,
  473. adErrFieldsUpdateFailed = 3749,
  474. adErrDenyNotSupported = 3750,
  475. adErrDenyTypeNotSupported = 3751
  476. };
  477. enum ParameterAttributesEnum
  478. {
  479. adParamSigned = 16,
  480. adParamNullable = 64,
  481. adParamLong = 128
  482. };
  483. enum ParameterDirectionEnum
  484. {
  485. adParamUnknown = 0,
  486. adParamInput = 1,
  487. adParamOutput = 2,
  488. adParamInputOutput = 3,
  489. adParamReturnValue = 4
  490. };
  491. enum CommandTypeEnum
  492. {
  493. adCmdUnspecified = -1,
  494. adCmdUnknown = 8,
  495. adCmdText = 1,
  496. adCmdTable = 2,
  497. adCmdStoredProc = 4,
  498. adCmdFile = 256,
  499. adCmdTableDirect = 512
  500. };
  501. enum EventStatusEnum
  502. {
  503. adStatusOK = 1,
  504. adStatusErrorsOccurred = 2,
  505. adStatusCantDeny = 3,
  506. adStatusCancel = 4,
  507. adStatusUnwantedEvent = 5
  508. };
  509. enum EventReasonEnum
  510. {
  511. adRsnAddNew = 1,
  512. adRsnDelete = 2,
  513. adRsnUpdate = 3,
  514. adRsnUndoUpdate = 4,
  515. adRsnUndoAddNew = 5,
  516. adRsnUndoDelete = 6,
  517. adRsnRequery = 7,
  518. adRsnResynch = 8,
  519. adRsnClose = 9,
  520. adRsnMove = 10,
  521. adRsnFirstChange = 11,
  522. adRsnMoveFirst = 12,
  523. adRsnMoveNext = 13,
  524. adRsnMovePrevious = 14,
  525. adRsnMoveLast = 15
  526. };
  527. enum SchemaEnum
  528. {
  529. adSchemaProviderSpecific = -1,
  530. adSchemaAsserts = 0,
  531. adSchemaCatalogs = 1,
  532. adSchemaCharacterSets = 2,
  533. adSchemaCollations = 3,
  534. adSchemaColumns = 4,
  535. adSchemaCheckConstraints = 5,
  536. adSchemaConstraintColumnUsage = 6,
  537. adSchemaConstraintTableUsage = 7,
  538. adSchemaKeyColumnUsage = 8,
  539. adSchemaReferentialContraints = 9,
  540. adSchemaReferentialConstraints = 9,
  541. adSchemaTableConstraints = 10,
  542. adSchemaColumnsDomainUsage = 11,
  543. adSchemaIndexes = 12,
  544. adSchemaColumnPrivileges = 13,
  545. adSchemaTablePrivileges = 14,
  546. adSchemaUsagePrivileges = 15,
  547. adSchemaProcedures = 16,
  548. adSchemaSchemata = 17,
  549. adSchemaSQLLanguages = 18,
  550. adSchemaStatistics = 19,
  551. adSchemaTables = 20,
  552. adSchemaTranslations = 21,
  553. adSchemaProviderTypes = 22,
  554. adSchemaViews = 23,
  555. adSchemaViewColumnUsage = 24,
  556. adSchemaViewTableUsage = 25,
  557. adSchemaProcedureParameters = 26,
  558. adSchemaForeignKeys = 27,
  559. adSchemaPrimaryKeys = 28,
  560. adSchemaProcedureColumns = 29,
  561. adSchemaDBInfoKeywords = 30,
  562. adSchemaDBInfoLiterals = 31,
  563. adSchemaCubes = 32,
  564. adSchemaDimensions = 33,
  565. adSchemaHierarchies = 34,
  566. adSchemaLevels = 35,
  567. adSchemaMeasures = 36,
  568. adSchemaProperties = 37,
  569. adSchemaMembers = 38,
  570. adSchemaTrustees = 39
  571. };
  572. enum FieldStatusEnum
  573. {
  574. adFieldOK = 0,
  575. adFieldCantConvertValue = 2,
  576. adFieldIsNull = 3,
  577. adFieldTruncated = 4,
  578. adFieldSignMismatch = 5,
  579. adFieldDataOverflow = 6,
  580. adFieldCantCreate = 7,
  581. adFieldUnavailable = 8,
  582. adFieldPermissionDenied = 9,
  583. adFieldIntegrityViolation = 10,
  584. adFieldSchemaViolation = 11,
  585. adFieldBadStatus = 12,
  586. adFieldDefault = 13,
  587. adFieldIgnore = 15,
  588. adFieldDoesNotExist = 16,
  589. adFieldInvalidURL = 17,
  590. adFieldResourceLocked = 18,
  591. adFieldResourceExists = 19,
  592. adFieldCannotComplete = 20,
  593. adFieldVolumeNotFound = 21,
  594. adFieldOutOfSpace = 22,
  595. adFieldCannotDeleteSource = 23,
  596. adFieldReadOnly = 24,
  597. adFieldResourceOutOfScope = 25,
  598. adFieldAlreadyExists = 26,
  599. adFieldPendingInsert = 65536,
  600. adFieldPendingDelete = 131072,
  601. adFieldPendingChange = 262144,
  602. adFieldPendingUnknown = 524288,
  603. adFieldPendingUnknownDelete = 1048576
  604. };
  605. enum SeekEnum
  606. {
  607. adSeekFirstEQ = 1,
  608. adSeekLastEQ = 2,
  609. adSeekAfterEQ = 4,
  610. adSeekAfter = 8,
  611. adSeekBeforeEQ = 16,
  612. adSeekBefore = 32
  613. };
  614. enum ADCPROP_UPDATECRITERIA_ENUM
  615. {
  616. adCriteriaKey = 0,
  617. adCriteriaAllCols = 1,
  618. adCriteriaUpdCols = 2,
  619. adCriteriaTimeStamp = 3
  620. };
  621. enum ADCPROP_ASYNCTHREADPRIORITY_ENUM
  622. {
  623. adPriorityLowest = 1,
  624. adPriorityBelowNormal = 2,
  625. adPriorityNormal = 3,
  626. adPriorityAboveNormal = 4,
  627. adPriorityHighest = 5
  628. };
  629. enum ADCPROP_AUTORECALC_ENUM
  630. {
  631. adRecalcUpFront = 0,
  632. adRecalcAlways = 1
  633. };
  634. enum ADCPROP_UPDATERESYNC_ENUM
  635. {
  636. adResyncNone = 0,
  637. adResyncAutoIncrement = 1,
  638. adResyncConflicts = 2,
  639. adResyncUpdates = 4,
  640. adResyncInserts = 8,
  641. adResyncAll = 15
  642. };
  643. enum MoveRecordOptionsEnum
  644. {
  645. adMoveUnspecified = -1,
  646. adMoveOverWrite = 1,
  647. adMoveDontUpdateLinks = 2,
  648. adMoveAllowEmulation = 4
  649. };
  650. enum CopyRecordOptionsEnum
  651. {
  652. adCopyUnspecified = -1,
  653. adCopyOverWrite = 1,
  654. adCopyAllowEmulation = 4,
  655. adCopyNonRecursive = 2
  656. };
  657. enum StreamTypeEnum
  658. {
  659. adTypeBinary = 1,
  660. adTypeText = 2
  661. };
  662. enum LineSeparatorEnum
  663. {
  664. adLF = 10,
  665. adCR = 13,
  666. adCRLF = -1
  667. };
  668. enum StreamOpenOptionsEnum
  669. {
  670. adOpenStreamUnspecified = -1,
  671. adOpenStreamAsync = 1,
  672. adOpenStreamFromRecord = 4
  673. };
  674. enum StreamWriteEnum
  675. {
  676. adWriteChar = 0,
  677. adWriteLine = 1,
  678. stWriteChar = 0,
  679. stWriteLine = 1
  680. };
  681. enum SaveOptionsEnum
  682. {
  683. adSaveCreateNotExist = 1,
  684. adSaveCreateOverWrite = 2
  685. };
  686. enum FieldEnum
  687. {
  688. adDefaultStream = -1,
  689. adRecordURL = -2
  690. };
  691. enum StreamReadEnum
  692. {
  693. adReadAll = -1,
  694. adReadLine = -2
  695. };
  696. enum RecordTypeEnum
  697. {
  698. adSimpleRecord = 0,
  699. adCollectionRecord = 1,
  700. adStructDoc = 2
  701. };
  702. struct __declspec(uuid("00000512-0000-0010-8000-00aa006d2ea4"))
  703. _Collection : IDispatch
  704. {
  705. //
  706. // Property data
  707. //
  708. __declspec(property(get=GetCount))
  709. long Count;
  710. //
  711. // Wrapper methods for error-handling
  712. //
  713. long GetCount ( );
  714. IUnknownPtr _NewEnum ( );
  715. HRESULT Refresh ( );
  716. //
  717. // Raw methods provided by interface
  718. //
  719. virtual HRESULT __stdcall get_Count (
  720. long * c ) = 0;
  721. virtual HRESULT __stdcall raw__NewEnum (
  722. IUnknown * * ppvObject ) = 0;
  723. virtual HRESULT __stdcall raw_Refresh ( ) = 0;
  724. };
  725. struct __declspec(uuid("00000513-0000-0010-8000-00aa006d2ea4"))
  726. _DynaCollection : _Collection
  727. {
  728. //
  729. // Wrapper methods for error-handling
  730. //
  731. HRESULT Append (
  732. IDispatch * Object );
  733. HRESULT Delete (
  734. const _variant_t & Index );
  735. //
  736. // Raw methods provided by interface
  737. //
  738. virtual HRESULT __stdcall raw_Append (
  739. IDispatch * Object ) = 0;
  740. virtual HRESULT __stdcall raw_Delete (
  741. VARIANT Index ) = 0;
  742. };
  743. struct __declspec(uuid("00000534-0000-0010-8000-00aa006d2ea4"))
  744. _ADO : IDispatch
  745. {
  746. //
  747. // Property data
  748. //
  749. __declspec(property(get=GetProperties))
  750. PropertiesPtr Properties;
  751. //
  752. // Wrapper methods for error-handling
  753. //
  754. PropertiesPtr GetProperties ( );
  755. //
  756. // Raw methods provided by interface
  757. //
  758. virtual HRESULT __stdcall get_Properties (
  759. struct Properties * * ppvObject ) = 0;
  760. };
  761. struct __declspec(uuid("00000504-0000-0010-8000-00aa006d2ea4"))
  762. Properties : _Collection
  763. {
  764. //
  765. // Property data
  766. //
  767. __declspec(property(get=GetItem))
  768. PropertyPtr Item[];
  769. //
  770. // Wrapper methods for error-handling
  771. //
  772. PropertyPtr GetItem (
  773. const _variant_t & Index );
  774. //
  775. // Raw methods provided by interface
  776. //
  777. virtual HRESULT __stdcall get_Item (
  778. VARIANT Index,
  779. struct Property * * ppvObject ) = 0;
  780. };
  781. struct __declspec(uuid("00000503-0000-0010-8000-00aa006d2ea4"))
  782. Property : IDispatch
  783. {
  784. //
  785. // Property data
  786. //
  787. __declspec(property(get=GetValue,put=PutValue))
  788. _variant_t Value;
  789. __declspec(property(get=GetName))
  790. _bstr_t Name;
  791. __declspec(property(get=GetType))
  792. enum DataTypeEnum Type;
  793. __declspec(property(get=GetAttributes,put=PutAttributes))
  794. long Attributes;
  795. //
  796. // Wrapper methods for error-handling
  797. //
  798. _variant_t GetValue ( );
  799. void PutValue (
  800. const _variant_t & pval );
  801. _bstr_t GetName ( );
  802. enum DataTypeEnum GetType ( );
  803. long GetAttributes ( );
  804. void PutAttributes (
  805. long plAttributes );
  806. //
  807. // Raw methods provided by interface
  808. //
  809. virtual HRESULT __stdcall get_Value (
  810. VARIANT * pval ) = 0;
  811. virtual HRESULT __stdcall put_Value (
  812. VARIANT pval ) = 0;
  813. virtual HRESULT __stdcall get_Name (
  814. BSTR * pbstr ) = 0;
  815. virtual HRESULT __stdcall get_Type (
  816. enum DataTypeEnum * ptype ) = 0;
  817. virtual HRESULT __stdcall get_Attributes (
  818. long * plAttributes ) = 0;
  819. virtual HRESULT __stdcall put_Attributes (
  820. long plAttributes ) = 0;
  821. };
  822. struct __declspec(uuid("00000500-0000-0010-8000-00aa006d2ea4"))
  823. Error : IDispatch
  824. {
  825. //
  826. // Property data
  827. //
  828. __declspec(property(get=GetDescription))
  829. _bstr_t Description;
  830. __declspec(property(get=GetNumber))
  831. long Number;
  832. __declspec(property(get=GetSource))
  833. _bstr_t Source;
  834. __declspec(property(get=GetHelpFile))
  835. _bstr_t HelpFile;
  836. __declspec(property(get=GetHelpContext))
  837. long HelpContext;
  838. __declspec(property(get=GetSQLState))
  839. _bstr_t SQLState;
  840. __declspec(property(get=GetNativeError))
  841. long NativeError;
  842. //
  843. // Wrapper methods for error-handling
  844. //
  845. long GetNumber ( );
  846. _bstr_t GetSource ( );
  847. _bstr_t GetDescription ( );
  848. _bstr_t GetHelpFile ( );
  849. long GetHelpContext ( );
  850. _bstr_t GetSQLState ( );
  851. long GetNativeError ( );
  852. //
  853. // Raw methods provided by interface
  854. //
  855. virtual HRESULT __stdcall get_Number (
  856. long * pl ) = 0;
  857. virtual HRESULT __stdcall get_Source (
  858. BSTR * pbstr ) = 0;
  859. virtual HRESULT __stdcall get_Description (
  860. BSTR * pbstr ) = 0;
  861. virtual HRESULT __stdcall get_HelpFile (
  862. BSTR * pbstr ) = 0;
  863. virtual HRESULT __stdcall get_HelpContext (
  864. long * pl ) = 0;
  865. virtual HRESULT __stdcall get_SQLState (
  866. BSTR * pbstr ) = 0;
  867. virtual HRESULT __stdcall get_NativeError (
  868. long * pl ) = 0;
  869. };
  870. struct __declspec(uuid("00000501-0000-0010-8000-00aa006d2ea4"))
  871. Errors : _Collection
  872. {
  873. //
  874. // Property data
  875. //
  876. __declspec(property(get=GetItem))
  877. ErrorPtr Item[];
  878. //
  879. // Wrapper methods for error-handling
  880. //
  881. ErrorPtr GetItem (
  882. const _variant_t & Index );
  883. HRESULT Clear ( );
  884. //
  885. // Raw methods provided by interface
  886. //
  887. virtual HRESULT __stdcall get_Item (
  888. VARIANT Index,
  889. struct Error * * ppvObject ) = 0;
  890. virtual HRESULT __stdcall raw_Clear ( ) = 0;
  891. };
  892. struct __declspec(uuid("00000508-0000-0010-8000-00aa006d2ea4"))
  893. Command15 : _ADO
  894. {
  895. //
  896. // Property data
  897. //
  898. __declspec(property(get=GetParameters))
  899. ParametersPtr Parameters;
  900. __declspec(property(get=GetActiveConnection,put=PutRefActiveConnection))
  901. _ConnectionPtr ActiveConnection;
  902. __declspec(property(get=GetCommandText,put=PutCommandText))
  903. _bstr_t CommandText;
  904. __declspec(property(get=GetCommandTimeout,put=PutCommandTimeout))
  905. long CommandTimeout;
  906. __declspec(property(get=GetPrepared,put=PutPrepared))
  907. VARIANT_BOOL Prepared;
  908. __declspec(property(get=GetCommandType,put=PutCommandType))
  909. enum CommandTypeEnum CommandType;
  910. __declspec(property(get=GetName,put=PutName))
  911. _bstr_t Name;
  912. //
  913. // Wrapper methods for error-handling
  914. //
  915. _ConnectionPtr GetActiveConnection ( );
  916. void PutRefActiveConnection (
  917. struct _Connection * ppvObject );
  918. void PutActiveConnection (
  919. const _variant_t & ppvObject );
  920. _bstr_t GetCommandText ( );
  921. void PutCommandText (
  922. _bstr_t pbstr );
  923. long GetCommandTimeout ( );
  924. void PutCommandTimeout (
  925. long pl );
  926. VARIANT_BOOL GetPrepared ( );
  927. void PutPrepared (
  928. VARIANT_BOOL pfPrepared );
  929. _RecordsetPtr Execute (
  930. VARIANT * RecordsAffected,
  931. VARIANT * Parameters,
  932. long Options );
  933. _ParameterPtr CreateParameter (
  934. _bstr_t Name,
  935. enum DataTypeEnum Type,
  936. enum ParameterDirectionEnum Direction,
  937. long Size,
  938. const _variant_t & Value = vtMissing );
  939. ParametersPtr GetParameters ( );
  940. void PutCommandType (
  941. enum CommandTypeEnum plCmdType );
  942. enum CommandTypeEnum GetCommandType ( );
  943. _bstr_t GetName ( );
  944. void PutName (
  945. _bstr_t pbstrName );
  946. //
  947. // Raw methods provided by interface
  948. //
  949. virtual HRESULT __stdcall get_ActiveConnection (
  950. struct _Connection * * ppvObject ) = 0;
  951. virtual HRESULT __stdcall putref_ActiveConnection (
  952. struct _Connection * ppvObject ) = 0;
  953. virtual HRESULT __stdcall put_ActiveConnection (
  954. VARIANT ppvObject ) = 0;
  955. virtual HRESULT __stdcall get_CommandText (
  956. BSTR * pbstr ) = 0;
  957. virtual HRESULT __stdcall put_CommandText (
  958. BSTR pbstr ) = 0;
  959. virtual HRESULT __stdcall get_CommandTimeout (
  960. long * pl ) = 0;
  961. virtual HRESULT __stdcall put_CommandTimeout (
  962. long pl ) = 0;
  963. virtual HRESULT __stdcall get_Prepared (
  964. VARIANT_BOOL * pfPrepared ) = 0;
  965. virtual HRESULT __stdcall put_Prepared (
  966. VARIANT_BOOL pfPrepared ) = 0;
  967. virtual HRESULT __stdcall raw_Execute (
  968. VARIANT * RecordsAffected,
  969. VARIANT * Parameters,
  970. long Options,
  971. struct _Recordset * * ppiRs ) = 0;
  972. virtual HRESULT __stdcall raw_CreateParameter (
  973. BSTR Name,
  974. enum DataTypeEnum Type,
  975. enum ParameterDirectionEnum Direction,
  976. long Size,
  977. VARIANT Value,
  978. struct _Parameter * * ppiprm ) = 0;
  979. virtual HRESULT __stdcall get_Parameters (
  980. struct Parameters * * ppvObject ) = 0;
  981. virtual HRESULT __stdcall put_CommandType (
  982. enum CommandTypeEnum plCmdType ) = 0;
  983. virtual HRESULT __stdcall get_CommandType (
  984. enum CommandTypeEnum * plCmdType ) = 0;
  985. virtual HRESULT __stdcall get_Name (
  986. BSTR * pbstrName ) = 0;
  987. virtual HRESULT __stdcall put_Name (
  988. BSTR pbstrName ) = 0;
  989. };
  990. struct __declspec(uuid("00000515-0000-0010-8000-00aa006d2ea4"))
  991. Connection15 : _ADO
  992. {
  993. //
  994. // Property data
  995. //
  996. __declspec(property(get=GetConnectionString,put=PutConnectionString))
  997. _bstr_t ConnectionString;
  998. __declspec(property(get=GetCommandTimeout,put=PutCommandTimeout))
  999. long CommandTimeout;
  1000. __declspec(property(get=GetConnectionTimeout,put=PutConnectionTimeout))
  1001. long ConnectionTimeout;
  1002. __declspec(property(get=GetVersion))
  1003. _bstr_t Version;
  1004. __declspec(property(get=GetErrors))
  1005. ErrorsPtr Errors;
  1006. __declspec(property(get=GetDefaultDatabase,put=PutDefaultDatabase))
  1007. _bstr_t DefaultDatabase;
  1008. __declspec(property(get=GetIsolationLevel,put=PutIsolationLevel))
  1009. enum IsolationLevelEnum IsolationLevel;
  1010. __declspec(property(get=GetAttributes,put=PutAttributes))
  1011. long Attributes;
  1012. __declspec(property(get=GetCursorLocation,put=PutCursorLocation))
  1013. enum CursorLocationEnum CursorLocation;
  1014. __declspec(property(get=GetMode,put=PutMode))
  1015. enum ConnectModeEnum Mode;
  1016. __declspec(property(get=GetProvider,put=PutProvider))
  1017. _bstr_t Provider;
  1018. __declspec(property(get=GetState))
  1019. long State;
  1020. //
  1021. // Wrapper methods for error-handling
  1022. //
  1023. _bstr_t GetConnectionString ( );
  1024. void PutConnectionString (
  1025. _bstr_t pbstr );
  1026. long GetCommandTimeout ( );
  1027. void PutCommandTimeout (
  1028. long plTimeout );
  1029. long GetConnectionTimeout ( );
  1030. void PutConnectionTimeout (
  1031. long plTimeout );
  1032. _bstr_t GetVersion ( );
  1033. HRESULT Close ( );
  1034. _RecordsetPtr Execute (
  1035. _bstr_t CommandText,
  1036. VARIANT * RecordsAffected,
  1037. long Options );
  1038. long BeginTrans ( );
  1039. HRESULT CommitTrans ( );
  1040. HRESULT RollbackTrans ( );
  1041. HRESULT Open (
  1042. _bstr_t ConnectionString,
  1043. _bstr_t UserID,
  1044. _bstr_t Password,
  1045. long Options );
  1046. ErrorsPtr GetErrors ( );
  1047. _bstr_t GetDefaultDatabase ( );
  1048. void PutDefaultDatabase (
  1049. _bstr_t pbstr );
  1050. enum IsolationLevelEnum GetIsolationLevel ( );
  1051. void PutIsolationLevel (
  1052. enum IsolationLevelEnum Level );
  1053. long GetAttributes ( );
  1054. void PutAttributes (
  1055. long plAttr );
  1056. enum CursorLocationEnum GetCursorLocation ( );
  1057. void PutCursorLocation (
  1058. enum CursorLocationEnum plCursorLoc );
  1059. enum ConnectModeEnum GetMode ( );
  1060. void PutMode (
  1061. enum ConnectModeEnum plMode );
  1062. _bstr_t GetProvider ( );
  1063. void PutProvider (
  1064. _bstr_t pbstr );
  1065. long GetState ( );
  1066. _RecordsetPtr OpenSchema (
  1067. enum SchemaEnum Schema,
  1068. const _variant_t & Restrictions = vtMissing,
  1069. const _variant_t & SchemaID = vtMissing );
  1070. //
  1071. // Raw methods provided by interface
  1072. //
  1073. virtual HRESULT __stdcall get_ConnectionString (
  1074. BSTR * pbstr ) = 0;
  1075. virtual HRESULT __stdcall put_ConnectionString (
  1076. BSTR pbstr ) = 0;
  1077. virtual HRESULT __stdcall get_CommandTimeout (
  1078. long * plTimeout ) = 0;
  1079. virtual HRESULT __stdcall put_CommandTimeout (
  1080. long plTimeout ) = 0;
  1081. virtual HRESULT __stdcall get_ConnectionTimeout (
  1082. long * plTimeout ) = 0;
  1083. virtual HRESULT __stdcall put_ConnectionTimeout (
  1084. long plTimeout ) = 0;
  1085. virtual HRESULT __stdcall get_Version (
  1086. BSTR * pbstr ) = 0;
  1087. virtual HRESULT __stdcall raw_Close ( ) = 0;
  1088. virtual HRESULT __stdcall raw_Execute (
  1089. BSTR CommandText,
  1090. VARIANT * RecordsAffected,
  1091. long Options,
  1092. struct _Recordset * * ppiRset ) = 0;
  1093. virtual HRESULT __stdcall raw_BeginTrans (
  1094. long * TransactionLevel ) = 0;
  1095. virtual HRESULT __stdcall raw_CommitTrans ( ) = 0;
  1096. virtual HRESULT __stdcall raw_RollbackTrans ( ) = 0;
  1097. virtual HRESULT __stdcall raw_Open (
  1098. BSTR ConnectionString,
  1099. BSTR UserID,
  1100. BSTR Password,
  1101. long Options ) = 0;
  1102. virtual HRESULT __stdcall get_Errors (
  1103. struct Errors * * ppvObject ) = 0;
  1104. virtual HRESULT __stdcall get_DefaultDatabase (
  1105. BSTR * pbstr ) = 0;
  1106. virtual HRESULT __stdcall put_DefaultDatabase (
  1107. BSTR pbstr ) = 0;
  1108. virtual HRESULT __stdcall get_IsolationLevel (
  1109. enum IsolationLevelEnum * Level ) = 0;
  1110. virtual HRESULT __stdcall put_IsolationLevel (
  1111. enum IsolationLevelEnum Level ) = 0;
  1112. virtual HRESULT __stdcall get_Attributes (
  1113. long * plAttr ) = 0;
  1114. virtual HRESULT __stdcall put_Attributes (
  1115. long plAttr ) = 0;
  1116. virtual HRESULT __stdcall get_CursorLocation (
  1117. enum CursorLocationEnum * plCursorLoc ) = 0;
  1118. virtual HRESULT __stdcall put_CursorLocation (
  1119. enum CursorLocationEnum plCursorLoc ) = 0;
  1120. virtual HRESULT __stdcall get_Mode (
  1121. enum ConnectModeEnum * plMode ) = 0;
  1122. virtual HRESULT __stdcall put_Mode (
  1123. enum ConnectModeEnum plMode ) = 0;
  1124. virtual HRESULT __stdcall get_Provider (
  1125. BSTR * pbstr ) = 0;
  1126. virtual HRESULT __stdcall put_Provider (
  1127. BSTR pbstr ) = 0;
  1128. virtual HRESULT __stdcall get_State (
  1129. long * plObjState ) = 0;
  1130. virtual HRESULT __stdcall raw_OpenSchema (
  1131. enum SchemaEnum Schema,
  1132. VARIANT Restrictions,
  1133. VARIANT SchemaID,
  1134. struct _Recordset * * pprset ) = 0;
  1135. };
  1136. struct __declspec(uuid("00000550-0000-0010-8000-00aa006d2ea4"))
  1137. _Connection : Connection15
  1138. {
  1139. //
  1140. // Wrapper methods for error-handling
  1141. //
  1142. HRESULT Cancel ( );
  1143. //
  1144. // Raw methods provided by interface
  1145. //
  1146. virtual HRESULT __stdcall raw_Cancel ( ) = 0;
  1147. };
  1148. struct __declspec(uuid("0000050e-0000-0010-8000-00aa006d2ea4"))
  1149. Recordset15 : _ADO
  1150. {
  1151. //
  1152. // Property data
  1153. //
  1154. __declspec(property(get=GetFields))
  1155. FieldsPtr Fields;
  1156. __declspec(property(get=GetPageSize,put=PutPageSize))
  1157. long PageSize;
  1158. __declspec(property(get=GetPageCount))
  1159. long PageCount;
  1160. __declspec(property(get=GetCursorLocation,put=PutCursorLocation))
  1161. enum CursorLocationEnum CursorLocation;
  1162. __declspec(property(get=GetState))
  1163. long State;
  1164. __declspec(property(get=GetMarshalOptions,put=PutMarshalOptions))
  1165. enum MarshalOptionsEnum MarshalOptions;
  1166. __declspec(property(get=GetCollect,put=PutCollect))
  1167. _variant_t Collect[];
  1168. __declspec(property(get=GetEditMode))
  1169. enum EditModeEnum EditMode;
  1170. __declspec(property(get=GetStatus))
  1171. long Status;
  1172. __declspec(property(get=GetFilter,put=PutFilter))
  1173. _variant_t Filter;
  1174. __declspec(property(get=GetSort,put=PutSort))
  1175. _bstr_t Sort;
  1176. __declspec(property(get=GetAbsolutePosition,put=PutAbsolutePosition))
  1177. enum PositionEnum AbsolutePosition;
  1178. __declspec(property(get=GetBOF))
  1179. VARIANT_BOOL BOF;
  1180. __declspec(property(get=GetBookmark,put=PutBookmark))
  1181. _variant_t Bookmark;
  1182. __declspec(property(get=GetCacheSize,put=PutCacheSize))
  1183. long CacheSize;
  1184. __declspec(property(get=GetCursorType,put=PutCursorType))
  1185. enum CursorTypeEnum CursorType;
  1186. __declspec(property(get=GetEOF))
  1187. VARIANT_BOOL EOF;
  1188. __declspec(property(get=GetAbsolutePage,put=PutAbsolutePage))
  1189. enum PositionEnum AbsolutePage;
  1190. __declspec(property(get=GetLockType,put=PutLockType))
  1191. enum LockTypeEnum LockType;
  1192. __declspec(property(get=GetMaxRecords,put=PutMaxRecords))
  1193. long MaxRecords;
  1194. __declspec(property(get=GetRecordCount))
  1195. long RecordCount;
  1196. //
  1197. // Wrapper methods for error-handling
  1198. //
  1199. enum PositionEnum GetAbsolutePosition ( );
  1200. void PutAbsolutePosition (
  1201. enum PositionEnum pl );
  1202. void PutRefActiveConnection (
  1203. IDispatch * pvar );
  1204. void PutActiveConnection (
  1205. const _variant_t & pvar );
  1206. _variant_t GetActiveConnection ( );
  1207. VARIANT_BOOL GetBOF ( );
  1208. _variant_t GetBookmark ( );
  1209. void PutBookmark (
  1210. const _variant_t & pvBookmark );
  1211. long GetCacheSize ( );
  1212. void PutCacheSize (
  1213. long pl );
  1214. enum CursorTypeEnum GetCursorType ( );
  1215. void PutCursorType (
  1216. enum CursorTypeEnum plCursorType );
  1217. VARIANT_BOOL GetEOF ( );
  1218. FieldsPtr GetFields ( );
  1219. enum LockTypeEnum GetLockType ( );
  1220. void PutLockType (
  1221. enum LockTypeEnum plLockType );
  1222. long GetMaxRecords ( );
  1223. void PutMaxRecords (
  1224. long plMaxRecords );
  1225. long GetRecordCount ( );
  1226. void PutRefSource (
  1227. IDispatch * pvSource );
  1228. void PutSource (
  1229. _bstr_t pvSource );
  1230. _variant_t GetSource ( );
  1231. HRESULT AddNew (
  1232. const _variant_t & FieldList = vtMissing,
  1233. const _variant_t & Values = vtMissing );
  1234. HRESULT CancelUpdate ( );
  1235. HRESULT Close ( );
  1236. HRESULT Delete (
  1237. enum AffectEnum AffectRecords );
  1238. _variant_t GetRows (
  1239. long Rows,
  1240. const _variant_t & Start = vtMissing,
  1241. const _variant_t & Fields = vtMissing );
  1242. HRESULT Move (
  1243. long NumRecords,
  1244. const _variant_t & Start = vtMissing );
  1245. HRESULT MoveNext ( );
  1246. HRESULT MovePrevious ( );
  1247. HRESULT MoveFirst ( );
  1248. HRESULT MoveLast ( );
  1249. HRESULT Open (
  1250. const _variant_t & Source,
  1251. const _variant_t & ActiveConnection,
  1252. enum CursorTypeEnum CursorType,
  1253. enum LockTypeEnum LockType,
  1254. long Options );
  1255. HRESULT Requery (
  1256. long Options );
  1257. HRESULT _xResync (
  1258. enum AffectEnum AffectRecords );
  1259. HRESULT Update (
  1260. const _variant_t & Fields = vtMissing,
  1261. const _variant_t & Values = vtMissing );
  1262. enum PositionEnum GetAbsolutePage ( );
  1263. void PutAbsolutePage (
  1264. enum PositionEnum pl );
  1265. enum EditModeEnum GetEditMode ( );
  1266. _variant_t GetFilter ( );
  1267. void PutFilter (
  1268. const _variant_t & Criteria );
  1269. long GetPageCount ( );
  1270. long GetPageSize ( );
  1271. void PutPageSize (
  1272. long pl );
  1273. _bstr_t GetSort ( );
  1274. void PutSort (
  1275. _bstr_t Criteria );
  1276. long GetStatus ( );
  1277. long GetState ( );
  1278. _RecordsetPtr _xClone ( );
  1279. HRESULT UpdateBatch (
  1280. enum AffectEnum AffectRecords );
  1281. HRESULT CancelBatch (
  1282. enum AffectEnum AffectRecords );
  1283. enum CursorLocationEnum GetCursorLocation ( );
  1284. void PutCursorLocation (
  1285. enum CursorLocationEnum plCursorLoc );
  1286. _RecordsetPtr NextRecordset (
  1287. VARIANT * RecordsAffected );
  1288. VARIANT_BOOL Supports (
  1289. enum CursorOptionEnum CursorOptions );
  1290. _variant_t GetCollect (
  1291. const _variant_t & Index );
  1292. void PutCollect (
  1293. const _variant_t & Index,
  1294. const _variant_t & pvar );
  1295. enum MarshalOptionsEnum GetMarshalOptions ( );
  1296. void PutMarshalOptions (
  1297. enum MarshalOptionsEnum peMarshal );
  1298. HRESULT Find (
  1299. _bstr_t Criteria,
  1300. long SkipRecords,
  1301. enum SearchDirectionEnum SearchDirection,
  1302. const _variant_t & Start = vtMissing );
  1303. //
  1304. // Raw methods provided by interface
  1305. //
  1306. virtual HRESULT __stdcall get_AbsolutePosition (
  1307. enum PositionEnum * pl ) = 0;
  1308. virtual HRESULT __stdcall put_AbsolutePosition (
  1309. enum PositionEnum pl ) = 0;
  1310. virtual HRESULT __stdcall putref_ActiveConnection (
  1311. IDispatch * pvar ) = 0;
  1312. virtual HRESULT __stdcall put_ActiveConnection (
  1313. VARIANT pvar ) = 0;
  1314. virtual HRESULT __stdcall get_ActiveConnection (
  1315. VARIANT * pvar ) = 0;
  1316. virtual HRESULT __stdcall get_BOF (
  1317. VARIANT_BOOL * pb ) = 0;
  1318. virtual HRESULT __stdcall get_Bookmark (
  1319. VARIANT * pvBookmark ) = 0;
  1320. virtual HRESULT __stdcall put_Bookmark (
  1321. VARIANT pvBookmark ) = 0;
  1322. virtual HRESULT __stdcall get_CacheSize (
  1323. long * pl ) = 0;
  1324. virtual HRESULT __stdcall put_CacheSize (
  1325. long pl ) = 0;
  1326. virtual HRESULT __stdcall get_CursorType (
  1327. enum CursorTypeEnum * plCursorType ) = 0;
  1328. virtual HRESULT __stdcall put_CursorType (
  1329. enum CursorTypeEnum plCursorType ) = 0;
  1330. virtual HRESULT __stdcall get_EOF (
  1331. VARIANT_BOOL * pb ) = 0;
  1332. virtual HRESULT __stdcall get_Fields (
  1333. struct Fields * * ppvObject ) = 0;
  1334. virtual HRESULT __stdcall get_LockType (
  1335. enum LockTypeEnum * plLockType ) = 0;
  1336. virtual HRESULT __stdcall put_LockType (
  1337. enum LockTypeEnum plLockType ) = 0;
  1338. virtual HRESULT __stdcall get_MaxRecords (
  1339. long * plMaxRecords ) = 0;
  1340. virtual HRESULT __stdcall put_MaxRecords (
  1341. long plMaxRecords ) = 0;
  1342. virtual HRESULT __stdcall get_RecordCount (
  1343. long * pl ) = 0;
  1344. virtual HRESULT __stdcall putref_Source (
  1345. IDispatch * pvSource ) = 0;
  1346. virtual HRESULT __stdcall put_Source (
  1347. BSTR pvSource ) = 0;
  1348. virtual HRESULT __stdcall get_Source (
  1349. VARIANT * pvSource ) = 0;
  1350. virtual HRESULT __stdcall raw_AddNew (
  1351. VARIANT FieldList = vtMissing,
  1352. VARIANT Values = vtMissing ) = 0;
  1353. virtual HRESULT __stdcall raw_CancelUpdate ( ) = 0;
  1354. virtual HRESULT __stdcall raw_Close ( ) = 0;
  1355. virtual HRESULT __stdcall raw_Delete (
  1356. enum AffectEnum AffectRecords ) = 0;
  1357. virtual HRESULT __stdcall raw_GetRows (
  1358. long Rows,
  1359. VARIANT Start,
  1360. VARIANT Fields,
  1361. VARIANT * pvar ) = 0;
  1362. virtual HRESULT __stdcall raw_Move (
  1363. long NumRecords,
  1364. VARIANT Start = vtMissing ) = 0;
  1365. virtual HRESULT __stdcall raw_MoveNext ( ) = 0;
  1366. virtual HRESULT __stdcall raw_MovePrevious ( ) = 0;
  1367. virtual HRESULT __stdcall raw_MoveFirst ( ) = 0;
  1368. virtual HRESULT __stdcall raw_MoveLast ( ) = 0;
  1369. virtual HRESULT __stdcall raw_Open (
  1370. VARIANT Source,
  1371. VARIANT ActiveConnection,
  1372. enum CursorTypeEnum CursorType,
  1373. enum LockTypeEnum LockType,
  1374. long Options ) = 0;
  1375. virtual HRESULT __stdcall raw_Requery (
  1376. long Options ) = 0;
  1377. virtual HRESULT __stdcall raw__xResync (
  1378. enum AffectEnum AffectRecords ) = 0;
  1379. virtual HRESULT __stdcall raw_Update (
  1380. VARIANT Fields = vtMissing,
  1381. VARIANT Values = vtMissing ) = 0;
  1382. virtual HRESULT __stdcall get_AbsolutePage (
  1383. enum PositionEnum * pl ) = 0;
  1384. virtual HRESULT __stdcall put_AbsolutePage (
  1385. enum PositionEnum pl ) = 0;
  1386. virtual HRESULT __stdcall get_EditMode (
  1387. enum EditModeEnum * pl ) = 0;
  1388. virtual HRESULT __stdcall get_Filter (
  1389. VARIANT * Criteria ) = 0;
  1390. virtual HRESULT __stdcall put_Filter (
  1391. VARIANT Criteria ) = 0;
  1392. virtual HRESULT __stdcall get_PageCount (
  1393. long * pl ) = 0;
  1394. virtual HRESULT __stdcall get_PageSize (
  1395. long * pl ) = 0;
  1396. virtual HRESULT __stdcall put_PageSize (
  1397. long pl ) = 0;
  1398. virtual HRESULT __stdcall get_Sort (
  1399. BSTR * Criteria ) = 0;
  1400. virtual HRESULT __stdcall put_Sort (
  1401. BSTR Criteria ) = 0;
  1402. virtual HRESULT __stdcall get_Status (
  1403. long * pl ) = 0;
  1404. virtual HRESULT __stdcall get_State (
  1405. long * plObjState ) = 0;
  1406. virtual HRESULT __stdcall raw__xClone (
  1407. struct _Recordset * * ppvObject ) = 0;
  1408. virtual HRESULT __stdcall raw_UpdateBatch (
  1409. enum AffectEnum AffectRecords ) = 0;
  1410. virtual HRESULT __stdcall raw_CancelBatch (
  1411. enum AffectEnum AffectRecords ) = 0;
  1412. virtual HRESULT __stdcall get_CursorLocation (
  1413. enum CursorLocationEnum * plCursorLoc ) = 0;
  1414. virtual HRESULT __stdcall put_CursorLocation (
  1415. enum CursorLocationEnum plCursorLoc ) = 0;
  1416. virtual HRESULT __stdcall raw_NextRecordset (
  1417. VARIANT * RecordsAffected,
  1418. struct _Recordset * * ppiRs ) = 0;
  1419. virtual HRESULT __stdcall raw_Supports (
  1420. enum CursorOptionEnum CursorOptions,
  1421. VARIANT_BOOL * pb ) = 0;
  1422. virtual HRESULT __stdcall get_Collect (
  1423. VARIANT Index,
  1424. VARIANT * pvar ) = 0;
  1425. virtual HRESULT __stdcall put_Collect (
  1426. VARIANT Index,
  1427. VARIANT pvar ) = 0;
  1428. virtual HRESULT __stdcall get_MarshalOptions (
  1429. enum MarshalOptionsEnum * peMarshal ) = 0;
  1430. virtual HRESULT __stdcall put_MarshalOptions (
  1431. enum MarshalOptionsEnum peMarshal ) = 0;
  1432. virtual HRESULT __stdcall raw_Find (
  1433. BSTR Criteria,
  1434. long SkipRecords,
  1435. enum SearchDirectionEnum SearchDirection,
  1436. VARIANT Start = vtMissing ) = 0;
  1437. };
  1438. struct __declspec(uuid("0000054f-0000-0010-8000-00aa006d2ea4"))
  1439. Recordset20 : Recordset15
  1440. {
  1441. //
  1442. // Property data
  1443. //
  1444. __declspec(property(get=GetDataSource,put=PutRefDataSource))
  1445. IUnknownPtr DataSource;
  1446. __declspec(property(get=GetActiveCommand))
  1447. IDispatchPtr ActiveCommand;
  1448. __declspec(property(get=GetStayInSync,put=PutStayInSync))
  1449. VARIANT_BOOL StayInSync;
  1450. __declspec(property(get=GetDataMember,put=PutDataMember))
  1451. _bstr_t DataMember;
  1452. //
  1453. // Wrapper methods for error-handling
  1454. //
  1455. HRESULT Cancel ( );
  1456. IUnknownPtr GetDataSource ( );
  1457. void PutRefDataSource (
  1458. IUnknown * ppunkDataSource );
  1459. HRESULT _xSave (
  1460. _bstr_t FileName,
  1461. enum PersistFormatEnum PersistFormat );
  1462. IDispatchPtr GetActiveCommand ( );
  1463. void PutStayInSync (
  1464. VARIANT_BOOL pbStayInSync );
  1465. VARIANT_BOOL GetStayInSync ( );
  1466. _bstr_t GetString (
  1467. enum StringFormatEnum StringFormat,
  1468. long NumRows,
  1469. _bstr_t ColumnDelimeter,
  1470. _bstr_t RowDelimeter,
  1471. _bstr_t NullExpr );
  1472. _bstr_t GetDataMember ( );
  1473. void PutDataMember (
  1474. _bstr_t pbstrDataMember );
  1475. enum CompareEnum CompareBookmarks (
  1476. const _variant_t & Bookmark1,
  1477. const _variant_t & Bookmark2 );
  1478. _RecordsetPtr Clone (
  1479. enum LockTypeEnum LockType );
  1480. HRESULT Resync (
  1481. enum AffectEnum AffectRecords,
  1482. enum ResyncEnum ResyncValues );
  1483. //
  1484. // Raw methods provided by interface
  1485. //
  1486. virtual HRESULT __stdcall raw_Cancel ( ) = 0;
  1487. virtual HRESULT __stdcall get_DataSource (
  1488. IUnknown * * ppunkDataSource ) = 0;
  1489. virtual HRESULT __stdcall putref_DataSource (
  1490. IUnknown * ppunkDataSource ) = 0;
  1491. virtual HRESULT __stdcall raw__xSave (
  1492. BSTR FileName,
  1493. enum PersistFormatEnum PersistFormat ) = 0;
  1494. virtual HRESULT __stdcall get_ActiveCommand (
  1495. IDispatch * * ppCmd ) = 0;
  1496. virtual HRESULT __stdcall put_StayInSync (
  1497. VARIANT_BOOL pbStayInSync ) = 0;
  1498. virtual HRESULT __stdcall get_StayInSync (
  1499. VARIANT_BOOL * pbStayInSync ) = 0;
  1500. virtual HRESULT __stdcall raw_GetString (
  1501. enum StringFormatEnum StringFormat,
  1502. long NumRows,
  1503. BSTR ColumnDelimeter,
  1504. BSTR RowDelimeter,
  1505. BSTR NullExpr,
  1506. BSTR * pRetString ) = 0;
  1507. virtual HRESULT __stdcall get_DataMember (
  1508. BSTR * pbstrDataMember ) = 0;
  1509. virtual HRESULT __stdcall put_DataMember (
  1510. BSTR pbstrDataMember ) = 0;
  1511. virtual HRESULT __stdcall raw_CompareBookmarks (
  1512. VARIANT Bookmark1,
  1513. VARIANT Bookmark2,
  1514. enum CompareEnum * pCompare ) = 0;
  1515. virtual HRESULT __stdcall raw_Clone (
  1516. enum LockTypeEnum LockType,
  1517. struct _Recordset * * ppvObject ) = 0;
  1518. virtual HRESULT __stdcall raw_Resync (
  1519. enum AffectEnum AffectRecords,
  1520. enum ResyncEnum ResyncValues ) = 0;
  1521. };
  1522. struct __declspec(uuid("00000555-0000-0010-8000-00aa006d2ea4"))
  1523. Recordset21 : Recordset20
  1524. {
  1525. //
  1526. // Property data
  1527. //
  1528. __declspec(property(get=GetIndex,put=PutIndex))
  1529. _bstr_t Index;
  1530. //
  1531. // Wrapper methods for error-handling
  1532. //
  1533. HRESULT Seek (
  1534. const _variant_t & KeyValues,
  1535. enum SeekEnum SeekOption );
  1536. void PutIndex (
  1537. _bstr_t pbstrIndex );
  1538. _bstr_t GetIndex ( );
  1539. //
  1540. // Raw methods provided by interface
  1541. //
  1542. virtual HRESULT __stdcall raw_Seek (
  1543. VARIANT KeyValues,
  1544. enum SeekEnum SeekOption ) = 0;
  1545. virtual HRESULT __stdcall put_Index (
  1546. BSTR pbstrIndex ) = 0;
  1547. virtual HRESULT __stdcall get_Index (
  1548. BSTR * pbstrIndex ) = 0;
  1549. };
  1550. struct __declspec(uuid("00000556-0000-0010-8000-00aa006d2ea4"))
  1551. _Recordset : Recordset21
  1552. {
  1553. //
  1554. // Wrapper methods for error-handling
  1555. //
  1556. HRESULT Save (
  1557. const _variant_t & Destination,
  1558. enum PersistFormatEnum PersistFormat );
  1559. //
  1560. // Raw methods provided by interface
  1561. //
  1562. virtual HRESULT __stdcall raw_Save (
  1563. VARIANT Destination,
  1564. enum PersistFormatEnum PersistFormat ) = 0;
  1565. };
  1566. struct __declspec(uuid("00000506-0000-0010-8000-00aa006d2ea4"))
  1567. Fields15 : _Collection
  1568. {
  1569. //
  1570. // Property data
  1571. //
  1572. __declspec(property(get=GetItem))
  1573. FieldPtr Item[];
  1574. //
  1575. // Wrapper methods for error-handling
  1576. //
  1577. FieldPtr GetItem (
  1578. const _variant_t & Index );
  1579. //
  1580. // Raw methods provided by interface
  1581. //
  1582. virtual HRESULT __stdcall get_Item (
  1583. VARIANT Index,
  1584. struct Field * * ppvObject ) = 0;
  1585. };
  1586. struct __declspec(uuid("0000054d-0000-0010-8000-00aa006d2ea4"))
  1587. Fields20 : Fields15
  1588. {
  1589. //
  1590. // Wrapper methods for error-handling
  1591. //
  1592. HRESULT _Append (
  1593. _bstr_t Name,
  1594. enum DataTypeEnum Type,
  1595. long DefinedSize,
  1596. enum FieldAttributeEnum Attrib );
  1597. HRESULT Delete (
  1598. const _variant_t & Index );
  1599. //
  1600. // Raw methods provided by interface
  1601. //
  1602. virtual HRESULT __stdcall raw__Append (
  1603. BSTR Name,
  1604. enum DataTypeEnum Type,
  1605. long DefinedSize,
  1606. enum FieldAttributeEnum Attrib ) = 0;
  1607. virtual HRESULT __stdcall raw_Delete (
  1608. VARIANT Index ) = 0;
  1609. };
  1610. struct __declspec(uuid("00000564-0000-0010-8000-00aa006d2ea4"))
  1611. Fields : Fields20
  1612. {
  1613. //
  1614. // Wrapper methods for error-handling
  1615. //
  1616. HRESULT Append (
  1617. _bstr_t Name,
  1618. enum DataTypeEnum Type,
  1619. long DefinedSize,
  1620. enum FieldAttributeEnum Attrib,
  1621. const _variant_t & FieldValue = vtMissing );
  1622. HRESULT Update ( );
  1623. HRESULT Resync (
  1624. enum ResyncEnum ResyncValues );
  1625. HRESULT CancelUpdate ( );
  1626. //
  1627. // Raw methods provided by interface
  1628. //
  1629. virtual HRESULT __stdcall raw_Append (
  1630. BSTR Name,
  1631. enum DataTypeEnum Type,
  1632. long DefinedSize,
  1633. enum FieldAttributeEnum Attrib,
  1634. VARIANT FieldValue = vtMissing ) = 0;
  1635. virtual HRESULT __stdcall raw_Update ( ) = 0;
  1636. virtual HRESULT __stdcall raw_Resync (
  1637. enum ResyncEnum ResyncValues ) = 0;
  1638. virtual HRESULT __stdcall raw_CancelUpdate ( ) = 0;
  1639. };
  1640. struct __declspec(uuid("0000054c-0000-0010-8000-00aa006d2ea4"))
  1641. Field20 : _ADO
  1642. {
  1643. //
  1644. // Property data
  1645. //
  1646. __declspec(property(get=GetValue,put=PutValue))
  1647. _variant_t Value;
  1648. __declspec(property(get=GetName))
  1649. _bstr_t Name;
  1650. __declspec(property(get=GetType,put=PutType))
  1651. enum DataTypeEnum Type;
  1652. __declspec(property(get=GetDefinedSize,put=PutDefinedSize))
  1653. long DefinedSize;
  1654. __declspec(property(get=GetOriginalValue))
  1655. _variant_t OriginalValue;
  1656. __declspec(property(get=GetUnderlyingValue))
  1657. _variant_t UnderlyingValue;
  1658. __declspec(property(get=GetActualSize))
  1659. long ActualSize;
  1660. __declspec(property(get=GetPrecision,put=PutPrecision))
  1661. unsigned char Precision;
  1662. __declspec(property(get=GetNumericScale,put=PutNumericScale))
  1663. unsigned char NumericScale;
  1664. __declspec(property(get=GetAttributes,put=PutAttributes))
  1665. long Attributes;
  1666. __declspec(property(get=GetDataFormat,put=PutRefDataFormat))
  1667. IUnknownPtr DataFormat;
  1668. //
  1669. // Wrapper methods for error-handling
  1670. //
  1671. long GetActualSize ( );
  1672. long GetAttributes ( );
  1673. long GetDefinedSize ( );
  1674. _bstr_t GetName ( );
  1675. enum DataTypeEnum GetType ( );
  1676. _variant_t GetValue ( );
  1677. void PutValue (
  1678. const _variant_t & pvar );
  1679. unsigned char GetPrecision ( );
  1680. unsigned char GetNumericScale ( );
  1681. HRESULT AppendChunk (
  1682. const _variant_t & Data );
  1683. _variant_t GetChunk (
  1684. long Length );
  1685. _variant_t GetOriginalValue ( );
  1686. _variant_t GetUnderlyingValue ( );
  1687. IUnknownPtr GetDataFormat ( );
  1688. void PutRefDataFormat (
  1689. IUnknown * ppiDF );
  1690. void PutPrecision (
  1691. unsigned char pbPrecision );
  1692. void PutNumericScale (
  1693. unsigned char pbNumericScale );
  1694. void PutType (
  1695. enum DataTypeEnum pDataType );
  1696. void PutDefinedSize (
  1697. long pl );
  1698. void PutAttributes (
  1699. long pl );
  1700. //
  1701. // Raw methods provided by interface
  1702. //
  1703. virtual HRESULT __stdcall get_ActualSize (
  1704. long * pl ) = 0;
  1705. virtual HRESULT __stdcall get_Attributes (
  1706. long * pl ) = 0;
  1707. virtual HRESULT __stdcall get_DefinedSize (
  1708. long * pl ) = 0;
  1709. virtual HRESULT __stdcall get_Name (
  1710. BSTR * pbstr ) = 0;
  1711. virtual HRESULT __stdcall get_Type (
  1712. enum DataTypeEnum * pDataType ) = 0;
  1713. virtual HRESULT __stdcall get_Value (
  1714. VARIANT * pvar ) = 0;
  1715. virtual HRESULT __stdcall put_Value (
  1716. VARIANT pvar ) = 0;
  1717. virtual HRESULT __stdcall get_Precision (
  1718. unsigned char * pbPrecision ) = 0;
  1719. virtual HRESULT __stdcall get_NumericScale (
  1720. unsigned char * pbNumericScale ) = 0;
  1721. virtual HRESULT __stdcall raw_AppendChunk (
  1722. VARIANT Data ) = 0;
  1723. virtual HRESULT __stdcall raw_GetChunk (
  1724. long Length,
  1725. VARIANT * pvar ) = 0;
  1726. virtual HRESULT __stdcall get_OriginalValue (
  1727. VARIANT * pvar ) = 0;
  1728. virtual HRESULT __stdcall get_UnderlyingValue (
  1729. VARIANT * pvar ) = 0;
  1730. virtual HRESULT __stdcall get_DataFormat (
  1731. IUnknown * * ppiDF ) = 0;
  1732. virtual HRESULT __stdcall putref_DataFormat (
  1733. IUnknown * ppiDF ) = 0;
  1734. virtual HRESULT __stdcall put_Precision (
  1735. unsigned char pbPrecision ) = 0;
  1736. virtual HRESULT __stdcall put_NumericScale (
  1737. unsigned char pbNumericScale ) = 0;
  1738. virtual HRESULT __stdcall put_Type (
  1739. enum DataTypeEnum pDataType ) = 0;
  1740. virtual HRESULT __stdcall put_DefinedSize (
  1741. long pl ) = 0;
  1742. virtual HRESULT __stdcall put_Attributes (
  1743. long pl ) = 0;
  1744. };
  1745. struct __declspec(uuid("00000569-0000-0010-8000-00aa006d2ea4"))
  1746. Field : Field20
  1747. {
  1748. //
  1749. // Property data
  1750. //
  1751. __declspec(property(get=GetStatus))
  1752. long Status;
  1753. //
  1754. // Wrapper methods for error-handling
  1755. //
  1756. long GetStatus ( );
  1757. //
  1758. // Raw methods provided by interface
  1759. //
  1760. virtual HRESULT __stdcall get_Status (
  1761. long * pFStatus ) = 0;
  1762. };
  1763. struct __declspec(uuid("0000050c-0000-0010-8000-00aa006d2ea4"))
  1764. _Parameter : _ADO
  1765. {
  1766. //
  1767. // Property data
  1768. //
  1769. __declspec(property(get=GetValue,put=PutValue))
  1770. _variant_t Value;
  1771. __declspec(property(get=GetName,put=PutName))
  1772. _bstr_t Name;
  1773. __declspec(property(get=GetType,put=PutType))
  1774. enum DataTypeEnum Type;
  1775. __declspec(property(get=GetDirection,put=PutDirection))
  1776. enum ParameterDirectionEnum Direction;
  1777. __declspec(property(get=GetPrecision,put=PutPrecision))
  1778. unsigned char Precision;
  1779. __declspec(property(get=GetNumericScale,put=PutNumericScale))
  1780. unsigned char NumericScale;
  1781. __declspec(property(get=GetSize,put=PutSize))
  1782. long Size;
  1783. __declspec(property(get=GetAttributes,put=PutAttributes))
  1784. long Attributes;
  1785. //
  1786. // Wrapper methods for error-handling
  1787. //
  1788. _bstr_t GetName ( );
  1789. void PutName (
  1790. _bstr_t pbstr );
  1791. _variant_t GetValue ( );
  1792. void PutValue (
  1793. const _variant_t & pvar );
  1794. enum DataTypeEnum GetType ( );
  1795. void PutType (
  1796. enum DataTypeEnum psDataType );
  1797. void PutDirection (
  1798. enum ParameterDirectionEnum plParmDirection );
  1799. enum ParameterDirectionEnum GetDirection ( );
  1800. void PutPrecision (
  1801. unsigned char pbPrecision );
  1802. unsigned char GetPrecision ( );
  1803. void PutNumericScale (
  1804. unsigned char pbScale );
  1805. unsigned char GetNumericScale ( );
  1806. void PutSize (
  1807. long pl );
  1808. long GetSize ( );
  1809. HRESULT AppendChunk (
  1810. const _variant_t & Val );
  1811. long GetAttributes ( );
  1812. void PutAttributes (
  1813. long plParmAttribs );
  1814. //
  1815. // Raw methods provided by interface
  1816. //
  1817. virtual HRESULT __stdcall get_Name (
  1818. BSTR * pbstr ) = 0;
  1819. virtual HRESULT __stdcall put_Name (
  1820. BSTR pbstr ) = 0;
  1821. virtual HRESULT __stdcall get_Value (
  1822. VARIANT * pvar ) = 0;
  1823. virtual HRESULT __stdcall put_Value (
  1824. VARIANT pvar ) = 0;
  1825. virtual HRESULT __stdcall get_Type (
  1826. enum DataTypeEnum * psDataType ) = 0;
  1827. virtual HRESULT __stdcall put_Type (
  1828. enum DataTypeEnum psDataType ) = 0;
  1829. virtual HRESULT __stdcall put_Direction (
  1830. enum ParameterDirectionEnum plParmDirection ) = 0;
  1831. virtual HRESULT __stdcall get_Direction (
  1832. enum ParameterDirectionEnum * plParmDirection ) = 0;
  1833. virtual HRESULT __stdcall put_Precision (
  1834. unsigned char pbPrecision ) = 0;
  1835. virtual HRESULT __stdcall get_Precision (
  1836. unsigned char * pbPrecision ) = 0;
  1837. virtual HRESULT __stdcall put_NumericScale (
  1838. unsigned char pbScale ) = 0;
  1839. virtual HRESULT __stdcall get_NumericScale (
  1840. unsigned char * pbScale ) = 0;
  1841. virtual HRESULT __stdcall put_Size (
  1842. long pl ) = 0;
  1843. virtual HRESULT __stdcall get_Size (
  1844. long * pl ) = 0;
  1845. virtual HRESULT __stdcall raw_AppendChunk (
  1846. VARIANT Val ) = 0;
  1847. virtual HRESULT __stdcall get_Attributes (
  1848. long * plParmAttribs ) = 0;
  1849. virtual HRESULT __stdcall put_Attributes (
  1850. long plParmAttribs ) = 0;
  1851. };
  1852. struct __declspec(uuid("0000050d-0000-0010-8000-00aa006d2ea4"))
  1853. Parameters : _DynaCollection
  1854. {
  1855. //
  1856. // Property data
  1857. //
  1858. __declspec(property(get=GetItem))
  1859. _ParameterPtr Item[];
  1860. //
  1861. // Wrapper methods for error-handling
  1862. //
  1863. _ParameterPtr GetItem (
  1864. const _variant_t & Index );
  1865. //
  1866. // Raw methods provided by interface
  1867. //
  1868. virtual HRESULT __stdcall get_Item (
  1869. VARIANT Index,
  1870. struct _Parameter * * ppvObject ) = 0;
  1871. };
  1872. struct __declspec(uuid("0000054e-0000-0010-8000-00aa006d2ea4"))
  1873. _Command : Command15
  1874. {
  1875. //
  1876. // Property data
  1877. //
  1878. __declspec(property(get=GetState))
  1879. long State;
  1880. //
  1881. // Wrapper methods for error-handling
  1882. //
  1883. long GetState ( );
  1884. HRESULT Cancel ( );
  1885. //
  1886. // Raw methods provided by interface
  1887. //
  1888. virtual HRESULT __stdcall get_State (
  1889. long * plObjState ) = 0;
  1890. virtual HRESULT __stdcall raw_Cancel ( ) = 0;
  1891. };
  1892. struct __declspec(uuid("00000402-0000-0010-8000-00aa006d2ea4"))
  1893. ConnectionEventsVt : IUnknown
  1894. {
  1895. //
  1896. // Wrapper methods for error-handling
  1897. //
  1898. HRESULT InfoMessage (
  1899. struct Error * pError,
  1900. enum EventStatusEnum * adStatus,
  1901. struct _Connection * pConnection );
  1902. HRESULT BeginTransComplete (
  1903. long TransactionLevel,
  1904. struct Error * pError,
  1905. enum EventStatusEnum * adStatus,
  1906. struct _Connection * pConnection );
  1907. HRESULT CommitTransComplete (
  1908. struct Error * pError,
  1909. enum EventStatusEnum * adStatus,
  1910. struct _Connection * pConnection );
  1911. HRESULT RollbackTransComplete (
  1912. struct Error * pError,
  1913. enum EventStatusEnum * adStatus,
  1914. struct _Connection * pConnection );
  1915. HRESULT WillExecute (
  1916. BSTR * Source,
  1917. enum CursorTypeEnum * CursorType,
  1918. enum LockTypeEnum * LockType,
  1919. long * Options,
  1920. enum EventStatusEnum * adStatus,
  1921. struct _Command * pCommand,
  1922. struct _Recordset * pRecordset,
  1923. struct _Connection * pConnection );
  1924. HRESULT ExecuteComplete (
  1925. long RecordsAffected,
  1926. struct Error * pError,
  1927. enum EventStatusEnum * adStatus,
  1928. struct _Command * pCommand,
  1929. struct _Recordset * pRecordset,
  1930. struct _Connection * pConnection );
  1931. HRESULT WillConnect (
  1932. BSTR * ConnectionString,
  1933. BSTR * UserID,
  1934. BSTR * Password,
  1935. long * Options,
  1936. enum EventStatusEnum * adStatus,
  1937. struct _Connection * pConnection );
  1938. HRESULT ConnectComplete (
  1939. struct Error * pError,
  1940. enum EventStatusEnum * adStatus,
  1941. struct _Connection * pConnection );
  1942. HRESULT Disconnect (
  1943. enum EventStatusEnum * adStatus,
  1944. struct _Connection * pConnection );
  1945. //
  1946. // Raw methods provided by interface
  1947. //
  1948. virtual HRESULT __stdcall raw_InfoMessage (
  1949. struct Error * pError,
  1950. enum EventStatusEnum * adStatus,
  1951. struct _Connection * pConnection ) = 0;
  1952. virtual HRESULT __stdcall raw_BeginTransComplete (
  1953. long TransactionLevel,
  1954. struct Error * pError,
  1955. enum EventStatusEnum * adStatus,
  1956. struct _Connection * pConnection ) = 0;
  1957. virtual HRESULT __stdcall raw_CommitTransComplete (
  1958. struct Error * pError,
  1959. enum EventStatusEnum * adStatus,
  1960. struct _Connection * pConnection ) = 0;
  1961. virtual HRESULT __stdcall raw_RollbackTransComplete (
  1962. struct Error * pError,
  1963. enum EventStatusEnum * adStatus,
  1964. struct _Connection * pConnection ) = 0;
  1965. virtual HRESULT __stdcall raw_WillExecute (
  1966. BSTR * Source,
  1967. enum CursorTypeEnum * CursorType,
  1968. enum LockTypeEnum * LockType,
  1969. long * Options,
  1970. enum EventStatusEnum * adStatus,
  1971. struct _Command * pCommand,
  1972. struct _Recordset * pRecordset,
  1973. struct _Connection * pConnection ) = 0;
  1974. virtual HRESULT __stdcall raw_ExecuteComplete (
  1975. long RecordsAffected,
  1976. struct Error * pError,
  1977. enum EventStatusEnum * adStatus,
  1978. struct _Command * pCommand,
  1979. struct _Recordset * pRecordset,
  1980. struct _Connection * pConnection ) = 0;
  1981. virtual HRESULT __stdcall raw_WillConnect (
  1982. BSTR * ConnectionString,
  1983. BSTR * UserID,
  1984. BSTR * Password,
  1985. long * Options,
  1986. enum EventStatusEnum * adStatus,
  1987. struct _Connection * pConnection ) = 0;
  1988. virtual HRESULT __stdcall raw_ConnectComplete (
  1989. struct Error * pError,
  1990. enum EventStatusEnum * adStatus,
  1991. struct _Connection * pConnection ) = 0;
  1992. virtual HRESULT __stdcall raw_Disconnect (
  1993. enum EventStatusEnum * adStatus,
  1994. struct _Connection * pConnection ) = 0;
  1995. };
  1996. struct __declspec(uuid("00000403-0000-0010-8000-00aa006d2ea4"))
  1997. RecordsetEventsVt : IUnknown
  1998. {
  1999. //
  2000. // Wrapper methods for error-handling
  2001. //
  2002. HRESULT WillChangeField (
  2003. long cFields,
  2004. const _variant_t & Fields,
  2005. enum EventStatusEnum * adStatus,
  2006. struct _Recordset * pRecordset );
  2007. HRESULT FieldChangeComplete (
  2008. long cFields,
  2009. const _variant_t & Fields,
  2010. struct Error * pError,
  2011. enum EventStatusEnum * adStatus,
  2012. struct _Recordset * pRecordset );
  2013. HRESULT WillChangeRecord (
  2014. enum EventReasonEnum adReason,
  2015. long cRecords,
  2016. enum EventStatusEnum * adStatus,
  2017. struct _Recordset * pRecordset );
  2018. HRESULT RecordChangeComplete (
  2019. enum EventReasonEnum adReason,
  2020. long cRecords,
  2021. struct Error * pError,
  2022. enum EventStatusEnum * adStatus,
  2023. struct _Recordset * pRecordset );
  2024. HRESULT WillChangeRecordset (
  2025. enum EventReasonEnum adReason,
  2026. enum EventStatusEnum * adStatus,
  2027. struct _Recordset * pRecordset );
  2028. HRESULT RecordsetChangeComplete (
  2029. enum EventReasonEnum adReason,
  2030. struct Error * pError,
  2031. enum EventStatusEnum * adStatus,
  2032. struct _Recordset * pRecordset );
  2033. HRESULT WillMove (
  2034. enum EventReasonEnum adReason,
  2035. enum EventStatusEnum * adStatus,
  2036. struct _Recordset * pRecordset );
  2037. HRESULT MoveComplete (
  2038. enum EventReasonEnum adReason,
  2039. struct Error * pError,
  2040. enum EventStatusEnum * adStatus,
  2041. struct _Recordset * pRecordset );
  2042. HRESULT EndOfRecordset (
  2043. VARIANT_BOOL * fMoreData,
  2044. enum EventStatusEnum * adStatus,
  2045. struct _Recordset * pRecordset );
  2046. HRESULT FetchProgress (
  2047. long Progress,
  2048. long MaxProgress,
  2049. enum EventStatusEnum * adStatus,
  2050. struct _Recordset * pRecordset );
  2051. HRESULT FetchComplete (
  2052. struct Error * pError,
  2053. enum EventStatusEnum * adStatus,
  2054. struct _Recordset * pRecordset );
  2055. //
  2056. // Raw methods provided by interface
  2057. //
  2058. virtual HRESULT __stdcall raw_WillChangeField (
  2059. long cFields,
  2060. VARIANT Fields,
  2061. enum EventStatusEnum * adStatus,
  2062. struct _Recordset * pRecordset ) = 0;
  2063. virtual HRESULT __stdcall raw_FieldChangeComplete (
  2064. long cFields,
  2065. VARIANT Fields,
  2066. struct Error * pError,
  2067. enum EventStatusEnum * adStatus,
  2068. struct _Recordset * pRecordset ) = 0;
  2069. virtual HRESULT __stdcall raw_WillChangeRecord (
  2070. enum EventReasonEnum adReason,
  2071. long cRecords,
  2072. enum EventStatusEnum * adStatus,
  2073. struct _Recordset * pRecordset ) = 0;
  2074. virtual HRESULT __stdcall raw_RecordChangeComplete (
  2075. enum EventReasonEnum adReason,
  2076. long cRecords,
  2077. struct Error * pError,
  2078. enum EventStatusEnum * adStatus,
  2079. struct _Recordset * pRecordset ) = 0;
  2080. virtual HRESULT __stdcall raw_WillChangeRecordset (
  2081. enum EventReasonEnum adReason,
  2082. enum EventStatusEnum * adStatus,
  2083. struct _Recordset * pRecordset ) = 0;
  2084. virtual HRESULT __stdcall raw_RecordsetChangeComplete (
  2085. enum EventReasonEnum adReason,
  2086. struct Error * pError,
  2087. enum EventStatusEnum * adStatus,
  2088. struct _Recordset * pRecordset ) = 0;
  2089. virtual HRESULT __stdcall raw_WillMove (
  2090. enum EventReasonEnum adReason,
  2091. enum EventStatusEnum * adStatus,
  2092. struct _Recordset * pRecordset ) = 0;
  2093. virtual HRESULT __stdcall raw_MoveComplete (
  2094. enum EventReasonEnum adReason,
  2095. struct Error * pError,
  2096. enum EventStatusEnum * adStatus,
  2097. struct _Recordset * pRecordset ) = 0;
  2098. virtual HRESULT __stdcall raw_EndOfRecordset (
  2099. VARIANT_BOOL * fMoreData,
  2100. enum EventStatusEnum * adStatus,
  2101. struct _Recordset * pRecordset ) = 0;
  2102. virtual HRESULT __stdcall raw_FetchProgress (
  2103. long Progress,
  2104. long MaxProgress,
  2105. enum EventStatusEnum * adStatus,
  2106. struct _Recordset * pRecordset ) = 0;
  2107. virtual HRESULT __stdcall raw_FetchComplete (
  2108. struct Error * pError,
  2109. enum EventStatusEnum * adStatus,
  2110. struct _Recordset * pRecordset ) = 0;
  2111. };
  2112. struct __declspec(uuid("00000400-0000-0010-8000-00aa006d2ea4"))
  2113. ConnectionEvents : IDispatch
  2114. {
  2115. //
  2116. // Wrapper methods for error-handling
  2117. //
  2118. // Methods:
  2119. HRESULT InfoMessage (
  2120. struct Error * pError,
  2121. enum EventStatusEnum * adStatus,
  2122. struct _Connection * pConnection );
  2123. HRESULT BeginTransComplete (
  2124. long TransactionLevel,
  2125. struct Error * pError,
  2126. enum EventStatusEnum * adStatus,
  2127. struct _Connection * pConnection );
  2128. HRESULT CommitTransComplete (
  2129. struct Error * pError,
  2130. enum EventStatusEnum * adStatus,
  2131. struct _Connection * pConnection );
  2132. HRESULT RollbackTransComplete (
  2133. struct Error * pError,
  2134. enum EventStatusEnum * adStatus,
  2135. struct _Connection * pConnection );
  2136. HRESULT WillExecute (
  2137. BSTR * Source,
  2138. enum CursorTypeEnum * CursorType,
  2139. enum LockTypeEnum * LockType,
  2140. long * Options,
  2141. enum EventStatusEnum * adStatus,
  2142. struct _Command * pCommand,
  2143. struct _Recordset * pRecordset,
  2144. struct _Connection * pConnection );
  2145. HRESULT ExecuteComplete (
  2146. long RecordsAffected,
  2147. struct Error * pError,
  2148. enum EventStatusEnum * adStatus,
  2149. struct _Command * pCommand,
  2150. struct _Recordset * pRecordset,
  2151. struct _Connection * pConnection );
  2152. HRESULT WillConnect (
  2153. BSTR * ConnectionString,
  2154. BSTR * UserID,
  2155. BSTR * Password,
  2156. long * Options,
  2157. enum EventStatusEnum * adStatus,
  2158. struct _Connection * pConnection );
  2159. HRESULT ConnectComplete (
  2160. struct Error * pError,
  2161. enum EventStatusEnum * adStatus,
  2162. struct _Connection * pConnection );
  2163. HRESULT Disconnect (
  2164. enum EventStatusEnum * adStatus,
  2165. struct _Connection * pConnection );
  2166. };
  2167. struct __declspec(uuid("00000266-0000-0010-8000-00aa006d2ea4"))
  2168. RecordsetEvents : IDispatch
  2169. {
  2170. //
  2171. // Wrapper methods for error-handling
  2172. //
  2173. // Methods:
  2174. HRESULT WillChangeField (
  2175. long cFields,
  2176. const _variant_t & Fields,
  2177. enum EventStatusEnum * adStatus,
  2178. struct _Recordset * pRecordset );
  2179. HRESULT FieldChangeComplete (
  2180. long cFields,
  2181. const _variant_t & Fields,
  2182. struct Error * pError,
  2183. enum EventStatusEnum * adStatus,
  2184. struct _Recordset * pRecordset );
  2185. HRESULT WillChangeRecord (
  2186. enum EventReasonEnum adReason,
  2187. long cRecords,
  2188. enum EventStatusEnum * adStatus,
  2189. struct _Recordset * pRecordset );
  2190. HRESULT RecordChangeComplete (
  2191. enum EventReasonEnum adReason,
  2192. long cRecords,
  2193. struct Error * pError,
  2194. enum EventStatusEnum * adStatus,
  2195. struct _Recordset * pRecordset );
  2196. HRESULT WillChangeRecordset (
  2197. enum EventReasonEnum adReason,
  2198. enum EventStatusEnum * adStatus,
  2199. struct _Recordset * pRecordset );
  2200. HRESULT RecordsetChangeComplete (
  2201. enum EventReasonEnum adReason,
  2202. struct Error * pError,
  2203. enum EventStatusEnum * adStatus,
  2204. struct _Recordset * pRecordset );
  2205. HRESULT WillMove (
  2206. enum EventReasonEnum adReason,
  2207. enum EventStatusEnum * adStatus,
  2208. struct _Recordset * pRecordset );
  2209. HRESULT MoveComplete (
  2210. enum EventReasonEnum adReason,
  2211. struct Error * pError,
  2212. enum EventStatusEnum * adStatus,
  2213. struct _Recordset * pRecordset );
  2214. HRESULT EndOfRecordset (
  2215. VARIANT_BOOL * fMoreData,
  2216. enum EventStatusEnum * adStatus,
  2217. struct _Recordset * pRecordset );
  2218. HRESULT FetchProgress (
  2219. long Progress,
  2220. long MaxProgress,
  2221. enum EventStatusEnum * adStatus,
  2222. struct _Recordset * pRecordset );
  2223. HRESULT FetchComplete (
  2224. struct Error * pError,
  2225. enum EventStatusEnum * adStatus,
  2226. struct _Recordset * pRecordset );
  2227. };
  2228. struct __declspec(uuid("00000516-0000-0010-8000-00aa006d2ea4"))
  2229. ADOConnectionConstruction15 : IUnknown
  2230. {
  2231. //
  2232. // Property data
  2233. //
  2234. __declspec(property(get=GetDSO))
  2235. IUnknownPtr DSO;
  2236. __declspec(property(get=GetSession))
  2237. IUnknownPtr Session;
  2238. //
  2239. // Wrapper methods for error-handling
  2240. //
  2241. IUnknownPtr GetDSO ( );
  2242. IUnknownPtr GetSession ( );
  2243. HRESULT WrapDSOandSession (
  2244. IUnknown * pDSO,
  2245. IUnknown * pSession );
  2246. //
  2247. // Raw methods provided by interface
  2248. //
  2249. virtual HRESULT __stdcall get_DSO (
  2250. IUnknown * * ppDSO ) = 0;
  2251. virtual HRESULT __stdcall get_Session (
  2252. IUnknown * * ppSession ) = 0;
  2253. virtual HRESULT __stdcall raw_WrapDSOandSession (
  2254. IUnknown * pDSO,
  2255. IUnknown * pSession ) = 0;
  2256. };
  2257. struct __declspec(uuid("00000551-0000-0010-8000-00aa006d2ea4"))
  2258. ADOConnectionConstruction : ADOConnectionConstruction15
  2259. {};
  2260. struct __declspec(uuid("00000514-0000-0010-8000-00aa006d2ea4"))
  2261. Connection;
  2262. // [ default ] interface _Connection
  2263. // [ default, source ] dispinterface ConnectionEvents
  2264. struct __declspec(uuid("00000562-0000-0010-8000-00aa006d2ea4"))
  2265. _Record : _ADO
  2266. {
  2267. //
  2268. // Property data
  2269. //
  2270. __declspec(property(get=GetFields))
  2271. FieldsPtr Fields;
  2272. __declspec(property(get=GetState))
  2273. enum ObjectStateEnum State;
  2274. __declspec(property(get=GetMode,put=PutMode))
  2275. enum ConnectModeEnum Mode;
  2276. __declspec(property(get=GetParentURL))
  2277. _bstr_t ParentURL;
  2278. __declspec(property(get=GetRecordType))
  2279. enum RecordTypeEnum RecordType;
  2280. //
  2281. // Wrapper methods for error-handling
  2282. //
  2283. _variant_t GetActiveConnection ( );
  2284. void PutActiveConnection (
  2285. _bstr_t pvar );
  2286. void PutRefActiveConnection (
  2287. struct _Connection * pvar );
  2288. enum ObjectStateEnum GetState ( );
  2289. _variant_t GetSource ( );
  2290. void PutSource (
  2291. _bstr_t pvar );
  2292. void PutRefSource (
  2293. IDispatch * pvar );
  2294. enum ConnectModeEnum GetMode ( );
  2295. void PutMode (
  2296. enum ConnectModeEnum pMode );
  2297. _bstr_t GetParentURL ( );
  2298. _bstr_t MoveRecord (
  2299. _bstr_t Source,
  2300. _bstr_t Destination,
  2301. _bstr_t UserName,
  2302. _bstr_t Password,
  2303. enum MoveRecordOptionsEnum Options,
  2304. VARIANT_BOOL Async );
  2305. _bstr_t CopyRecord (
  2306. _bstr_t Source,
  2307. _bstr_t Destination,
  2308. _bstr_t UserName,
  2309. _bstr_t Password,
  2310. enum CopyRecordOptionsEnum Options,
  2311. VARIANT_BOOL Async );
  2312. HRESULT DeleteRecord (
  2313. _bstr_t Source,
  2314. VARIANT_BOOL Async );
  2315. HRESULT Open (
  2316. const _variant_t & Source,
  2317. const _variant_t & ActiveConnection,
  2318. enum ConnectModeEnum Mode,
  2319. enum RecordCreateOptionsEnum CreateOptions,
  2320. enum RecordOpenOptionsEnum Options,
  2321. _bstr_t UserName,
  2322. _bstr_t Password );
  2323. HRESULT Close ( );
  2324. FieldsPtr GetFields ( );
  2325. enum RecordTypeEnum GetRecordType ( );
  2326. _RecordsetPtr GetChildren ( );
  2327. HRESULT Cancel ( );
  2328. //
  2329. // Raw methods provided by interface
  2330. //
  2331. virtual HRESULT __stdcall get_ActiveConnection (
  2332. VARIANT * pvar ) = 0;
  2333. virtual HRESULT __stdcall put_ActiveConnection (
  2334. BSTR pvar ) = 0;
  2335. virtual HRESULT __stdcall putref_ActiveConnection (
  2336. struct _Connection * pvar ) = 0;
  2337. virtual HRESULT __stdcall get_State (
  2338. enum ObjectStateEnum * pState ) = 0;
  2339. virtual HRESULT __stdcall get_Source (
  2340. VARIANT * pvar ) = 0;
  2341. virtual HRESULT __stdcall put_Source (
  2342. BSTR pvar ) = 0;
  2343. virtual HRESULT __stdcall putref_Source (
  2344. IDispatch * pvar ) = 0;
  2345. virtual HRESULT __stdcall get_Mode (
  2346. enum ConnectModeEnum * pMode ) = 0;
  2347. virtual HRESULT __stdcall put_Mode (
  2348. enum ConnectModeEnum pMode ) = 0;
  2349. virtual HRESULT __stdcall get_ParentURL (
  2350. BSTR * pbstrParentURL ) = 0;
  2351. virtual HRESULT __stdcall raw_MoveRecord (
  2352. BSTR Source,
  2353. BSTR Destination,
  2354. BSTR UserName,
  2355. BSTR Password,
  2356. enum MoveRecordOptionsEnum Options,
  2357. VARIANT_BOOL Async,
  2358. BSTR * pbstrNewURL ) = 0;
  2359. virtual HRESULT __stdcall raw_CopyRecord (
  2360. BSTR Source,
  2361. BSTR Destination,
  2362. BSTR UserName,
  2363. BSTR Password,
  2364. enum CopyRecordOptionsEnum Options,
  2365. VARIANT_BOOL Async,
  2366. BSTR * pbstrNewURL ) = 0;
  2367. virtual HRESULT __stdcall raw_DeleteRecord (
  2368. BSTR Source,
  2369. VARIANT_BOOL Async ) = 0;
  2370. virtual HRESULT __stdcall raw_Open (
  2371. VARIANT Source,
  2372. VARIANT ActiveConnection,
  2373. enum ConnectModeEnum Mode,
  2374. enum RecordCreateOptionsEnum CreateOptions,
  2375. enum RecordOpenOptionsEnum Options,
  2376. BSTR UserName,
  2377. BSTR Password ) = 0;
  2378. virtual HRESULT __stdcall raw_Close ( ) = 0;
  2379. virtual HRESULT __stdcall get_Fields (
  2380. struct Fields * * ppFlds ) = 0;
  2381. virtual HRESULT __stdcall get_RecordType (
  2382. enum RecordTypeEnum * ptype ) = 0;
  2383. virtual HRESULT __stdcall raw_GetChildren (
  2384. struct _Recordset * * pprset ) = 0;
  2385. virtual HRESULT __stdcall raw_Cancel ( ) = 0;
  2386. };
  2387. struct __declspec(uuid("00000560-0000-0010-8000-00aa006d2ea4"))
  2388. Record;
  2389. // [ default ] interface _Record
  2390. struct __declspec(uuid("00000563-0000-0010-8000-00aa006d2ea4"))
  2391. IRecFields : IUnknown
  2392. {
  2393. //
  2394. // Wrapper methods for error-handling
  2395. //
  2396. HRESULT ADOCheck ( );
  2397. //
  2398. // Raw methods provided by interface
  2399. //
  2400. virtual HRESULT __stdcall raw_ADOCheck ( ) = 0;
  2401. };
  2402. struct __declspec(uuid("00000565-0000-0010-8000-00aa006d2ea4"))
  2403. _Stream : IDispatch
  2404. {
  2405. //
  2406. // Property data
  2407. //
  2408. __declspec(property(get=GetSize))
  2409. long Size;
  2410. __declspec(property(get=GetEOS))
  2411. VARIANT_BOOL EOS;
  2412. __declspec(property(get=GetPosition,put=PutPosition))
  2413. long Position;
  2414. __declspec(property(get=GetType,put=PutType))
  2415. enum StreamTypeEnum Type;
  2416. __declspec(property(get=GetLineSeparator,put=PutLineSeparator))
  2417. enum LineSeparatorEnum LineSeparator;
  2418. __declspec(property(get=GetState))
  2419. enum ObjectStateEnum State;
  2420. __declspec(property(get=GetMode,put=PutMode))
  2421. enum ConnectModeEnum Mode;
  2422. __declspec(property(get=GetCharset,put=PutCharset))
  2423. _bstr_t Charset;
  2424. //
  2425. // Wrapper methods for error-handling
  2426. //
  2427. long GetSize ( );
  2428. VARIANT_BOOL GetEOS ( );
  2429. long GetPosition ( );
  2430. void PutPosition (
  2431. long pPos );
  2432. enum StreamTypeEnum GetType ( );
  2433. void PutType (
  2434. enum StreamTypeEnum ptype );
  2435. enum LineSeparatorEnum GetLineSeparator ( );
  2436. void PutLineSeparator (
  2437. enum LineSeparatorEnum pLS );
  2438. enum ObjectStateEnum GetState ( );
  2439. enum ConnectModeEnum GetMode ( );
  2440. void PutMode (
  2441. enum ConnectModeEnum pMode );
  2442. _bstr_t GetCharset ( );
  2443. void PutCharset (
  2444. _bstr_t pbstrCharset );
  2445. _variant_t Read (
  2446. long NumBytes );
  2447. HRESULT Open (
  2448. const _variant_t & Source,
  2449. enum ConnectModeEnum Mode,
  2450. enum StreamOpenOptionsEnum Options,
  2451. _bstr_t UserName,
  2452. _bstr_t Password );
  2453. HRESULT Close ( );
  2454. HRESULT SkipLine ( );
  2455. HRESULT Write (
  2456. const _variant_t & Buffer );
  2457. HRESULT SetEOS ( );
  2458. HRESULT CopyTo (
  2459. struct _Stream * DestStream,
  2460. long CharNumber );
  2461. HRESULT Flush ( );
  2462. HRESULT SaveToFile (
  2463. _bstr_t FileName,
  2464. enum SaveOptionsEnum Options );
  2465. HRESULT LoadFromFile (
  2466. _bstr_t FileName );
  2467. _bstr_t ReadText (
  2468. long NumChars );
  2469. HRESULT WriteText (
  2470. _bstr_t Data,
  2471. enum StreamWriteEnum Options );
  2472. HRESULT Cancel ( );
  2473. //
  2474. // Raw methods provided by interface
  2475. //
  2476. virtual HRESULT __stdcall get_Size (
  2477. long * pSize ) = 0;
  2478. virtual HRESULT __stdcall get_EOS (
  2479. VARIANT_BOOL * pEOS ) = 0;
  2480. virtual HRESULT __stdcall get_Position (
  2481. long * pPos ) = 0;
  2482. virtual HRESULT __stdcall put_Position (
  2483. long pPos ) = 0;
  2484. virtual HRESULT __stdcall get_Type (
  2485. enum StreamTypeEnum * ptype ) = 0;
  2486. virtual HRESULT __stdcall put_Type (
  2487. enum StreamTypeEnum ptype ) = 0;
  2488. virtual HRESULT __stdcall get_LineSeparator (
  2489. enum LineSeparatorEnum * pLS ) = 0;
  2490. virtual HRESULT __stdcall put_LineSeparator (
  2491. enum LineSeparatorEnum pLS ) = 0;
  2492. virtual HRESULT __stdcall get_State (
  2493. enum ObjectStateEnum * pState ) = 0;
  2494. virtual HRESULT __stdcall get_Mode (
  2495. enum ConnectModeEnum * pMode ) = 0;
  2496. virtual HRESULT __stdcall put_Mode (
  2497. enum ConnectModeEnum pMode ) = 0;
  2498. virtual HRESULT __stdcall get_Charset (
  2499. BSTR * pbstrCharset ) = 0;
  2500. virtual HRESULT __stdcall put_Charset (
  2501. BSTR pbstrCharset ) = 0;
  2502. virtual HRESULT __stdcall raw_Read (
  2503. long NumBytes,
  2504. VARIANT * pval ) = 0;
  2505. virtual HRESULT __stdcall raw_Open (
  2506. VARIANT Source,
  2507. enum ConnectModeEnum Mode,
  2508. enum StreamOpenOptionsEnum Options,
  2509. BSTR UserName,
  2510. BSTR Password ) = 0;
  2511. virtual HRESULT __stdcall raw_Close ( ) = 0;
  2512. virtual HRESULT __stdcall raw_SkipLine ( ) = 0;
  2513. virtual HRESULT __stdcall raw_Write (
  2514. VARIANT Buffer ) = 0;
  2515. virtual HRESULT __stdcall raw_SetEOS ( ) = 0;
  2516. virtual HRESULT __stdcall raw_CopyTo (
  2517. struct _Stream * DestStream,
  2518. long CharNumber ) = 0;
  2519. virtual HRESULT __stdcall raw_Flush ( ) = 0;
  2520. virtual HRESULT __stdcall raw_SaveToFile (
  2521. BSTR FileName,
  2522. enum SaveOptionsEnum Options ) = 0;
  2523. virtual HRESULT __stdcall raw_LoadFromFile (
  2524. BSTR FileName ) = 0;
  2525. virtual HRESULT __stdcall raw_ReadText (
  2526. long NumChars,
  2527. BSTR * pbstr ) = 0;
  2528. virtual HRESULT __stdcall raw_WriteText (
  2529. BSTR Data,
  2530. enum StreamWriteEnum Options ) = 0;
  2531. virtual HRESULT __stdcall raw_Cancel ( ) = 0;
  2532. };
  2533. struct __declspec(uuid("00000566-0000-0010-8000-00aa006d2ea4"))
  2534. Stream;
  2535. // [ default ] interface _Stream
  2536. struct __declspec(uuid("00000567-0000-0010-8000-00aa006d2ea4"))
  2537. ADORecordConstruction : IDispatch
  2538. {
  2539. //
  2540. // Property data
  2541. //
  2542. __declspec(property(get=GetRow,put=PutRow))
  2543. IUnknownPtr Row;
  2544. __declspec(property(put=PutParentRow))
  2545. IUnknownPtr ParentRow;
  2546. //
  2547. // Wrapper methods for error-handling
  2548. //
  2549. IUnknownPtr GetRow ( );
  2550. void PutRow (
  2551. IUnknown * ppRow );
  2552. void PutParentRow (
  2553. IUnknown * _arg1 );
  2554. //
  2555. // Raw methods provided by interface
  2556. //
  2557. virtual HRESULT __stdcall get_Row (
  2558. IUnknown * * ppRow ) = 0;
  2559. virtual HRESULT __stdcall put_Row (
  2560. IUnknown * ppRow ) = 0;
  2561. virtual HRESULT __stdcall put_ParentRow (
  2562. IUnknown * _arg1 ) = 0;
  2563. };
  2564. struct __declspec(uuid("00000568-0000-0010-8000-00aa006d2ea4"))
  2565. ADOStreamConstruction : IDispatch
  2566. {
  2567. //
  2568. // Property data
  2569. //
  2570. __declspec(property(get=GetStream,put=PutStream))
  2571. IUnknownPtr Stream;
  2572. //
  2573. // Wrapper methods for error-handling
  2574. //
  2575. IUnknownPtr GetStream ( );
  2576. void PutStream (
  2577. IUnknown * ppStm );
  2578. //
  2579. // Raw methods provided by interface
  2580. //
  2581. virtual HRESULT __stdcall get_Stream (
  2582. IUnknown * * ppStm ) = 0;
  2583. virtual HRESULT __stdcall put_Stream (
  2584. IUnknown * ppStm ) = 0;
  2585. };
  2586. struct __declspec(uuid("00000517-0000-0010-8000-00aa006d2ea4"))
  2587. ADOCommandConstruction : IUnknown
  2588. {
  2589. //
  2590. // Property data
  2591. //
  2592. __declspec(property(get=GetOLEDBCommand,put=PutOLEDBCommand))
  2593. IUnknownPtr OLEDBCommand;
  2594. //
  2595. // Wrapper methods for error-handling
  2596. //
  2597. IUnknownPtr GetOLEDBCommand ( );
  2598. void PutOLEDBCommand (
  2599. IUnknown * ppOLEDBCommand );
  2600. //
  2601. // Raw methods provided by interface
  2602. //
  2603. virtual HRESULT __stdcall get_OLEDBCommand (
  2604. IUnknown * * ppOLEDBCommand ) = 0;
  2605. virtual HRESULT __stdcall put_OLEDBCommand (
  2606. IUnknown * ppOLEDBCommand ) = 0;
  2607. };
  2608. struct __declspec(uuid("00000507-0000-0010-8000-00aa006d2ea4"))
  2609. Command;
  2610. // [ default ] interface _Command
  2611. struct __declspec(uuid("00000535-0000-0010-8000-00aa006d2ea4"))
  2612. Recordset;
  2613. // [ default ] interface _Recordset
  2614. // [ default, source ] dispinterface RecordsetEvents
  2615. struct __declspec(uuid("00000283-0000-0010-8000-00aa006d2ea4"))
  2616. ADORecordsetConstruction : IDispatch
  2617. {
  2618. //
  2619. // Property data
  2620. //
  2621. __declspec(property(get=GetRowset,put=PutRowset))
  2622. IUnknownPtr Rowset;
  2623. __declspec(property(get=GetChapter,put=PutChapter))
  2624. long Chapter;
  2625. __declspec(property(get=GetRowPosition,put=PutRowPosition))
  2626. IUnknownPtr RowPosition;
  2627. //
  2628. // Wrapper methods for error-handling
  2629. //
  2630. IUnknownPtr GetRowset ( );
  2631. void PutRowset (
  2632. IUnknown * ppRowset );
  2633. long GetChapter ( );
  2634. void PutChapter (
  2635. long plChapter );
  2636. IUnknownPtr GetRowPosition ( );
  2637. void PutRowPosition (
  2638. IUnknown * ppRowPos );
  2639. //
  2640. // Raw methods provided by interface
  2641. //
  2642. virtual HRESULT __stdcall get_Rowset (
  2643. IUnknown * * ppRowset ) = 0;
  2644. virtual HRESULT __stdcall put_Rowset (
  2645. IUnknown * ppRowset ) = 0;
  2646. virtual HRESULT __stdcall get_Chapter (
  2647. long * plChapter ) = 0;
  2648. virtual HRESULT __stdcall put_Chapter (
  2649. long plChapter ) = 0;
  2650. virtual HRESULT __stdcall get_RowPosition (
  2651. IUnknown * * ppRowPos ) = 0;
  2652. virtual HRESULT __stdcall put_RowPosition (
  2653. IUnknown * ppRowPos ) = 0;
  2654. };
  2655. struct __declspec(uuid("00000505-0000-0010-8000-00aa006d2ea4"))
  2656. Field15 : _ADO
  2657. {
  2658. //
  2659. // Property data
  2660. //
  2661. __declspec(property(get=GetValue,put=PutValue))
  2662. _variant_t Value;
  2663. __declspec(property(get=GetName))
  2664. _bstr_t Name;
  2665. __declspec(property(get=GetType))
  2666. enum DataTypeEnum Type;
  2667. __declspec(property(get=GetDefinedSize))
  2668. long DefinedSize;
  2669. __declspec(property(get=GetOriginalValue))
  2670. _variant_t OriginalValue;
  2671. __declspec(property(get=GetUnderlyingValue))
  2672. _variant_t UnderlyingValue;
  2673. __declspec(property(get=GetActualSize))
  2674. long ActualSize;
  2675. __declspec(property(get=GetPrecision))
  2676. unsigned char Precision;
  2677. __declspec(property(get=GetNumericScale))
  2678. unsigned char NumericScale;
  2679. __declspec(property(get=GetAttributes))
  2680. long Attributes;
  2681. //
  2682. // Wrapper methods for error-handling
  2683. //
  2684. long GetActualSize ( );
  2685. long GetAttributes ( );
  2686. long GetDefinedSize ( );
  2687. _bstr_t GetName ( );
  2688. enum DataTypeEnum GetType ( );
  2689. _variant_t GetValue ( );
  2690. void PutValue (
  2691. const _variant_t & pvar );
  2692. unsigned char GetPrecision ( );
  2693. unsigned char GetNumericScale ( );
  2694. HRESULT AppendChunk (
  2695. const _variant_t & Data );
  2696. _variant_t GetChunk (
  2697. long Length );
  2698. _variant_t GetOriginalValue ( );
  2699. _variant_t GetUnderlyingValue ( );
  2700. //
  2701. // Raw methods provided by interface
  2702. //
  2703. virtual HRESULT __stdcall get_ActualSize (
  2704. long * pl ) = 0;
  2705. virtual HRESULT __stdcall get_Attributes (
  2706. long * pl ) = 0;
  2707. virtual HRESULT __stdcall get_DefinedSize (
  2708. long * pl ) = 0;
  2709. virtual HRESULT __stdcall get_Name (
  2710. BSTR * pbstr ) = 0;
  2711. virtual HRESULT __stdcall get_Type (
  2712. enum DataTypeEnum * pDataType ) = 0;
  2713. virtual HRESULT __stdcall get_Value (
  2714. VARIANT * pvar ) = 0;
  2715. virtual HRESULT __stdcall put_Value (
  2716. VARIANT pvar ) = 0;
  2717. virtual HRESULT __stdcall get_Precision (
  2718. unsigned char * pbPrecision ) = 0;
  2719. virtual HRESULT __stdcall get_NumericScale (
  2720. unsigned char * pbNumericScale ) = 0;
  2721. virtual HRESULT __stdcall raw_AppendChunk (
  2722. VARIANT Data ) = 0;
  2723. virtual HRESULT __stdcall raw_GetChunk (
  2724. long Length,
  2725. VARIANT * pvar ) = 0;
  2726. virtual HRESULT __stdcall get_OriginalValue (
  2727. VARIANT * pvar ) = 0;
  2728. virtual HRESULT __stdcall get_UnderlyingValue (
  2729. VARIANT * pvar ) = 0;
  2730. };
  2731. struct __declspec(uuid("0000050b-0000-0010-8000-00aa006d2ea4"))
  2732. Parameter;
  2733. // [ default ] interface _Parameter
  2734. //
  2735. // Wrapper method implementations
  2736. //
  2737. //
  2738. // interface _Collection wrapper method implementations
  2739. //
  2740. inline long _Collection::GetCount ( ) {
  2741. long _result;
  2742. HRESULT _hr = get_Count(&_result);
  2743. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2744. return _result;
  2745. }
  2746. inline IUnknownPtr _Collection::_NewEnum ( ) {
  2747. IUnknown * _result;
  2748. HRESULT _hr = raw__NewEnum(&_result);
  2749. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2750. return IUnknownPtr(_result, false);
  2751. }
  2752. inline HRESULT _Collection::Refresh ( ) {
  2753. HRESULT _hr = raw_Refresh();
  2754. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2755. return _hr;
  2756. }
  2757. //
  2758. // interface _DynaCollection wrapper method implementations
  2759. //
  2760. inline HRESULT _DynaCollection::Append ( IDispatch * Object ) {
  2761. HRESULT _hr = raw_Append(Object);
  2762. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2763. return _hr;
  2764. }
  2765. inline HRESULT _DynaCollection::Delete ( const _variant_t & Index ) {
  2766. HRESULT _hr = raw_Delete(Index);
  2767. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2768. return _hr;
  2769. }
  2770. //
  2771. // interface _ADO wrapper method implementations
  2772. //
  2773. inline PropertiesPtr _ADO::GetProperties ( ) {
  2774. struct Properties * _result;
  2775. HRESULT _hr = get_Properties(&_result);
  2776. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2777. return PropertiesPtr(_result, false);
  2778. }
  2779. //
  2780. // interface Properties wrapper method implementations
  2781. //
  2782. inline PropertyPtr Properties::GetItem ( const _variant_t & Index ) {
  2783. struct Property * _result;
  2784. HRESULT _hr = get_Item(Index, &_result);
  2785. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2786. return PropertyPtr(_result, false);
  2787. }
  2788. //
  2789. // interface Property wrapper method implementations
  2790. //
  2791. inline _variant_t Property::GetValue ( ) {
  2792. VARIANT _result;
  2793. VariantInit(&_result);
  2794. HRESULT _hr = get_Value(&_result);
  2795. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2796. return _variant_t(_result, false);
  2797. }
  2798. inline void Property::PutValue ( const _variant_t & pval ) {
  2799. HRESULT _hr = put_Value(pval);
  2800. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2801. }
  2802. inline _bstr_t Property::GetName ( ) {
  2803. BSTR _result;
  2804. HRESULT _hr = get_Name(&_result);
  2805. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2806. return _bstr_t(_result, false);
  2807. }
  2808. inline enum DataTypeEnum Property::GetType ( ) {
  2809. enum DataTypeEnum _result;
  2810. HRESULT _hr = get_Type(&_result);
  2811. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2812. return _result;
  2813. }
  2814. inline long Property::GetAttributes ( ) {
  2815. long _result;
  2816. HRESULT _hr = get_Attributes(&_result);
  2817. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2818. return _result;
  2819. }
  2820. inline void Property::PutAttributes ( long plAttributes ) {
  2821. HRESULT _hr = put_Attributes(plAttributes);
  2822. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2823. }
  2824. //
  2825. // interface Error wrapper method implementations
  2826. //
  2827. inline long Error::GetNumber ( ) {
  2828. long _result;
  2829. HRESULT _hr = get_Number(&_result);
  2830. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2831. return _result;
  2832. }
  2833. inline _bstr_t Error::GetSource ( ) {
  2834. BSTR _result;
  2835. HRESULT _hr = get_Source(&_result);
  2836. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2837. return _bstr_t(_result, false);
  2838. }
  2839. inline _bstr_t Error::GetDescription ( ) {
  2840. BSTR _result;
  2841. HRESULT _hr = get_Description(&_result);
  2842. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2843. return _bstr_t(_result, false);
  2844. }
  2845. inline _bstr_t Error::GetHelpFile ( ) {
  2846. BSTR _result;
  2847. HRESULT _hr = get_HelpFile(&_result);
  2848. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2849. return _bstr_t(_result, false);
  2850. }
  2851. inline long Error::GetHelpContext ( ) {
  2852. long _result;
  2853. HRESULT _hr = get_HelpContext(&_result);
  2854. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2855. return _result;
  2856. }
  2857. inline _bstr_t Error::GetSQLState ( ) {
  2858. BSTR _result;
  2859. HRESULT _hr = get_SQLState(&_result);
  2860. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2861. return _bstr_t(_result, false);
  2862. }
  2863. inline long Error::GetNativeError ( ) {
  2864. long _result;
  2865. HRESULT _hr = get_NativeError(&_result);
  2866. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2867. return _result;
  2868. }
  2869. //
  2870. // interface Errors wrapper method implementations
  2871. //
  2872. inline ErrorPtr Errors::GetItem ( const _variant_t & Index ) {
  2873. struct Error * _result;
  2874. HRESULT _hr = get_Item(Index, &_result);
  2875. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2876. return ErrorPtr(_result, false);
  2877. }
  2878. inline HRESULT Errors::Clear ( ) {
  2879. HRESULT _hr = raw_Clear();
  2880. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2881. return _hr;
  2882. }
  2883. //
  2884. // interface Command15 wrapper method implementations
  2885. //
  2886. inline _ConnectionPtr Command15::GetActiveConnection ( ) {
  2887. struct _Connection * _result;
  2888. HRESULT _hr = get_ActiveConnection(&_result);
  2889. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2890. return _ConnectionPtr(_result, false);
  2891. }
  2892. inline void Command15::PutRefActiveConnection ( struct _Connection * ppvObject ) {
  2893. HRESULT _hr = putref_ActiveConnection(ppvObject);
  2894. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2895. }
  2896. inline void Command15::PutActiveConnection ( const _variant_t & ppvObject ) {
  2897. HRESULT _hr = put_ActiveConnection(ppvObject);
  2898. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2899. }
  2900. inline _bstr_t Command15::GetCommandText ( ) {
  2901. BSTR _result;
  2902. HRESULT _hr = get_CommandText(&_result);
  2903. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2904. return _bstr_t(_result, false);
  2905. }
  2906. inline void Command15::PutCommandText ( _bstr_t pbstr ) {
  2907. HRESULT _hr = put_CommandText(pbstr);
  2908. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2909. }
  2910. inline long Command15::GetCommandTimeout ( ) {
  2911. long _result;
  2912. HRESULT _hr = get_CommandTimeout(&_result);
  2913. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2914. return _result;
  2915. }
  2916. inline void Command15::PutCommandTimeout ( long pl ) {
  2917. HRESULT _hr = put_CommandTimeout(pl);
  2918. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2919. }
  2920. inline VARIANT_BOOL Command15::GetPrepared ( ) {
  2921. VARIANT_BOOL _result;
  2922. HRESULT _hr = get_Prepared(&_result);
  2923. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2924. return _result;
  2925. }
  2926. inline void Command15::PutPrepared ( VARIANT_BOOL pfPrepared ) {
  2927. HRESULT _hr = put_Prepared(pfPrepared);
  2928. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2929. }
  2930. inline _RecordsetPtr Command15::Execute ( VARIANT * RecordsAffected, VARIANT * Parameters, long Options ) {
  2931. struct _Recordset * _result;
  2932. HRESULT _hr = raw_Execute(RecordsAffected, Parameters, Options, &_result);
  2933. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2934. return _RecordsetPtr(_result, false);
  2935. }
  2936. inline _ParameterPtr Command15::CreateParameter ( _bstr_t Name, enum DataTypeEnum Type, enum ParameterDirectionEnum Direction, long Size, const _variant_t & Value ) {
  2937. struct _Parameter * _result;
  2938. HRESULT _hr = raw_CreateParameter(Name, Type, Direction, Size, Value, &_result);
  2939. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2940. return _ParameterPtr(_result, false);
  2941. }
  2942. inline ParametersPtr Command15::GetParameters ( ) {
  2943. struct Parameters * _result;
  2944. HRESULT _hr = get_Parameters(&_result);
  2945. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2946. return ParametersPtr(_result, false);
  2947. }
  2948. inline void Command15::PutCommandType ( enum CommandTypeEnum plCmdType ) {
  2949. HRESULT _hr = put_CommandType(plCmdType);
  2950. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2951. }
  2952. inline enum CommandTypeEnum Command15::GetCommandType ( ) {
  2953. enum CommandTypeEnum _result;
  2954. HRESULT _hr = get_CommandType(&_result);
  2955. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2956. return _result;
  2957. }
  2958. inline _bstr_t Command15::GetName ( ) {
  2959. BSTR _result;
  2960. HRESULT _hr = get_Name(&_result);
  2961. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2962. return _bstr_t(_result, false);
  2963. }
  2964. inline void Command15::PutName ( _bstr_t pbstrName ) {
  2965. HRESULT _hr = put_Name(pbstrName);
  2966. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2967. }
  2968. //
  2969. // interface Connection15 wrapper method implementations
  2970. //
  2971. inline _bstr_t Connection15::GetConnectionString ( ) {
  2972. BSTR _result;
  2973. HRESULT _hr = get_ConnectionString(&_result);
  2974. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2975. return _bstr_t(_result, false);
  2976. }
  2977. inline void Connection15::PutConnectionString ( _bstr_t pbstr ) {
  2978. HRESULT _hr = put_ConnectionString(pbstr);
  2979. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2980. }
  2981. inline long Connection15::GetCommandTimeout ( ) {
  2982. long _result;
  2983. HRESULT _hr = get_CommandTimeout(&_result);
  2984. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2985. return _result;
  2986. }
  2987. inline void Connection15::PutCommandTimeout ( long plTimeout ) {
  2988. HRESULT _hr = put_CommandTimeout(plTimeout);
  2989. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2990. }
  2991. inline long Connection15::GetConnectionTimeout ( ) {
  2992. long _result;
  2993. HRESULT _hr = get_ConnectionTimeout(&_result);
  2994. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  2995. return _result;
  2996. }
  2997. inline void Connection15::PutConnectionTimeout ( long plTimeout ) {
  2998. HRESULT _hr = put_ConnectionTimeout(plTimeout);
  2999. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3000. }
  3001. inline _bstr_t Connection15::GetVersion ( ) {
  3002. BSTR _result;
  3003. HRESULT _hr = get_Version(&_result);
  3004. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3005. return _bstr_t(_result, false);
  3006. }
  3007. inline HRESULT Connection15::Close ( ) {
  3008. HRESULT _hr = raw_Close();
  3009. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3010. return _hr;
  3011. }
  3012. inline _RecordsetPtr Connection15::Execute ( _bstr_t CommandText, VARIANT * RecordsAffected, long Options ) {
  3013. struct _Recordset * _result;
  3014. HRESULT _hr = raw_Execute(CommandText, RecordsAffected, Options, &_result);
  3015. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3016. return _RecordsetPtr(_result, false);
  3017. }
  3018. inline long Connection15::BeginTrans ( ) {
  3019. long _result;
  3020. HRESULT _hr = raw_BeginTrans(&_result);
  3021. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3022. return _result;
  3023. }
  3024. inline HRESULT Connection15::CommitTrans ( ) {
  3025. HRESULT _hr = raw_CommitTrans();
  3026. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3027. return _hr;
  3028. }
  3029. inline HRESULT Connection15::RollbackTrans ( ) {
  3030. HRESULT _hr = raw_RollbackTrans();
  3031. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3032. return _hr;
  3033. }
  3034. inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) {
  3035. HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options);
  3036. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3037. return _hr;
  3038. }
  3039. inline ErrorsPtr Connection15::GetErrors ( ) {
  3040. struct Errors * _result;
  3041. HRESULT _hr = get_Errors(&_result);
  3042. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3043. return ErrorsPtr(_result, false);
  3044. }
  3045. inline _bstr_t Connection15::GetDefaultDatabase ( ) {
  3046. BSTR _result;
  3047. HRESULT _hr = get_DefaultDatabase(&_result);
  3048. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3049. return _bstr_t(_result, false);
  3050. }
  3051. inline void Connection15::PutDefaultDatabase ( _bstr_t pbstr ) {
  3052. HRESULT _hr = put_DefaultDatabase(pbstr);
  3053. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3054. }
  3055. inline enum IsolationLevelEnum Connection15::GetIsolationLevel ( ) {
  3056. enum IsolationLevelEnum _result;
  3057. HRESULT _hr = get_IsolationLevel(&_result);
  3058. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3059. return _result;
  3060. }
  3061. inline void Connection15::PutIsolationLevel ( enum IsolationLevelEnum Level ) {
  3062. HRESULT _hr = put_IsolationLevel(Level);
  3063. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3064. }
  3065. inline long Connection15::GetAttributes ( ) {
  3066. long _result;
  3067. HRESULT _hr = get_Attributes(&_result);
  3068. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3069. return _result;
  3070. }
  3071. inline void Connection15::PutAttributes ( long plAttr ) {
  3072. HRESULT _hr = put_Attributes(plAttr);
  3073. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3074. }
  3075. inline enum CursorLocationEnum Connection15::GetCursorLocation ( ) {
  3076. enum CursorLocationEnum _result;
  3077. HRESULT _hr = get_CursorLocation(&_result);
  3078. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3079. return _result;
  3080. }
  3081. inline void Connection15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
  3082. HRESULT _hr = put_CursorLocation(plCursorLoc);
  3083. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3084. }
  3085. inline enum ConnectModeEnum Connection15::GetMode ( ) {
  3086. enum ConnectModeEnum _result;
  3087. HRESULT _hr = get_Mode(&_result);
  3088. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3089. return _result;
  3090. }
  3091. inline void Connection15::PutMode ( enum ConnectModeEnum plMode ) {
  3092. HRESULT _hr = put_Mode(plMode);
  3093. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3094. }
  3095. inline _bstr_t Connection15::GetProvider ( ) {
  3096. BSTR _result;
  3097. HRESULT _hr = get_Provider(&_result);
  3098. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3099. return _bstr_t(_result, false);
  3100. }
  3101. inline void Connection15::PutProvider ( _bstr_t pbstr ) {
  3102. HRESULT _hr = put_Provider(pbstr);
  3103. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3104. }
  3105. inline long Connection15::GetState ( ) {
  3106. long _result;
  3107. HRESULT _hr = get_State(&_result);
  3108. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3109. return _result;
  3110. }
  3111. inline _RecordsetPtr Connection15::OpenSchema ( enum SchemaEnum Schema, const _variant_t & Restrictions, const _variant_t & SchemaID ) {
  3112. struct _Recordset * _result;
  3113. HRESULT _hr = raw_OpenSchema(Schema, Restrictions, SchemaID, &_result);
  3114. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3115. return _RecordsetPtr(_result, false);
  3116. }
  3117. //
  3118. // interface _Connection wrapper method implementations
  3119. //
  3120. inline HRESULT _Connection::Cancel ( ) {
  3121. HRESULT _hr = raw_Cancel();
  3122. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3123. return _hr;
  3124. }
  3125. //
  3126. // interface Recordset15 wrapper method implementations
  3127. //
  3128. inline enum PositionEnum Recordset15::GetAbsolutePosition ( ) {
  3129. enum PositionEnum _result;
  3130. HRESULT _hr = get_AbsolutePosition(&_result);
  3131. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3132. return _result;
  3133. }
  3134. inline void Recordset15::PutAbsolutePosition ( enum PositionEnum pl ) {
  3135. HRESULT _hr = put_AbsolutePosition(pl);
  3136. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3137. }
  3138. inline void Recordset15::PutRefActiveConnection ( IDispatch * pvar ) {
  3139. HRESULT _hr = putref_ActiveConnection(pvar);
  3140. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3141. }
  3142. inline void Recordset15::PutActiveConnection ( const _variant_t & pvar ) {
  3143. HRESULT _hr = put_ActiveConnection(pvar);
  3144. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3145. }
  3146. inline _variant_t Recordset15::GetActiveConnection ( ) {
  3147. VARIANT _result;
  3148. VariantInit(&_result);
  3149. HRESULT _hr = get_ActiveConnection(&_result);
  3150. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3151. return _variant_t(_result, false);
  3152. }
  3153. inline VARIANT_BOOL Recordset15::GetBOF ( ) {
  3154. VARIANT_BOOL _result;
  3155. HRESULT _hr = get_BOF(&_result);
  3156. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3157. return _result;
  3158. }
  3159. inline _variant_t Recordset15::GetBookmark ( ) {
  3160. VARIANT _result;
  3161. VariantInit(&_result);
  3162. HRESULT _hr = get_Bookmark(&_result);
  3163. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3164. return _variant_t(_result, false);
  3165. }
  3166. inline void Recordset15::PutBookmark ( const _variant_t & pvBookmark ) {
  3167. HRESULT _hr = put_Bookmark(pvBookmark);
  3168. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3169. }
  3170. inline long Recordset15::GetCacheSize ( ) {
  3171. long _result;
  3172. HRESULT _hr = get_CacheSize(&_result);
  3173. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3174. return _result;
  3175. }
  3176. inline void Recordset15::PutCacheSize ( long pl ) {
  3177. HRESULT _hr = put_CacheSize(pl);
  3178. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3179. }
  3180. inline enum CursorTypeEnum Recordset15::GetCursorType ( ) {
  3181. enum CursorTypeEnum _result;
  3182. HRESULT _hr = get_CursorType(&_result);
  3183. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3184. return _result;
  3185. }
  3186. inline void Recordset15::PutCursorType ( enum CursorTypeEnum plCursorType ) {
  3187. HRESULT _hr = put_CursorType(plCursorType);
  3188. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3189. }
  3190. inline VARIANT_BOOL Recordset15::GetEOF ( ) {
  3191. VARIANT_BOOL _result;
  3192. HRESULT _hr = get_EOF(&_result);
  3193. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3194. return _result;
  3195. }
  3196. inline FieldsPtr Recordset15::GetFields ( ) {
  3197. struct Fields * _result;
  3198. HRESULT _hr = get_Fields(&_result);
  3199. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3200. return FieldsPtr(_result, false);
  3201. }
  3202. inline enum LockTypeEnum Recordset15::GetLockType ( ) {
  3203. enum LockTypeEnum _result;
  3204. HRESULT _hr = get_LockType(&_result);
  3205. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3206. return _result;
  3207. }
  3208. inline void Recordset15::PutLockType ( enum LockTypeEnum plLockType ) {
  3209. HRESULT _hr = put_LockType(plLockType);
  3210. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3211. }
  3212. inline long Recordset15::GetMaxRecords ( ) {
  3213. long _result;
  3214. HRESULT _hr = get_MaxRecords(&_result);
  3215. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3216. return _result;
  3217. }
  3218. inline void Recordset15::PutMaxRecords ( long plMaxRecords ) {
  3219. HRESULT _hr = put_MaxRecords(plMaxRecords);
  3220. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3221. }
  3222. inline long Recordset15::GetRecordCount ( ) {
  3223. long _result;
  3224. HRESULT _hr = get_RecordCount(&_result);
  3225. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3226. return _result;
  3227. }
  3228. inline void Recordset15::PutRefSource ( IDispatch * pvSource ) {
  3229. HRESULT _hr = putref_Source(pvSource);
  3230. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3231. }
  3232. inline void Recordset15::PutSource ( _bstr_t pvSource ) {
  3233. HRESULT _hr = put_Source(pvSource);
  3234. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3235. }
  3236. inline _variant_t Recordset15::GetSource ( ) {
  3237. VARIANT _result;
  3238. VariantInit(&_result);
  3239. HRESULT _hr = get_Source(&_result);
  3240. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3241. return _variant_t(_result, false);
  3242. }
  3243. inline HRESULT Recordset15::AddNew ( const _variant_t & FieldList, const _variant_t & Values ) {
  3244. HRESULT _hr = raw_AddNew(FieldList, Values);
  3245. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3246. return _hr;
  3247. }
  3248. inline HRESULT Recordset15::CancelUpdate ( ) {
  3249. HRESULT _hr = raw_CancelUpdate();
  3250. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3251. return _hr;
  3252. }
  3253. inline HRESULT Recordset15::Close ( ) {
  3254. HRESULT _hr = raw_Close();
  3255. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3256. return _hr;
  3257. }
  3258. inline HRESULT Recordset15::Delete ( enum AffectEnum AffectRecords ) {
  3259. HRESULT _hr = raw_Delete(AffectRecords);
  3260. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3261. return _hr;
  3262. }
  3263. inline _variant_t Recordset15::GetRows ( long Rows, const _variant_t & Start, const _variant_t & Fields ) {
  3264. VARIANT _result;
  3265. VariantInit(&_result);
  3266. HRESULT _hr = raw_GetRows(Rows, Start, Fields, &_result);
  3267. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3268. return _variant_t(_result, false);
  3269. }
  3270. inline HRESULT Recordset15::Move ( long NumRecords, const _variant_t & Start ) {
  3271. HRESULT _hr = raw_Move(NumRecords, Start);
  3272. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3273. return _hr;
  3274. }
  3275. inline HRESULT Recordset15::MoveNext ( ) {
  3276. HRESULT _hr = raw_MoveNext();
  3277. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3278. return _hr;
  3279. }
  3280. inline HRESULT Recordset15::MovePrevious ( ) {
  3281. HRESULT _hr = raw_MovePrevious();
  3282. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3283. return _hr;
  3284. }
  3285. inline HRESULT Recordset15::MoveFirst ( ) {
  3286. HRESULT _hr = raw_MoveFirst();
  3287. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3288. return _hr;
  3289. }
  3290. inline HRESULT Recordset15::MoveLast ( ) {
  3291. HRESULT _hr = raw_MoveLast();
  3292. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3293. return _hr;
  3294. }
  3295. inline HRESULT Recordset15::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum CursorTypeEnum CursorType, enum LockTypeEnum LockType, long Options ) {
  3296. HRESULT _hr = raw_Open(Source, ActiveConnection, CursorType, LockType, Options);
  3297. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3298. return _hr;
  3299. }
  3300. inline HRESULT Recordset15::Requery ( long Options ) {
  3301. HRESULT _hr = raw_Requery(Options);
  3302. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3303. return _hr;
  3304. }
  3305. inline HRESULT Recordset15::_xResync ( enum AffectEnum AffectRecords ) {
  3306. HRESULT _hr = raw__xResync(AffectRecords);
  3307. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3308. return _hr;
  3309. }
  3310. inline HRESULT Recordset15::Update ( const _variant_t & Fields, const _variant_t & Values ) {
  3311. HRESULT _hr = raw_Update(Fields, Values);
  3312. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3313. return _hr;
  3314. }
  3315. inline enum PositionEnum Recordset15::GetAbsolutePage ( ) {
  3316. enum PositionEnum _result;
  3317. HRESULT _hr = get_AbsolutePage(&_result);
  3318. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3319. return _result;
  3320. }
  3321. inline void Recordset15::PutAbsolutePage ( enum PositionEnum pl ) {
  3322. HRESULT _hr = put_AbsolutePage(pl);
  3323. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3324. }
  3325. inline enum EditModeEnum Recordset15::GetEditMode ( ) {
  3326. enum EditModeEnum _result;
  3327. HRESULT _hr = get_EditMode(&_result);
  3328. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3329. return _result;
  3330. }
  3331. inline _variant_t Recordset15::GetFilter ( ) {
  3332. VARIANT _result;
  3333. VariantInit(&_result);
  3334. HRESULT _hr = get_Filter(&_result);
  3335. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3336. return _variant_t(_result, false);
  3337. }
  3338. inline void Recordset15::PutFilter ( const _variant_t & Criteria ) {
  3339. HRESULT _hr = put_Filter(Criteria);
  3340. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3341. }
  3342. inline long Recordset15::GetPageCount ( ) {
  3343. long _result;
  3344. HRESULT _hr = get_PageCount(&_result);
  3345. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3346. return _result;
  3347. }
  3348. inline long Recordset15::GetPageSize ( ) {
  3349. long _result;
  3350. HRESULT _hr = get_PageSize(&_result);
  3351. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3352. return _result;
  3353. }
  3354. inline void Recordset15::PutPageSize ( long pl ) {
  3355. HRESULT _hr = put_PageSize(pl);
  3356. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3357. }
  3358. inline _bstr_t Recordset15::GetSort ( ) {
  3359. BSTR _result;
  3360. HRESULT _hr = get_Sort(&_result);
  3361. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3362. return _bstr_t(_result, false);
  3363. }
  3364. inline void Recordset15::PutSort ( _bstr_t Criteria ) {
  3365. HRESULT _hr = put_Sort(Criteria);
  3366. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3367. }
  3368. inline long Recordset15::GetStatus ( ) {
  3369. long _result;
  3370. HRESULT _hr = get_Status(&_result);
  3371. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3372. return _result;
  3373. }
  3374. inline long Recordset15::GetState ( ) {
  3375. long _result;
  3376. HRESULT _hr = get_State(&_result);
  3377. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3378. return _result;
  3379. }
  3380. inline _RecordsetPtr Recordset15::_xClone ( ) {
  3381. struct _Recordset * _result;
  3382. HRESULT _hr = raw__xClone(&_result);
  3383. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3384. return _RecordsetPtr(_result, false);
  3385. }
  3386. inline HRESULT Recordset15::UpdateBatch ( enum AffectEnum AffectRecords ) {
  3387. HRESULT _hr = raw_UpdateBatch(AffectRecords);
  3388. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3389. return _hr;
  3390. }
  3391. inline HRESULT Recordset15::CancelBatch ( enum AffectEnum AffectRecords ) {
  3392. HRESULT _hr = raw_CancelBatch(AffectRecords);
  3393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3394. return _hr;
  3395. }
  3396. inline enum CursorLocationEnum Recordset15::GetCursorLocation ( ) {
  3397. enum CursorLocationEnum _result;
  3398. HRESULT _hr = get_CursorLocation(&_result);
  3399. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3400. return _result;
  3401. }
  3402. inline void Recordset15::PutCursorLocation ( enum CursorLocationEnum plCursorLoc ) {
  3403. HRESULT _hr = put_CursorLocation(plCursorLoc);
  3404. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3405. }
  3406. inline _RecordsetPtr Recordset15::NextRecordset ( VARIANT * RecordsAffected ) {
  3407. struct _Recordset * _result;
  3408. HRESULT _hr = raw_NextRecordset(RecordsAffected, &_result);
  3409. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3410. return _RecordsetPtr(_result, false);
  3411. }
  3412. inline VARIANT_BOOL Recordset15::Supports ( enum CursorOptionEnum CursorOptions ) {
  3413. VARIANT_BOOL _result;
  3414. HRESULT _hr = raw_Supports(CursorOptions, &_result);
  3415. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3416. return _result;
  3417. }
  3418. inline _variant_t Recordset15::GetCollect ( const _variant_t & Index ) {
  3419. VARIANT _result;
  3420. VariantInit(&_result);
  3421. HRESULT _hr = get_Collect(Index, &_result);
  3422. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3423. return _variant_t(_result, false);
  3424. }
  3425. inline void Recordset15::PutCollect ( const _variant_t & Index, const _variant_t & pvar ) {
  3426. HRESULT _hr = put_Collect(Index, pvar);
  3427. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3428. }
  3429. inline enum MarshalOptionsEnum Recordset15::GetMarshalOptions ( ) {
  3430. enum MarshalOptionsEnum _result;
  3431. HRESULT _hr = get_MarshalOptions(&_result);
  3432. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3433. return _result;
  3434. }
  3435. inline void Recordset15::PutMarshalOptions ( enum MarshalOptionsEnum peMarshal ) {
  3436. HRESULT _hr = put_MarshalOptions(peMarshal);
  3437. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3438. }
  3439. inline HRESULT Recordset15::Find ( _bstr_t Criteria, long SkipRecords, enum SearchDirectionEnum SearchDirection, const _variant_t & Start ) {
  3440. HRESULT _hr = raw_Find(Criteria, SkipRecords, SearchDirection, Start);
  3441. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3442. return _hr;
  3443. }
  3444. //
  3445. // interface Recordset20 wrapper method implementations
  3446. //
  3447. inline HRESULT Recordset20::Cancel ( ) {
  3448. HRESULT _hr = raw_Cancel();
  3449. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3450. return _hr;
  3451. }
  3452. inline IUnknownPtr Recordset20::GetDataSource ( ) {
  3453. IUnknown * _result;
  3454. HRESULT _hr = get_DataSource(&_result);
  3455. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3456. return IUnknownPtr(_result, false);
  3457. }
  3458. inline void Recordset20::PutRefDataSource ( IUnknown * ppunkDataSource ) {
  3459. HRESULT _hr = putref_DataSource(ppunkDataSource);
  3460. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3461. }
  3462. inline HRESULT Recordset20::_xSave ( _bstr_t FileName, enum PersistFormatEnum PersistFormat ) {
  3463. HRESULT _hr = raw__xSave(FileName, PersistFormat);
  3464. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3465. return _hr;
  3466. }
  3467. inline IDispatchPtr Recordset20::GetActiveCommand ( ) {
  3468. IDispatch * _result;
  3469. HRESULT _hr = get_ActiveCommand(&_result);
  3470. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3471. return IDispatchPtr(_result, false);
  3472. }
  3473. inline void Recordset20::PutStayInSync ( VARIANT_BOOL pbStayInSync ) {
  3474. HRESULT _hr = put_StayInSync(pbStayInSync);
  3475. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3476. }
  3477. inline VARIANT_BOOL Recordset20::GetStayInSync ( ) {
  3478. VARIANT_BOOL _result;
  3479. HRESULT _hr = get_StayInSync(&_result);
  3480. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3481. return _result;
  3482. }
  3483. inline _bstr_t Recordset20::GetString ( enum StringFormatEnum StringFormat, long NumRows, _bstr_t ColumnDelimeter, _bstr_t RowDelimeter, _bstr_t NullExpr ) {
  3484. BSTR _result;
  3485. HRESULT _hr = raw_GetString(StringFormat, NumRows, ColumnDelimeter, RowDelimeter, NullExpr, &_result);
  3486. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3487. return _bstr_t(_result, false);
  3488. }
  3489. inline _bstr_t Recordset20::GetDataMember ( ) {
  3490. BSTR _result;
  3491. HRESULT _hr = get_DataMember(&_result);
  3492. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3493. return _bstr_t(_result, false);
  3494. }
  3495. inline void Recordset20::PutDataMember ( _bstr_t pbstrDataMember ) {
  3496. HRESULT _hr = put_DataMember(pbstrDataMember);
  3497. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3498. }
  3499. inline enum CompareEnum Recordset20::CompareBookmarks ( const _variant_t & Bookmark1, const _variant_t & Bookmark2 ) {
  3500. enum CompareEnum _result;
  3501. HRESULT _hr = raw_CompareBookmarks(Bookmark1, Bookmark2, &_result);
  3502. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3503. return _result;
  3504. }
  3505. inline _RecordsetPtr Recordset20::Clone ( enum LockTypeEnum LockType ) {
  3506. struct _Recordset * _result;
  3507. HRESULT _hr = raw_Clone(LockType, &_result);
  3508. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3509. return _RecordsetPtr(_result, false);
  3510. }
  3511. inline HRESULT Recordset20::Resync ( enum AffectEnum AffectRecords, enum ResyncEnum ResyncValues ) {
  3512. HRESULT _hr = raw_Resync(AffectRecords, ResyncValues);
  3513. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3514. return _hr;
  3515. }
  3516. //
  3517. // interface Recordset21 wrapper method implementations
  3518. //
  3519. inline HRESULT Recordset21::Seek ( const _variant_t & KeyValues, enum SeekEnum SeekOption ) {
  3520. HRESULT _hr = raw_Seek(KeyValues, SeekOption);
  3521. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3522. return _hr;
  3523. }
  3524. inline void Recordset21::PutIndex ( _bstr_t pbstrIndex ) {
  3525. HRESULT _hr = put_Index(pbstrIndex);
  3526. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3527. }
  3528. inline _bstr_t Recordset21::GetIndex ( ) {
  3529. BSTR _result;
  3530. HRESULT _hr = get_Index(&_result);
  3531. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3532. return _bstr_t(_result, false);
  3533. }
  3534. //
  3535. // interface _Recordset wrapper method implementations
  3536. //
  3537. inline HRESULT _Recordset::Save ( const _variant_t & Destination, enum PersistFormatEnum PersistFormat ) {
  3538. HRESULT _hr = raw_Save(Destination, PersistFormat);
  3539. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3540. return _hr;
  3541. }
  3542. //
  3543. // interface Fields15 wrapper method implementations
  3544. //
  3545. inline FieldPtr Fields15::GetItem ( const _variant_t & Index ) {
  3546. struct Field * _result;
  3547. HRESULT _hr = get_Item(Index, &_result);
  3548. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3549. return FieldPtr(_result, false);
  3550. }
  3551. //
  3552. // interface Fields20 wrapper method implementations
  3553. //
  3554. inline HRESULT Fields20::_Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib ) {
  3555. HRESULT _hr = raw__Append(Name, Type, DefinedSize, Attrib);
  3556. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3557. return _hr;
  3558. }
  3559. inline HRESULT Fields20::Delete ( const _variant_t & Index ) {
  3560. HRESULT _hr = raw_Delete(Index);
  3561. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3562. return _hr;
  3563. }
  3564. //
  3565. // interface Fields wrapper method implementations
  3566. //
  3567. inline HRESULT Fields::Append ( _bstr_t Name, enum DataTypeEnum Type, long DefinedSize, enum FieldAttributeEnum Attrib, const _variant_t & FieldValue ) {
  3568. HRESULT _hr = raw_Append(Name, Type, DefinedSize, Attrib, FieldValue);
  3569. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3570. return _hr;
  3571. }
  3572. inline HRESULT Fields::Update ( ) {
  3573. HRESULT _hr = raw_Update();
  3574. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3575. return _hr;
  3576. }
  3577. inline HRESULT Fields::Resync ( enum ResyncEnum ResyncValues ) {
  3578. HRESULT _hr = raw_Resync(ResyncValues);
  3579. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3580. return _hr;
  3581. }
  3582. inline HRESULT Fields::CancelUpdate ( ) {
  3583. HRESULT _hr = raw_CancelUpdate();
  3584. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3585. return _hr;
  3586. }
  3587. //
  3588. // interface Field20 wrapper method implementations
  3589. //
  3590. inline long Field20::GetActualSize ( ) {
  3591. long _result;
  3592. HRESULT _hr = get_ActualSize(&_result);
  3593. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3594. return _result;
  3595. }
  3596. inline long Field20::GetAttributes ( ) {
  3597. long _result;
  3598. HRESULT _hr = get_Attributes(&_result);
  3599. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3600. return _result;
  3601. }
  3602. inline long Field20::GetDefinedSize ( ) {
  3603. long _result;
  3604. HRESULT _hr = get_DefinedSize(&_result);
  3605. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3606. return _result;
  3607. }
  3608. inline _bstr_t Field20::GetName ( ) {
  3609. BSTR _result;
  3610. HRESULT _hr = get_Name(&_result);
  3611. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3612. return _bstr_t(_result, false);
  3613. }
  3614. inline enum DataTypeEnum Field20::GetType ( ) {
  3615. enum DataTypeEnum _result;
  3616. HRESULT _hr = get_Type(&_result);
  3617. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3618. return _result;
  3619. }
  3620. inline _variant_t Field20::GetValue ( ) {
  3621. VARIANT _result;
  3622. VariantInit(&_result);
  3623. HRESULT _hr = get_Value(&_result);
  3624. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3625. return _variant_t(_result, false);
  3626. }
  3627. inline void Field20::PutValue ( const _variant_t & pvar ) {
  3628. HRESULT _hr = put_Value(pvar);
  3629. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3630. }
  3631. inline unsigned char Field20::GetPrecision ( ) {
  3632. unsigned char _result;
  3633. HRESULT _hr = get_Precision(&_result);
  3634. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3635. return _result;
  3636. }
  3637. inline unsigned char Field20::GetNumericScale ( ) {
  3638. unsigned char _result;
  3639. HRESULT _hr = get_NumericScale(&_result);
  3640. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3641. return _result;
  3642. }
  3643. inline HRESULT Field20::AppendChunk ( const _variant_t & Data ) {
  3644. HRESULT _hr = raw_AppendChunk(Data);
  3645. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3646. return _hr;
  3647. }
  3648. inline _variant_t Field20::GetChunk ( long Length ) {
  3649. VARIANT _result;
  3650. VariantInit(&_result);
  3651. HRESULT _hr = raw_GetChunk(Length, &_result);
  3652. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3653. return _variant_t(_result, false);
  3654. }
  3655. inline _variant_t Field20::GetOriginalValue ( ) {
  3656. VARIANT _result;
  3657. VariantInit(&_result);
  3658. HRESULT _hr = get_OriginalValue(&_result);
  3659. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3660. return _variant_t(_result, false);
  3661. }
  3662. inline _variant_t Field20::GetUnderlyingValue ( ) {
  3663. VARIANT _result;
  3664. VariantInit(&_result);
  3665. HRESULT _hr = get_UnderlyingValue(&_result);
  3666. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3667. return _variant_t(_result, false);
  3668. }
  3669. inline IUnknownPtr Field20::GetDataFormat ( ) {
  3670. IUnknown * _result;
  3671. HRESULT _hr = get_DataFormat(&_result);
  3672. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3673. return IUnknownPtr(_result, false);
  3674. }
  3675. inline void Field20::PutRefDataFormat ( IUnknown * ppiDF ) {
  3676. HRESULT _hr = putref_DataFormat(ppiDF);
  3677. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3678. }
  3679. inline void Field20::PutPrecision ( unsigned char pbPrecision ) {
  3680. HRESULT _hr = put_Precision(pbPrecision);
  3681. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3682. }
  3683. inline void Field20::PutNumericScale ( unsigned char pbNumericScale ) {
  3684. HRESULT _hr = put_NumericScale(pbNumericScale);
  3685. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3686. }
  3687. inline void Field20::PutType ( enum DataTypeEnum pDataType ) {
  3688. HRESULT _hr = put_Type(pDataType);
  3689. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3690. }
  3691. inline void Field20::PutDefinedSize ( long pl ) {
  3692. HRESULT _hr = put_DefinedSize(pl);
  3693. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3694. }
  3695. inline void Field20::PutAttributes ( long pl ) {
  3696. HRESULT _hr = put_Attributes(pl);
  3697. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3698. }
  3699. //
  3700. // interface Field wrapper method implementations
  3701. //
  3702. inline long Field::GetStatus ( ) {
  3703. long _result;
  3704. HRESULT _hr = get_Status(&_result);
  3705. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3706. return _result;
  3707. }
  3708. //
  3709. // interface _Parameter wrapper method implementations
  3710. //
  3711. inline _bstr_t _Parameter::GetName ( ) {
  3712. BSTR _result;
  3713. HRESULT _hr = get_Name(&_result);
  3714. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3715. return _bstr_t(_result, false);
  3716. }
  3717. inline void _Parameter::PutName ( _bstr_t pbstr ) {
  3718. HRESULT _hr = put_Name(pbstr);
  3719. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3720. }
  3721. inline _variant_t _Parameter::GetValue ( ) {
  3722. VARIANT _result;
  3723. VariantInit(&_result);
  3724. HRESULT _hr = get_Value(&_result);
  3725. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3726. return _variant_t(_result, false);
  3727. }
  3728. inline void _Parameter::PutValue ( const _variant_t & pvar ) {
  3729. HRESULT _hr = put_Value(pvar);
  3730. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3731. }
  3732. inline enum DataTypeEnum _Parameter::GetType ( ) {
  3733. enum DataTypeEnum _result;
  3734. HRESULT _hr = get_Type(&_result);
  3735. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3736. return _result;
  3737. }
  3738. inline void _Parameter::PutType ( enum DataTypeEnum psDataType ) {
  3739. HRESULT _hr = put_Type(psDataType);
  3740. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3741. }
  3742. inline void _Parameter::PutDirection ( enum ParameterDirectionEnum plParmDirection ) {
  3743. HRESULT _hr = put_Direction(plParmDirection);
  3744. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3745. }
  3746. inline enum ParameterDirectionEnum _Parameter::GetDirection ( ) {
  3747. enum ParameterDirectionEnum _result;
  3748. HRESULT _hr = get_Direction(&_result);
  3749. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3750. return _result;
  3751. }
  3752. inline void _Parameter::PutPrecision ( unsigned char pbPrecision ) {
  3753. HRESULT _hr = put_Precision(pbPrecision);
  3754. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3755. }
  3756. inline unsigned char _Parameter::GetPrecision ( ) {
  3757. unsigned char _result;
  3758. HRESULT _hr = get_Precision(&_result);
  3759. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3760. return _result;
  3761. }
  3762. inline void _Parameter::PutNumericScale ( unsigned char pbScale ) {
  3763. HRESULT _hr = put_NumericScale(pbScale);
  3764. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3765. }
  3766. inline unsigned char _Parameter::GetNumericScale ( ) {
  3767. unsigned char _result;
  3768. HRESULT _hr = get_NumericScale(&_result);
  3769. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3770. return _result;
  3771. }
  3772. inline void _Parameter::PutSize ( long pl ) {
  3773. HRESULT _hr = put_Size(pl);
  3774. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3775. }
  3776. inline long _Parameter::GetSize ( ) {
  3777. long _result;
  3778. HRESULT _hr = get_Size(&_result);
  3779. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3780. return _result;
  3781. }
  3782. inline HRESULT _Parameter::AppendChunk ( const _variant_t & Val ) {
  3783. HRESULT _hr = raw_AppendChunk(Val);
  3784. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3785. return _hr;
  3786. }
  3787. inline long _Parameter::GetAttributes ( ) {
  3788. long _result;
  3789. HRESULT _hr = get_Attributes(&_result);
  3790. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3791. return _result;
  3792. }
  3793. inline void _Parameter::PutAttributes ( long plParmAttribs ) {
  3794. HRESULT _hr = put_Attributes(plParmAttribs);
  3795. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3796. }
  3797. //
  3798. // interface Parameters wrapper method implementations
  3799. //
  3800. inline _ParameterPtr Parameters::GetItem ( const _variant_t & Index ) {
  3801. struct _Parameter * _result;
  3802. HRESULT _hr = get_Item(Index, &_result);
  3803. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3804. return _ParameterPtr(_result, false);
  3805. }
  3806. //
  3807. // interface _Command wrapper method implementations
  3808. //
  3809. inline long _Command::GetState ( ) {
  3810. long _result;
  3811. HRESULT _hr = get_State(&_result);
  3812. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3813. return _result;
  3814. }
  3815. inline HRESULT _Command::Cancel ( ) {
  3816. HRESULT _hr = raw_Cancel();
  3817. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3818. return _hr;
  3819. }
  3820. //
  3821. // interface ConnectionEventsVt wrapper method implementations
  3822. //
  3823. inline HRESULT ConnectionEventsVt::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3824. HRESULT _hr = raw_InfoMessage(pError, adStatus, pConnection);
  3825. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3826. return _hr;
  3827. }
  3828. inline HRESULT ConnectionEventsVt::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3829. HRESULT _hr = raw_BeginTransComplete(TransactionLevel, pError, adStatus, pConnection);
  3830. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3831. return _hr;
  3832. }
  3833. inline HRESULT ConnectionEventsVt::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3834. HRESULT _hr = raw_CommitTransComplete(pError, adStatus, pConnection);
  3835. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3836. return _hr;
  3837. }
  3838. inline HRESULT ConnectionEventsVt::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3839. HRESULT _hr = raw_RollbackTransComplete(pError, adStatus, pConnection);
  3840. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3841. return _hr;
  3842. }
  3843. inline HRESULT ConnectionEventsVt::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  3844. HRESULT _hr = raw_WillExecute(Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  3845. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3846. return _hr;
  3847. }
  3848. inline HRESULT ConnectionEventsVt::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  3849. HRESULT _hr = raw_ExecuteComplete(RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  3850. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3851. return _hr;
  3852. }
  3853. inline HRESULT ConnectionEventsVt::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3854. HRESULT _hr = raw_WillConnect(ConnectionString, UserID, Password, Options, adStatus, pConnection);
  3855. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3856. return _hr;
  3857. }
  3858. inline HRESULT ConnectionEventsVt::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3859. HRESULT _hr = raw_ConnectComplete(pError, adStatus, pConnection);
  3860. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3861. return _hr;
  3862. }
  3863. inline HRESULT ConnectionEventsVt::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3864. HRESULT _hr = raw_Disconnect(adStatus, pConnection);
  3865. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3866. return _hr;
  3867. }
  3868. //
  3869. // interface RecordsetEventsVt wrapper method implementations
  3870. //
  3871. inline HRESULT RecordsetEventsVt::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3872. HRESULT _hr = raw_WillChangeField(cFields, Fields, adStatus, pRecordset);
  3873. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3874. return _hr;
  3875. }
  3876. inline HRESULT RecordsetEventsVt::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3877. HRESULT _hr = raw_FieldChangeComplete(cFields, Fields, pError, adStatus, pRecordset);
  3878. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3879. return _hr;
  3880. }
  3881. inline HRESULT RecordsetEventsVt::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3882. HRESULT _hr = raw_WillChangeRecord(adReason, cRecords, adStatus, pRecordset);
  3883. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3884. return _hr;
  3885. }
  3886. inline HRESULT RecordsetEventsVt::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3887. HRESULT _hr = raw_RecordChangeComplete(adReason, cRecords, pError, adStatus, pRecordset);
  3888. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3889. return _hr;
  3890. }
  3891. inline HRESULT RecordsetEventsVt::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3892. HRESULT _hr = raw_WillChangeRecordset(adReason, adStatus, pRecordset);
  3893. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3894. return _hr;
  3895. }
  3896. inline HRESULT RecordsetEventsVt::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3897. HRESULT _hr = raw_RecordsetChangeComplete(adReason, pError, adStatus, pRecordset);
  3898. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3899. return _hr;
  3900. }
  3901. inline HRESULT RecordsetEventsVt::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3902. HRESULT _hr = raw_WillMove(adReason, adStatus, pRecordset);
  3903. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3904. return _hr;
  3905. }
  3906. inline HRESULT RecordsetEventsVt::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3907. HRESULT _hr = raw_MoveComplete(adReason, pError, adStatus, pRecordset);
  3908. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3909. return _hr;
  3910. }
  3911. inline HRESULT RecordsetEventsVt::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3912. HRESULT _hr = raw_EndOfRecordset(fMoreData, adStatus, pRecordset);
  3913. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3914. return _hr;
  3915. }
  3916. inline HRESULT RecordsetEventsVt::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3917. HRESULT _hr = raw_FetchProgress(Progress, MaxProgress, adStatus, pRecordset);
  3918. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3919. return _hr;
  3920. }
  3921. inline HRESULT RecordsetEventsVt::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3922. HRESULT _hr = raw_FetchComplete(pError, adStatus, pRecordset);
  3923. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  3924. return _hr;
  3925. }
  3926. //
  3927. // dispinterface ConnectionEvents wrapper method implementations
  3928. //
  3929. inline HRESULT ConnectionEvents::InfoMessage ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3930. HRESULT _result;
  3931. _com_dispatch_method(this, 0x0, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3932. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  3933. return _result;
  3934. }
  3935. inline HRESULT ConnectionEvents::BeginTransComplete ( long TransactionLevel, struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3936. HRESULT _result;
  3937. _com_dispatch_method(this, 0x1, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3938. L"\x0003\x0009\x4003\x0009", TransactionLevel, pError, adStatus, pConnection);
  3939. return _result;
  3940. }
  3941. inline HRESULT ConnectionEvents::CommitTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3942. HRESULT _result;
  3943. _com_dispatch_method(this, 0x3, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3944. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  3945. return _result;
  3946. }
  3947. inline HRESULT ConnectionEvents::RollbackTransComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3948. HRESULT _result;
  3949. _com_dispatch_method(this, 0x2, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3950. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  3951. return _result;
  3952. }
  3953. inline HRESULT ConnectionEvents::WillExecute ( BSTR * Source, enum CursorTypeEnum * CursorType, enum LockTypeEnum * LockType, long * Options, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  3954. HRESULT _result;
  3955. _com_dispatch_method(this, 0x4, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3956. L"\x4008\x4003\x4003\x4003\x4003\x0009\x0009\x0009", Source, CursorType, LockType, Options, adStatus, pCommand, pRecordset, pConnection);
  3957. return _result;
  3958. }
  3959. inline HRESULT ConnectionEvents::ExecuteComplete ( long RecordsAffected, struct Error * pError, enum EventStatusEnum * adStatus, struct _Command * pCommand, struct _Recordset * pRecordset, struct _Connection * pConnection ) {
  3960. HRESULT _result;
  3961. _com_dispatch_method(this, 0x5, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3962. L"\x0003\x0009\x4003\x0009\x0009\x0009", RecordsAffected, pError, adStatus, pCommand, pRecordset, pConnection);
  3963. return _result;
  3964. }
  3965. inline HRESULT ConnectionEvents::WillConnect ( BSTR * ConnectionString, BSTR * UserID, BSTR * Password, long * Options, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3966. HRESULT _result;
  3967. _com_dispatch_method(this, 0x6, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3968. L"\x4008\x4008\x4008\x4003\x4003\x0009", ConnectionString, UserID, Password, Options, adStatus, pConnection);
  3969. return _result;
  3970. }
  3971. inline HRESULT ConnectionEvents::ConnectComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3972. HRESULT _result;
  3973. _com_dispatch_method(this, 0x7, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3974. L"\x0009\x4003\x0009", pError, adStatus, pConnection);
  3975. return _result;
  3976. }
  3977. inline HRESULT ConnectionEvents::Disconnect ( enum EventStatusEnum * adStatus, struct _Connection * pConnection ) {
  3978. HRESULT _result;
  3979. _com_dispatch_method(this, 0x8, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3980. L"\x4003\x0009", adStatus, pConnection);
  3981. return _result;
  3982. }
  3983. //
  3984. // dispinterface RecordsetEvents wrapper method implementations
  3985. //
  3986. inline HRESULT RecordsetEvents::WillChangeField ( long cFields, const _variant_t & Fields, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3987. HRESULT _result;
  3988. _com_dispatch_method(this, 0x9, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3989. L"\x0003\x000c\x4003\x0009", cFields, &Fields, adStatus, pRecordset);
  3990. return _result;
  3991. }
  3992. inline HRESULT RecordsetEvents::FieldChangeComplete ( long cFields, const _variant_t & Fields, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3993. HRESULT _result;
  3994. _com_dispatch_method(this, 0xa, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  3995. L"\x0003\x000c\x0009\x4003\x0009", cFields, &Fields, pError, adStatus, pRecordset);
  3996. return _result;
  3997. }
  3998. inline HRESULT RecordsetEvents::WillChangeRecord ( enum EventReasonEnum adReason, long cRecords, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  3999. HRESULT _result;
  4000. _com_dispatch_method(this, 0xb, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4001. L"\x0003\x0003\x4003\x0009", adReason, cRecords, adStatus, pRecordset);
  4002. return _result;
  4003. }
  4004. inline HRESULT RecordsetEvents::RecordChangeComplete ( enum EventReasonEnum adReason, long cRecords, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  4005. HRESULT _result;
  4006. _com_dispatch_method(this, 0xc, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4007. L"\x0003\x0003\x0009\x4003\x0009", adReason, cRecords, pError, adStatus, pRecordset);
  4008. return _result;
  4009. }
  4010. inline HRESULT RecordsetEvents::WillChangeRecordset ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  4011. HRESULT _result;
  4012. _com_dispatch_method(this, 0xd, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4013. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  4014. return _result;
  4015. }
  4016. inline HRESULT RecordsetEvents::RecordsetChangeComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  4017. HRESULT _result;
  4018. _com_dispatch_method(this, 0xe, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4019. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  4020. return _result;
  4021. }
  4022. inline HRESULT RecordsetEvents::WillMove ( enum EventReasonEnum adReason, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  4023. HRESULT _result;
  4024. _com_dispatch_method(this, 0xf, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4025. L"\x0003\x4003\x0009", adReason, adStatus, pRecordset);
  4026. return _result;
  4027. }
  4028. inline HRESULT RecordsetEvents::MoveComplete ( enum EventReasonEnum adReason, struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  4029. HRESULT _result;
  4030. _com_dispatch_method(this, 0x10, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4031. L"\x0003\x0009\x4003\x0009", adReason, pError, adStatus, pRecordset);
  4032. return _result;
  4033. }
  4034. inline HRESULT RecordsetEvents::EndOfRecordset ( VARIANT_BOOL * fMoreData, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  4035. HRESULT _result;
  4036. _com_dispatch_method(this, 0x11, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4037. L"\x400b\x4003\x0009", fMoreData, adStatus, pRecordset);
  4038. return _result;
  4039. }
  4040. inline HRESULT RecordsetEvents::FetchProgress ( long Progress, long MaxProgress, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  4041. HRESULT _result;
  4042. _com_dispatch_method(this, 0x12, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4043. L"\x0003\x0003\x4003\x0009", Progress, MaxProgress, adStatus, pRecordset);
  4044. return _result;
  4045. }
  4046. inline HRESULT RecordsetEvents::FetchComplete ( struct Error * pError, enum EventStatusEnum * adStatus, struct _Recordset * pRecordset ) {
  4047. HRESULT _result;
  4048. _com_dispatch_method(this, 0x13, DISPATCH_METHOD, VT_ERROR, (void*)&_result,
  4049. L"\x0009\x4003\x0009", pError, adStatus, pRecordset);
  4050. return _result;
  4051. }
  4052. //
  4053. // interface ADOConnectionConstruction15 wrapper method implementations
  4054. //
  4055. inline IUnknownPtr ADOConnectionConstruction15::GetDSO ( ) {
  4056. IUnknown * _result;
  4057. HRESULT _hr = get_DSO(&_result);
  4058. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4059. return IUnknownPtr(_result, false);
  4060. }
  4061. inline IUnknownPtr ADOConnectionConstruction15::GetSession ( ) {
  4062. IUnknown * _result;
  4063. HRESULT _hr = get_Session(&_result);
  4064. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4065. return IUnknownPtr(_result, false);
  4066. }
  4067. inline HRESULT ADOConnectionConstruction15::WrapDSOandSession ( IUnknown * pDSO, IUnknown * pSession ) {
  4068. HRESULT _hr = raw_WrapDSOandSession(pDSO, pSession);
  4069. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4070. return _hr;
  4071. }
  4072. //
  4073. // interface _Record wrapper method implementations
  4074. //
  4075. inline _variant_t _Record::GetActiveConnection ( ) {
  4076. VARIANT _result;
  4077. VariantInit(&_result);
  4078. HRESULT _hr = get_ActiveConnection(&_result);
  4079. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4080. return _variant_t(_result, false);
  4081. }
  4082. inline void _Record::PutActiveConnection ( _bstr_t pvar ) {
  4083. HRESULT _hr = put_ActiveConnection(pvar);
  4084. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4085. }
  4086. inline void _Record::PutRefActiveConnection ( struct _Connection * pvar ) {
  4087. HRESULT _hr = putref_ActiveConnection(pvar);
  4088. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4089. }
  4090. inline enum ObjectStateEnum _Record::GetState ( ) {
  4091. enum ObjectStateEnum _result;
  4092. HRESULT _hr = get_State(&_result);
  4093. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4094. return _result;
  4095. }
  4096. inline _variant_t _Record::GetSource ( ) {
  4097. VARIANT _result;
  4098. VariantInit(&_result);
  4099. HRESULT _hr = get_Source(&_result);
  4100. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4101. return _variant_t(_result, false);
  4102. }
  4103. inline void _Record::PutSource ( _bstr_t pvar ) {
  4104. HRESULT _hr = put_Source(pvar);
  4105. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4106. }
  4107. inline void _Record::PutRefSource ( IDispatch * pvar ) {
  4108. HRESULT _hr = putref_Source(pvar);
  4109. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4110. }
  4111. inline enum ConnectModeEnum _Record::GetMode ( ) {
  4112. enum ConnectModeEnum _result;
  4113. HRESULT _hr = get_Mode(&_result);
  4114. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4115. return _result;
  4116. }
  4117. inline void _Record::PutMode ( enum ConnectModeEnum pMode ) {
  4118. HRESULT _hr = put_Mode(pMode);
  4119. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4120. }
  4121. inline _bstr_t _Record::GetParentURL ( ) {
  4122. BSTR _result;
  4123. HRESULT _hr = get_ParentURL(&_result);
  4124. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4125. return _bstr_t(_result, false);
  4126. }
  4127. inline _bstr_t _Record::MoveRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum MoveRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  4128. BSTR _result;
  4129. HRESULT _hr = raw_MoveRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  4130. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4131. return _bstr_t(_result, false);
  4132. }
  4133. inline _bstr_t _Record::CopyRecord ( _bstr_t Source, _bstr_t Destination, _bstr_t UserName, _bstr_t Password, enum CopyRecordOptionsEnum Options, VARIANT_BOOL Async ) {
  4134. BSTR _result;
  4135. HRESULT _hr = raw_CopyRecord(Source, Destination, UserName, Password, Options, Async, &_result);
  4136. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4137. return _bstr_t(_result, false);
  4138. }
  4139. inline HRESULT _Record::DeleteRecord ( _bstr_t Source, VARIANT_BOOL Async ) {
  4140. HRESULT _hr = raw_DeleteRecord(Source, Async);
  4141. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4142. return _hr;
  4143. }
  4144. inline HRESULT _Record::Open ( const _variant_t & Source, const _variant_t & ActiveConnection, enum ConnectModeEnum Mode, enum RecordCreateOptionsEnum CreateOptions, enum RecordOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  4145. HRESULT _hr = raw_Open(Source, ActiveConnection, Mode, CreateOptions, Options, UserName, Password);
  4146. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4147. return _hr;
  4148. }
  4149. inline HRESULT _Record::Close ( ) {
  4150. HRESULT _hr = raw_Close();
  4151. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4152. return _hr;
  4153. }
  4154. inline FieldsPtr _Record::GetFields ( ) {
  4155. struct Fields * _result;
  4156. HRESULT _hr = get_Fields(&_result);
  4157. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4158. return FieldsPtr(_result, false);
  4159. }
  4160. inline enum RecordTypeEnum _Record::GetRecordType ( ) {
  4161. enum RecordTypeEnum _result;
  4162. HRESULT _hr = get_RecordType(&_result);
  4163. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4164. return _result;
  4165. }
  4166. inline _RecordsetPtr _Record::GetChildren ( ) {
  4167. struct _Recordset * _result;
  4168. HRESULT _hr = raw_GetChildren(&_result);
  4169. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4170. return _RecordsetPtr(_result, false);
  4171. }
  4172. inline HRESULT _Record::Cancel ( ) {
  4173. HRESULT _hr = raw_Cancel();
  4174. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4175. return _hr;
  4176. }
  4177. //
  4178. // interface IRecFields wrapper method implementations
  4179. //
  4180. inline HRESULT IRecFields::ADOCheck ( ) {
  4181. HRESULT _hr = raw_ADOCheck();
  4182. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4183. return _hr;
  4184. }
  4185. //
  4186. // interface _Stream wrapper method implementations
  4187. //
  4188. inline long _Stream::GetSize ( ) {
  4189. long _result;
  4190. HRESULT _hr = get_Size(&_result);
  4191. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4192. return _result;
  4193. }
  4194. inline VARIANT_BOOL _Stream::GetEOS ( ) {
  4195. VARIANT_BOOL _result;
  4196. HRESULT _hr = get_EOS(&_result);
  4197. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4198. return _result;
  4199. }
  4200. inline long _Stream::GetPosition ( ) {
  4201. long _result;
  4202. HRESULT _hr = get_Position(&_result);
  4203. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4204. return _result;
  4205. }
  4206. inline void _Stream::PutPosition ( long pPos ) {
  4207. HRESULT _hr = put_Position(pPos);
  4208. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4209. }
  4210. inline enum StreamTypeEnum _Stream::GetType ( ) {
  4211. enum StreamTypeEnum _result;
  4212. HRESULT _hr = get_Type(&_result);
  4213. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4214. return _result;
  4215. }
  4216. inline void _Stream::PutType ( enum StreamTypeEnum ptype ) {
  4217. HRESULT _hr = put_Type(ptype);
  4218. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4219. }
  4220. inline enum LineSeparatorEnum _Stream::GetLineSeparator ( ) {
  4221. enum LineSeparatorEnum _result;
  4222. HRESULT _hr = get_LineSeparator(&_result);
  4223. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4224. return _result;
  4225. }
  4226. inline void _Stream::PutLineSeparator ( enum LineSeparatorEnum pLS ) {
  4227. HRESULT _hr = put_LineSeparator(pLS);
  4228. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4229. }
  4230. inline enum ObjectStateEnum _Stream::GetState ( ) {
  4231. enum ObjectStateEnum _result;
  4232. HRESULT _hr = get_State(&_result);
  4233. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4234. return _result;
  4235. }
  4236. inline enum ConnectModeEnum _Stream::GetMode ( ) {
  4237. enum ConnectModeEnum _result;
  4238. HRESULT _hr = get_Mode(&_result);
  4239. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4240. return _result;
  4241. }
  4242. inline void _Stream::PutMode ( enum ConnectModeEnum pMode ) {
  4243. HRESULT _hr = put_Mode(pMode);
  4244. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4245. }
  4246. inline _bstr_t _Stream::GetCharset ( ) {
  4247. BSTR _result;
  4248. HRESULT _hr = get_Charset(&_result);
  4249. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4250. return _bstr_t(_result, false);
  4251. }
  4252. inline void _Stream::PutCharset ( _bstr_t pbstrCharset ) {
  4253. HRESULT _hr = put_Charset(pbstrCharset);
  4254. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4255. }
  4256. inline _variant_t _Stream::Read ( long NumBytes ) {
  4257. VARIANT _result;
  4258. VariantInit(&_result);
  4259. HRESULT _hr = raw_Read(NumBytes, &_result);
  4260. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4261. return _variant_t(_result, false);
  4262. }
  4263. inline HRESULT _Stream::Open ( const _variant_t & Source, enum ConnectModeEnum Mode, enum StreamOpenOptionsEnum Options, _bstr_t UserName, _bstr_t Password ) {
  4264. HRESULT _hr = raw_Open(Source, Mode, Options, UserName, Password);
  4265. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4266. return _hr;
  4267. }
  4268. inline HRESULT _Stream::Close ( ) {
  4269. HRESULT _hr = raw_Close();
  4270. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4271. return _hr;
  4272. }
  4273. inline HRESULT _Stream::SkipLine ( ) {
  4274. HRESULT _hr = raw_SkipLine();
  4275. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4276. return _hr;
  4277. }
  4278. inline HRESULT _Stream::Write ( const _variant_t & Buffer ) {
  4279. HRESULT _hr = raw_Write(Buffer);
  4280. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4281. return _hr;
  4282. }
  4283. inline HRESULT _Stream::SetEOS ( ) {
  4284. HRESULT _hr = raw_SetEOS();
  4285. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4286. return _hr;
  4287. }
  4288. inline HRESULT _Stream::CopyTo ( struct _Stream * DestStream, long CharNumber ) {
  4289. HRESULT _hr = raw_CopyTo(DestStream, CharNumber);
  4290. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4291. return _hr;
  4292. }
  4293. inline HRESULT _Stream::Flush ( ) {
  4294. HRESULT _hr = raw_Flush();
  4295. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4296. return _hr;
  4297. }
  4298. inline HRESULT _Stream::SaveToFile ( _bstr_t FileName, enum SaveOptionsEnum Options ) {
  4299. HRESULT _hr = raw_SaveToFile(FileName, Options);
  4300. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4301. return _hr;
  4302. }
  4303. inline HRESULT _Stream::LoadFromFile ( _bstr_t FileName ) {
  4304. HRESULT _hr = raw_LoadFromFile(FileName);
  4305. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4306. return _hr;
  4307. }
  4308. inline _bstr_t _Stream::ReadText ( long NumChars ) {
  4309. BSTR _result;
  4310. HRESULT _hr = raw_ReadText(NumChars, &_result);
  4311. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4312. return _bstr_t(_result, false);
  4313. }
  4314. inline HRESULT _Stream::WriteText ( _bstr_t Data, enum StreamWriteEnum Options ) {
  4315. HRESULT _hr = raw_WriteText(Data, Options);
  4316. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4317. return _hr;
  4318. }
  4319. inline HRESULT _Stream::Cancel ( ) {
  4320. HRESULT _hr = raw_Cancel();
  4321. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4322. return _hr;
  4323. }
  4324. //
  4325. // interface ADORecordConstruction wrapper method implementations
  4326. //
  4327. inline IUnknownPtr ADORecordConstruction::GetRow ( ) {
  4328. IUnknown * _result;
  4329. HRESULT _hr = get_Row(&_result);
  4330. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4331. return IUnknownPtr(_result, false);
  4332. }
  4333. inline void ADORecordConstruction::PutRow ( IUnknown * ppRow ) {
  4334. HRESULT _hr = put_Row(ppRow);
  4335. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4336. }
  4337. inline void ADORecordConstruction::PutParentRow ( IUnknown * _arg1 ) {
  4338. HRESULT _hr = put_ParentRow(_arg1);
  4339. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4340. }
  4341. //
  4342. // interface ADOStreamConstruction wrapper method implementations
  4343. //
  4344. inline IUnknownPtr ADOStreamConstruction::GetStream ( ) {
  4345. IUnknown * _result;
  4346. HRESULT _hr = get_Stream(&_result);
  4347. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4348. return IUnknownPtr(_result, false);
  4349. }
  4350. inline void ADOStreamConstruction::PutStream ( IUnknown * ppStm ) {
  4351. HRESULT _hr = put_Stream(ppStm);
  4352. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4353. }
  4354. //
  4355. // interface ADOCommandConstruction wrapper method implementations
  4356. //
  4357. inline IUnknownPtr ADOCommandConstruction::GetOLEDBCommand ( ) {
  4358. IUnknown * _result;
  4359. HRESULT _hr = get_OLEDBCommand(&_result);
  4360. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4361. return IUnknownPtr(_result, false);
  4362. }
  4363. inline void ADOCommandConstruction::PutOLEDBCommand ( IUnknown * ppOLEDBCommand ) {
  4364. HRESULT _hr = put_OLEDBCommand(ppOLEDBCommand);
  4365. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4366. }
  4367. //
  4368. // interface ADORecordsetConstruction wrapper method implementations
  4369. //
  4370. inline IUnknownPtr ADORecordsetConstruction::GetRowset ( ) {
  4371. IUnknown * _result;
  4372. HRESULT _hr = get_Rowset(&_result);
  4373. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4374. return IUnknownPtr(_result, false);
  4375. }
  4376. inline void ADORecordsetConstruction::PutRowset ( IUnknown * ppRowset ) {
  4377. HRESULT _hr = put_Rowset(ppRowset);
  4378. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4379. }
  4380. inline long ADORecordsetConstruction::GetChapter ( ) {
  4381. long _result;
  4382. HRESULT _hr = get_Chapter(&_result);
  4383. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4384. return _result;
  4385. }
  4386. inline void ADORecordsetConstruction::PutChapter ( long plChapter ) {
  4387. HRESULT _hr = put_Chapter(plChapter);
  4388. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4389. }
  4390. inline IUnknownPtr ADORecordsetConstruction::GetRowPosition ( ) {
  4391. IUnknown * _result;
  4392. HRESULT _hr = get_RowPosition(&_result);
  4393. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4394. return IUnknownPtr(_result, false);
  4395. }
  4396. inline void ADORecordsetConstruction::PutRowPosition ( IUnknown * ppRowPos ) {
  4397. HRESULT _hr = put_RowPosition(ppRowPos);
  4398. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4399. }
  4400. //
  4401. // interface Field15 wrapper method implementations
  4402. //
  4403. inline long Field15::GetActualSize ( ) {
  4404. long _result;
  4405. HRESULT _hr = get_ActualSize(&_result);
  4406. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4407. return _result;
  4408. }
  4409. inline long Field15::GetAttributes ( ) {
  4410. long _result;
  4411. HRESULT _hr = get_Attributes(&_result);
  4412. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4413. return _result;
  4414. }
  4415. inline long Field15::GetDefinedSize ( ) {
  4416. long _result;
  4417. HRESULT _hr = get_DefinedSize(&_result);
  4418. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4419. return _result;
  4420. }
  4421. inline _bstr_t Field15::GetName ( ) {
  4422. BSTR _result;
  4423. HRESULT _hr = get_Name(&_result);
  4424. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4425. return _bstr_t(_result, false);
  4426. }
  4427. inline enum DataTypeEnum Field15::GetType ( ) {
  4428. enum DataTypeEnum _result;
  4429. HRESULT _hr = get_Type(&_result);
  4430. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4431. return _result;
  4432. }
  4433. inline _variant_t Field15::GetValue ( ) {
  4434. VARIANT _result;
  4435. VariantInit(&_result);
  4436. HRESULT _hr = get_Value(&_result);
  4437. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4438. return _variant_t(_result, false);
  4439. }
  4440. inline void Field15::PutValue ( const _variant_t & pvar ) {
  4441. HRESULT _hr = put_Value(pvar);
  4442. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4443. }
  4444. inline unsigned char Field15::GetPrecision ( ) {
  4445. unsigned char _result;
  4446. HRESULT _hr = get_Precision(&_result);
  4447. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4448. return _result;
  4449. }
  4450. inline unsigned char Field15::GetNumericScale ( ) {
  4451. unsigned char _result;
  4452. HRESULT _hr = get_NumericScale(&_result);
  4453. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4454. return _result;
  4455. }
  4456. inline HRESULT Field15::AppendChunk ( const _variant_t & Data ) {
  4457. HRESULT _hr = raw_AppendChunk(Data);
  4458. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4459. return _hr;
  4460. }
  4461. inline _variant_t Field15::GetChunk ( long Length ) {
  4462. VARIANT _result;
  4463. VariantInit(&_result);
  4464. HRESULT _hr = raw_GetChunk(Length, &_result);
  4465. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4466. return _variant_t(_result, false);
  4467. }
  4468. inline _variant_t Field15::GetOriginalValue ( ) {
  4469. VARIANT _result;
  4470. VariantInit(&_result);
  4471. HRESULT _hr = get_OriginalValue(&_result);
  4472. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4473. return _variant_t(_result, false);
  4474. }
  4475. inline _variant_t Field15::GetUnderlyingValue ( ) {
  4476. VARIANT _result;
  4477. VariantInit(&_result);
  4478. HRESULT _hr = get_UnderlyingValue(&_result);
  4479. if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
  4480. return _variant_t(_result, false);
  4481. }
  4482. #pragma pack(pop)