home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 2000 September / VPR0009A.BIN / VS60SP4JPN / support / oledberr.h < prev    next >
C/C++ Source or Header  |  1999-01-29  |  37KB  |  1,731 lines

  1. #ifndef _MSADERR_H_
  2. #define _MSADERR_H_
  3. #ifndef FACILITY_WINDOWS
  4. //+---------------------------------------------------------------------------
  5. //
  6. //  Microsoft OLE DB
  7. //  Copyright (C) Microsoft Corporation, 1994 - 1998.
  8. //
  9. //----------------------------------------------------------------------------
  10.  
  11.  
  12. //
  13. //  Values are 32 bit values layed out as follows:
  14. //
  15. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  16. //   1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  17. //  +---+-+-+-----------------------+-------------------------------+
  18. //  |Sev|C|R|     Facility          |               Code            |
  19. //  +---+-+-+-----------------------+-------------------------------+
  20. //
  21. //  where
  22. //
  23. //      Sev - is the severity code
  24. //
  25. //          00 - Success
  26. //          01 - Informational
  27. //          10 - Warning
  28. //          11 - Error
  29. //
  30. //      C - is the Customer code flag
  31. //
  32. //      R - is a reserved bit
  33. //
  34. //      Facility - is the facility code
  35. //
  36. //      Code - is the facility's status code
  37. //
  38. //
  39. // Define the facility codes
  40. //
  41. #define FACILITY_WINDOWS                 0x8
  42. #define FACILITY_ITF                     0x4
  43.  
  44.  
  45. //
  46. // Define the severity codes
  47. //
  48. #define STATUS_SEVERITY_SUCCESS          0x0
  49. #define STATUS_SEVERITY_COERROR          0x2
  50.  
  51.  
  52. //
  53. // MessageId: DB_E_BOGUS
  54. //
  55. // MessageText:
  56. //
  57. //  Dummy error - need this error so that mc puts the above defines
  58. //  inside the FACILITY_WINDOWS guard, instead of leaving it empty
  59. //
  60. #define DB_E_BOGUS                       ((HRESULT)0x80040EFFL)
  61.  
  62. #endif // FACILITY_WINDOWS
  63.  
  64. //
  65. // Codes 0x0e00-0x0eff are reserved for the OLE DB group of
  66. // interfaces.
  67. //
  68. // Free codes are:
  69. //
  70. //        Error:
  71. //                        
  72. //
  73. //        Success:
  74. //            0x0eea
  75. //            
  76. //
  77.  
  78.  
  79. //
  80. // OLEDBVER
  81. //    OLE DB version number (0x0210); this can be overridden with an older
  82. // version number if necessary
  83. //
  84.  
  85. // If OLEDBVER is not defined, assume version 2.1
  86. #ifndef OLEDBVER
  87. #define OLEDBVER 0x0210
  88. #endif
  89.  
  90. //
  91. // MessageId: DB_E_BADACCESSORHANDLE
  92. //
  93. // MessageText:
  94. //
  95. //  Invalid accessor
  96. //
  97. #define DB_E_BADACCESSORHANDLE           ((HRESULT)0x80040E00L)
  98.  
  99. //
  100. // MessageId: DB_E_ROWLIMITEXCEEDED
  101. //
  102. // MessageText:
  103. //
  104. //  Creating another row would have exceeded the total number of active
  105. //  rows supported by the rowset
  106. //
  107. #define DB_E_ROWLIMITEXCEEDED            ((HRESULT)0x80040E01L)
  108.  
  109. //
  110. // MessageId: DB_E_READONLYACCESSOR
  111. //
  112. // MessageText:
  113. //
  114. //  Unable to write with a read-only accessor
  115. //
  116. #define DB_E_READONLYACCESSOR            ((HRESULT)0x80040E02L)
  117.  
  118. //
  119. // MessageId: DB_E_SCHEMAVIOLATION
  120. //
  121. // MessageText:
  122. //
  123. //  Given values violate the database schema
  124. //
  125. #define DB_E_SCHEMAVIOLATION             ((HRESULT)0x80040E03L)
  126.  
  127. //
  128. // MessageId: DB_E_BADROWHANDLE
  129. //
  130. // MessageText:
  131. //
  132. //  Invalid row handle
  133. //
  134. #define DB_E_BADROWHANDLE                ((HRESULT)0x80040E04L)
  135.  
  136. //
  137. // MessageId: DB_E_OBJECTOPEN
  138. //
  139. // MessageText:
  140. //
  141. //  An object was open
  142. //
  143. #define DB_E_OBJECTOPEN                  ((HRESULT)0x80040E05L)
  144.  
  145. //@@@+ V1.5
  146. #if( OLEDBVER >= 0x0150 )
  147. //
  148. // MessageId: DB_E_BADCHAPTER
  149. //
  150. // MessageText:
  151. //
  152. //  Invalid chapter
  153. //
  154. #define DB_E_BADCHAPTER                  ((HRESULT)0x80040E06L)
  155.  
  156. #endif // OLEDBVER >= 0x0150
  157. //@@@- V1.5
  158.  
  159. //
  160. // MessageId: DB_E_CANTCONVERTVALUE
  161. //
  162. // MessageText:
  163. //
  164. //  A literal value in the command could not be converted to the
  165. //  correct type due to a reason other than data overflow
  166. //
  167. #define DB_E_CANTCONVERTVALUE            ((HRESULT)0x80040E07L)
  168.  
  169. //
  170. // MessageId: DB_E_BADBINDINFO
  171. //
  172. // MessageText:
  173. //
  174. //  Invalid binding info
  175. //
  176. #define DB_E_BADBINDINFO                 ((HRESULT)0x80040E08L)
  177.  
  178. //
  179. // MessageId: DB_SEC_E_PERMISSIONDENIED
  180. //
  181. // MessageText:
  182. //
  183. //  Permission denied
  184. //
  185. #define DB_SEC_E_PERMISSIONDENIED        ((HRESULT)0x80040E09L)
  186.  
  187. //
  188. // MessageId: DB_E_NOTAREFERENCECOLUMN
  189. //
  190. // MessageText:
  191. //
  192. //  Specified column does not contain bookmarks or chapters
  193. //
  194. #define DB_E_NOTAREFERENCECOLUMN         ((HRESULT)0x80040E0AL)
  195.  
  196. //@@@+ V2.5
  197. #if( OLEDBVER >= 0x0250 )
  198. //
  199. // MessageId: DB_E_LIMITREJECTED
  200. //
  201. // MessageText:
  202. //
  203. //  Some cost limits were rejected
  204. //
  205. #define DB_E_LIMITREJECTED               ((HRESULT)0x80040E0BL)
  206.  
  207. #endif // OLEDBVER >= 0x0250
  208. //@@@- V2.5
  209.  
  210. //
  211. // MessageId: DB_E_NOCOMMAND
  212. //
  213. // MessageText:
  214. //
  215. //  No command has been set for the command object
  216. //
  217. #define DB_E_NOCOMMAND                   ((HRESULT)0x80040E0CL)
  218.  
  219. //@@@+ V2.5
  220. #if( OLEDBVER >= 0x0250 )
  221. //
  222. // MessageId: DB_E_COSTLIMIT
  223. //
  224. // MessageText:
  225. //
  226. //  Unable to find a query plan within the given cost limit
  227. //
  228. #define DB_E_COSTLIMIT                   ((HRESULT)0x80040E0DL)
  229.  
  230. #endif // OLEDBVER >= 0x0250
  231. //@@@- V2.5
  232.  
  233. //
  234. // MessageId: DB_E_BADBOOKMARK
  235. //
  236. // MessageText:
  237. //
  238. //  Invalid bookmark
  239. //
  240. #define DB_E_BADBOOKMARK                 ((HRESULT)0x80040E0EL)
  241.  
  242. //
  243. // MessageId: DB_E_BADLOCKMODE
  244. //
  245. // MessageText:
  246. //
  247. //  Invalid lock mode
  248. //
  249. #define DB_E_BADLOCKMODE                 ((HRESULT)0x80040E0FL)
  250.  
  251. //
  252. // MessageId: DB_E_PARAMNOTOPTIONAL
  253. //
  254. // MessageText:
  255. //
  256. //  No value given for one or more required parameters
  257. //
  258. #define DB_E_PARAMNOTOPTIONAL            ((HRESULT)0x80040E10L)
  259.  
  260. //
  261. // MessageId: DB_E_BADCOLUMNID
  262. //
  263. // MessageText:
  264. //
  265. //  Invalid column ID
  266. //
  267. #define DB_E_BADCOLUMNID                 ((HRESULT)0x80040E11L)
  268.  
  269. //
  270. // MessageId: DB_E_BADRATIO
  271. //
  272. // MessageText:
  273. //
  274. //  Invalid ratio
  275. //
  276. #define DB_E_BADRATIO                    ((HRESULT)0x80040E12L)
  277.  
  278. //@@@+ V2.0
  279. #if( OLEDBVER >= 0x0200 )
  280. //
  281. // MessageId: DB_E_BADVALUES
  282. //
  283. // MessageText:
  284. //
  285. //  Invalid value
  286. //
  287. #define DB_E_BADVALUES                   ((HRESULT)0x80040E13L)
  288.  
  289. #endif // OLEDBVER >= 0x0200
  290. //@@@- V2.0
  291.  
  292. //
  293. // MessageId: DB_E_ERRORSINCOMMAND
  294. //
  295. // MessageText:
  296. //
  297. //  The command contained one or more errors
  298. //
  299. #define DB_E_ERRORSINCOMMAND             ((HRESULT)0x80040E14L)
  300.  
  301. //
  302. // MessageId: DB_E_CANTCANCEL
  303. //
  304. // MessageText:
  305. //
  306. //  The executing command cannot be canceled
  307. //
  308. #define DB_E_CANTCANCEL                  ((HRESULT)0x80040E15L)
  309.  
  310. //
  311. // MessageId: DB_E_DIALECTNOTSUPPORTED
  312. //
  313. // MessageText:
  314. //
  315. //  The provider does not support the specified dialect
  316. //
  317. #define DB_E_DIALECTNOTSUPPORTED         ((HRESULT)0x80040E16L)
  318.  
  319. //
  320. // MessageId: DB_E_DUPLICATEDATASOURCE
  321. //
  322. // MessageText:
  323. //
  324. //  A data source with the specified name already exists
  325. //
  326. #define DB_E_DUPLICATEDATASOURCE         ((HRESULT)0x80040E17L)
  327.  
  328. //
  329. // MessageId: DB_E_CANNOTRESTART
  330. //
  331. // MessageText:
  332. //
  333. //  The rowset was built over a live data feed and cannot be restarted
  334. //
  335. #define DB_E_CANNOTRESTART               ((HRESULT)0x80040E18L)
  336.  
  337. //
  338. // MessageId: DB_E_NOTFOUND
  339. //
  340. // MessageText:
  341. //
  342. //  No key matching the described characteristics could be found within
  343. //  the current range
  344. //
  345. #define DB_E_NOTFOUND                    ((HRESULT)0x80040E19L)
  346.  
  347. //
  348. // MessageId: DB_E_NEWLYINSERTED
  349. //
  350. // MessageText:
  351. //
  352. //  The provider is unable to determine identity for newly inserted
  353. //  rows
  354. //
  355. #define DB_E_NEWLYINSERTED               ((HRESULT)0x80040E1BL)
  356.  
  357. //@@@+ V2.5
  358. #if( OLEDBVER >= 0x0250 )
  359. //
  360. // MessageId: DB_E_CANNOTFREE
  361. //
  362. // MessageText:
  363. //
  364. //  Ownership of this tree has been given to the provider
  365. //
  366. #define DB_E_CANNOTFREE                  ((HRESULT)0x80040E1AL)
  367.  
  368. //
  369. // MessageId: DB_E_GOALREJECTED
  370. //
  371. // MessageText:
  372. //
  373. //  No nonzero weights specified for any goals supported, so goal was
  374. //  rejected; current goal was not changed
  375. //
  376. #define DB_E_GOALREJECTED                ((HRESULT)0x80040E1CL)
  377.  
  378. #endif // OLEDBVER >= 0x0250
  379. //@@@- V2.5
  380.  
  381. //
  382. // MessageId: DB_E_UNSUPPORTEDCONVERSION
  383. //
  384. // MessageText:
  385. //
  386. //  Requested conversion is not supported
  387. //
  388. #define DB_E_UNSUPPORTEDCONVERSION       ((HRESULT)0x80040E1DL)
  389.  
  390. //
  391. // MessageId: DB_E_BADSTARTPOSITION
  392. //
  393. // MessageText:
  394. //
  395. //  lRowsOffset would position you past either end of the rowset,
  396. //  regardless of the cRows value specified; cRowsObtained is 0
  397. //
  398. #define DB_E_BADSTARTPOSITION            ((HRESULT)0x80040E1EL)
  399.  
  400. //@@@+ V2.0
  401. #if( OLEDBVER >= 0x0200 )
  402. //
  403. // MessageId: DB_E_NOQUERY
  404. //
  405. // MessageText:
  406. //
  407. //  Information was requested for a query, and the query was not set
  408. //
  409. #define DB_E_NOQUERY                     ((HRESULT)0x80040E1FL)
  410.  
  411. #endif // OLEDBVER >= 0x0200
  412. //@@@- V2.0
  413.  
  414. //
  415. // MessageId: DB_E_NOTREENTRANT
  416. //
  417. // MessageText:
  418. //
  419. //  Provider called a method from IRowsetNotify in the consumer and    the
  420. //  method has not yet returned
  421. //
  422. #define DB_E_NOTREENTRANT                ((HRESULT)0x80040E20L)
  423.  
  424. //
  425. // MessageId: DB_E_ERRORSOCCURRED
  426. //
  427. // MessageText:
  428. //
  429. //  Errors occurred
  430. //
  431. #define DB_E_ERRORSOCCURRED              ((HRESULT)0x80040E21L)
  432.  
  433. //
  434. // MessageId: DB_E_NOAGGREGATION
  435. //
  436. // MessageText:
  437. //
  438. //  A non-NULL controlling IUnknown was specified and the object being
  439. //  created does not support aggregation
  440. //
  441. #define DB_E_NOAGGREGATION               ((HRESULT)0x80040E22L)
  442.  
  443. //
  444. // MessageId: DB_E_DELETEDROW
  445. //
  446. // MessageText:
  447. //
  448. //  A given HROW referred to a hard- or soft-deleted row
  449. //
  450. #define DB_E_DELETEDROW                  ((HRESULT)0x80040E23L)
  451.  
  452. //
  453. // MessageId: DB_E_CANTFETCHBACKWARDS
  454. //
  455. // MessageText:
  456. //
  457. //  The rowset does not support fetching backwards
  458. //
  459. #define DB_E_CANTFETCHBACKWARDS          ((HRESULT)0x80040E24L)
  460.  
  461. //
  462. // MessageId: DB_E_ROWSNOTRELEASED
  463. //
  464. // MessageText:
  465. //
  466. //  All HROWs must be released before new ones can be obtained
  467. //
  468. #define DB_E_ROWSNOTRELEASED             ((HRESULT)0x80040E25L)
  469.  
  470. //
  471. // MessageId: DB_E_BADSTORAGEFLAG
  472. //
  473. // MessageText:
  474. //
  475. //  One of the specified storage flags was not supported
  476. //
  477. #define DB_E_BADSTORAGEFLAG              ((HRESULT)0x80040E26L)
  478.  
  479. //@@@+ V1.5
  480. #if( OLEDBVER >= 0x0150 )
  481. //
  482. // MessageId: DB_E_BADCOMPAREOP
  483. //
  484. // MessageText:
  485. //
  486. //  The comparison operator was invalid
  487. //
  488. #define DB_E_BADCOMPAREOP                ((HRESULT)0x80040E27L)
  489.  
  490. #endif // OLEDBVER >= 0x0150
  491. //@@@- V1.5
  492.  
  493. //
  494. // MessageId: DB_E_BADSTATUSVALUE
  495. //
  496. // MessageText:
  497. //
  498. //  The specified status flag was neither DBCOLUMNSTATUS_OK nor
  499. //  DBCOLUMNSTATUS_ISNULL
  500. //
  501. #define DB_E_BADSTATUSVALUE              ((HRESULT)0x80040E28L)
  502.  
  503. //
  504. // MessageId: DB_E_CANTSCROLLBACKWARDS
  505. //
  506. // MessageText:
  507. //
  508. //  The rowset cannot scroll backwards
  509. //
  510. #define DB_E_CANTSCROLLBACKWARDS         ((HRESULT)0x80040E29L)
  511.  
  512. //@@@+ V2.5
  513. #if( OLEDBVER >= 0x0250 )
  514. //
  515. // MessageId: DB_E_BADREGIONHANDLE
  516. //
  517. // MessageText:
  518. //
  519. //  Invalid region handle
  520. //
  521. #define DB_E_BADREGIONHANDLE             ((HRESULT)0x80040E2AL)
  522.  
  523. //
  524. // MessageId: DB_E_NONCONTIGUOUSRANGE
  525. //
  526. // MessageText:
  527. //
  528. //  The specified set of rows was not contiguous to or overlapping the
  529. //  rows in the specified watch region
  530. //
  531. #define DB_E_NONCONTIGUOUSRANGE          ((HRESULT)0x80040E2BL)
  532.  
  533. //
  534. // MessageId: DB_E_INVALIDTRANSITION
  535. //
  536. // MessageText:
  537. //
  538. //  A transition from ALL* to MOVE* or EXTEND* was specified
  539. //
  540. #define DB_E_INVALIDTRANSITION           ((HRESULT)0x80040E2CL)
  541.  
  542. //
  543. // MessageId: DB_E_NOTASUBREGION
  544. //
  545. // MessageText:
  546. //
  547. //  The specified region is not a proper subregion of the region
  548. //  identified by the given watch region handle
  549. //
  550. #define DB_E_NOTASUBREGION               ((HRESULT)0x80040E2DL)
  551.  
  552. #endif // OLEDBVER >= 0x0250
  553. //@@@- V2.5
  554.  
  555. //
  556. // MessageId: DB_E_MULTIPLESTATEMENTS
  557. //
  558. // MessageText:
  559. //
  560. //  The provider does not support multi-statement commands
  561. //
  562. #define DB_E_MULTIPLESTATEMENTS          ((HRESULT)0x80040E2EL)
  563.  
  564. //
  565. // MessageId: DB_E_INTEGRITYVIOLATION
  566. //
  567. // MessageText:
  568. //
  569. //  A specified value violated the integrity constraints for a column or
  570. //  table
  571. //
  572. #define DB_E_INTEGRITYVIOLATION          ((HRESULT)0x80040E2FL)
  573.  
  574. //
  575. // MessageId: DB_E_BADTYPENAME
  576. //
  577. // MessageText:
  578. //
  579. //  The given type name was unrecognized
  580. //
  581. #define DB_E_BADTYPENAME                 ((HRESULT)0x80040E30L)
  582.  
  583. //
  584. // MessageId: DB_E_ABORTLIMITREACHED
  585. //
  586. // MessageText:
  587. //
  588. //  Execution aborted because a resource limit has been reached; no
  589. //  results have been returned
  590. //
  591. #define DB_E_ABORTLIMITREACHED           ((HRESULT)0x80040E31L)
  592.  
  593. //@@@+ V2.0
  594. #if( OLEDBVER >= 0x0200 )
  595. //
  596. // MessageId: DB_E_ROWSETINCOMMAND
  597. //
  598. // MessageText:
  599. //
  600. //  Cannot clone a command object whose command tree contains a rowset
  601. //  or rowsets
  602. //
  603. #define DB_E_ROWSETINCOMMAND             ((HRESULT)0x80040E32L)
  604.  
  605. //
  606. // MessageId: DB_E_CANTTRANSLATE
  607. //
  608. // MessageText:
  609. //
  610. //  Cannot represent the current tree as text
  611. //
  612. #define DB_E_CANTTRANSLATE               ((HRESULT)0x80040E33L)
  613.  
  614. #endif // OLEDBVER >= 0x0200
  615. //@@@- V2.0
  616.  
  617. //
  618. // MessageId: DB_E_DUPLICATEINDEXID
  619. //
  620. // MessageText:
  621. //
  622. //  The specified index already exists
  623. //
  624. #define DB_E_DUPLICATEINDEXID            ((HRESULT)0x80040E34L)
  625.  
  626. //
  627. // MessageId: DB_E_NOINDEX
  628. //
  629. // MessageText:
  630. //
  631. //  The specified index does not exist
  632. //
  633. #define DB_E_NOINDEX                     ((HRESULT)0x80040E35L)
  634.  
  635. //
  636. // MessageId: DB_E_INDEXINUSE
  637. //
  638. // MessageText:
  639. //
  640. //  The specified index was in use
  641. //
  642. #define DB_E_INDEXINUSE                  ((HRESULT)0x80040E36L)
  643.  
  644. //
  645. // MessageId: DB_E_NOTABLE
  646. //
  647. // MessageText:
  648. //
  649. //  The specified table does not exist
  650. //
  651. #define DB_E_NOTABLE                     ((HRESULT)0x80040E37L)
  652.  
  653. //
  654. // MessageId: DB_E_CONCURRENCYVIOLATION
  655. //
  656. // MessageText:
  657. //
  658. //  The rowset was using optimistic concurrency and the value of a
  659. //  column has been changed since it was last read
  660. //
  661. #define DB_E_CONCURRENCYVIOLATION        ((HRESULT)0x80040E38L)
  662.  
  663. //
  664. // MessageId: DB_E_BADCOPY
  665. //
  666. // MessageText:
  667. //
  668. //  Errors were detected during the copy
  669. //
  670. #define DB_E_BADCOPY                     ((HRESULT)0x80040E39L)
  671.  
  672. //
  673. // MessageId: DB_E_BADPRECISION
  674. //
  675. // MessageText:
  676. //
  677. //  A specified precision was invalid
  678. //
  679. #define DB_E_BADPRECISION                ((HRESULT)0x80040E3AL)
  680.  
  681. //
  682. // MessageId: DB_E_BADSCALE
  683. //
  684. // MessageText:
  685. //
  686. //  A specified scale was invalid
  687. //
  688. #define DB_E_BADSCALE                    ((HRESULT)0x80040E3BL)
  689.  
  690. //
  691. // MessageId: DB_E_BADTABLEID
  692. //
  693. // MessageText:
  694. //
  695. //  Invalid table ID
  696. //
  697. #define DB_E_BADTABLEID                  ((HRESULT)0x80040E3CL)
  698.  
  699. // DB_E_BADID is deprecated; use DB_E_BADTABLEID instead
  700. #define DB_E_BADID DB_E_BADTABLEID
  701.  
  702. //
  703. // MessageId: DB_E_BADTYPE
  704. //
  705. // MessageText:
  706. //
  707. //  A specified type was invalid
  708. //
  709. #define DB_E_BADTYPE                     ((HRESULT)0x80040E3DL)
  710.  
  711. //
  712. // MessageId: DB_E_DUPLICATECOLUMNID
  713. //
  714. // MessageText:
  715. //
  716. //  A column ID was occurred more than once in the specification
  717. //
  718. #define DB_E_DUPLICATECOLUMNID           ((HRESULT)0x80040E3EL)
  719.  
  720. //
  721. // MessageId: DB_E_DUPLICATETABLEID
  722. //
  723. // MessageText:
  724. //
  725. //  The specified table already exists
  726. //
  727. #define DB_E_DUPLICATETABLEID            ((HRESULT)0x80040E3FL)
  728.  
  729. //
  730. // MessageId: DB_E_TABLEINUSE
  731. //
  732. // MessageText:
  733. //
  734. //  The specified table was in use
  735. //
  736. #define DB_E_TABLEINUSE                  ((HRESULT)0x80040E40L)
  737.  
  738. //
  739. // MessageId: DB_E_NOLOCALE
  740. //
  741. // MessageText:
  742. //
  743. //  The specified locale ID was not supported
  744. //
  745. #define DB_E_NOLOCALE                    ((HRESULT)0x80040E41L)
  746.  
  747. //
  748. // MessageId: DB_E_BADRECORDNUM
  749. //
  750. // MessageText:
  751. //
  752. //  The specified record number is invalid
  753. //
  754. #define DB_E_BADRECORDNUM                ((HRESULT)0x80040E42L)
  755.  
  756. //
  757. // MessageId: DB_E_BOOKMARKSKIPPED
  758. //
  759. // MessageText:
  760. //
  761. //  Although the bookmark was validly formed, no row could be found to
  762. //  match it
  763. //
  764. #define DB_E_BOOKMARKSKIPPED             ((HRESULT)0x80040E43L)
  765.  
  766. //
  767. // MessageId: DB_E_BADPROPERTYVALUE
  768. //
  769. // MessageText:
  770. //
  771. //  The value of a property was invalid
  772. //
  773. #define DB_E_BADPROPERTYVALUE            ((HRESULT)0x80040E44L)
  774.  
  775. //
  776. // MessageId: DB_E_INVALID
  777. //
  778. // MessageText:
  779. //
  780. //  The rowset was not chaptered
  781. //
  782. #define DB_E_INVALID                     ((HRESULT)0x80040E45L)
  783.  
  784. //
  785. // MessageId: DB_E_BADACCESSORFLAGS
  786. //
  787. // MessageText:
  788. //
  789. //  Invalid accessor
  790. //
  791. #define DB_E_BADACCESSORFLAGS            ((HRESULT)0x80040E46L)
  792.  
  793. //
  794. // MessageId: DB_E_BADSTORAGEFLAGS
  795. //
  796. // MessageText:
  797. //
  798. //  Invalid storage flags
  799. //
  800. #define DB_E_BADSTORAGEFLAGS             ((HRESULT)0x80040E47L)
  801.  
  802. //
  803. // MessageId: DB_E_BYREFACCESSORNOTSUPPORTED
  804. //
  805. // MessageText:
  806. //
  807. //  By-ref accessors are not supported by this provider
  808. //
  809. #define DB_E_BYREFACCESSORNOTSUPPORTED   ((HRESULT)0x80040E48L)
  810.  
  811. //
  812. // MessageId: DB_E_NULLACCESSORNOTSUPPORTED
  813. //
  814. // MessageText:
  815. //
  816. //  Null accessors are not supported by this provider
  817. //
  818. #define DB_E_NULLACCESSORNOTSUPPORTED    ((HRESULT)0x80040E49L)
  819.  
  820. //
  821. // MessageId: DB_E_NOTPREPARED
  822. //
  823. // MessageText:
  824. //
  825. //  The command was not prepared
  826. //
  827. #define DB_E_NOTPREPARED                 ((HRESULT)0x80040E4AL)
  828.  
  829. //
  830. // MessageId: DB_E_BADACCESSORTYPE
  831. //
  832. // MessageText:
  833. //
  834. //  The specified accessor was not a parameter accessor
  835. //
  836. #define DB_E_BADACCESSORTYPE             ((HRESULT)0x80040E4BL)
  837.  
  838. //
  839. // MessageId: DB_E_WRITEONLYACCESSOR
  840. //
  841. // MessageText:
  842. //
  843. //  The given accessor was write-only
  844. //
  845. #define DB_E_WRITEONLYACCESSOR           ((HRESULT)0x80040E4CL)
  846.  
  847. //
  848. // MessageId: DB_SEC_E_AUTH_FAILED
  849. //
  850. // MessageText:
  851. //
  852. //  Authentication failed
  853. //
  854. #define DB_SEC_E_AUTH_FAILED             ((HRESULT)0x80040E4DL)
  855.  
  856. //
  857. // MessageId: DB_E_CANCELED
  858. //
  859. // MessageText:
  860. //
  861. //  The change was canceled during notification; no columns are changed
  862. //
  863. #define DB_E_CANCELED                    ((HRESULT)0x80040E4EL)
  864.  
  865. //@@@+ V2.0
  866. #if( OLEDBVER >= 0x0200 )
  867. //
  868. // MessageId: DB_E_CHAPTERNOTRELEASED
  869. //
  870. // MessageText:
  871. //
  872. //  The rowset was single-chaptered and the chapter was not released
  873. //
  874. #define DB_E_CHAPTERNOTRELEASED          ((HRESULT)0x80040E4FL)
  875.  
  876. #endif // OLEDBVER >= 0x0200
  877. //@@@- V2.0
  878.  
  879. //
  880. // MessageId: DB_E_BADSOURCEHANDLE
  881. //
  882. // MessageText:
  883. //
  884. //  Invalid source handle
  885. //
  886. #define DB_E_BADSOURCEHANDLE             ((HRESULT)0x80040E50L)
  887.  
  888. //
  889. // MessageId: DB_E_PARAMUNAVAILABLE
  890. //
  891. // MessageText:
  892. //
  893. //  The provider cannot derive parameter info and SetParameterInfo has
  894. //  not been called
  895. //
  896. #define DB_E_PARAMUNAVAILABLE            ((HRESULT)0x80040E51L)
  897.  
  898. //
  899. // MessageId: DB_E_ALREADYINITIALIZED
  900. //
  901. // MessageText:
  902. //
  903. //  The data source object is already initialized
  904. //
  905. #define DB_E_ALREADYINITIALIZED          ((HRESULT)0x80040E52L)
  906.  
  907. //
  908. // MessageId: DB_E_NOTSUPPORTED
  909. //
  910. // MessageText:
  911. //
  912. //  The provider does not support this method
  913. //
  914. #define DB_E_NOTSUPPORTED                ((HRESULT)0x80040E53L)
  915.  
  916. //
  917. // MessageId: DB_E_MAXPENDCHANGESEXCEEDED
  918. //
  919. // MessageText:
  920. //
  921. //  The number of rows with pending changes has exceeded the set limit
  922. //
  923. #define DB_E_MAXPENDCHANGESEXCEEDED      ((HRESULT)0x80040E54L)
  924.  
  925. //
  926. // MessageId: DB_E_BADORDINAL
  927. //
  928. // MessageText:
  929. //
  930. //  The specified column did not exist
  931. //
  932. #define DB_E_BADORDINAL                  ((HRESULT)0x80040E55L)
  933.  
  934. //
  935. // MessageId: DB_E_PENDINGCHANGES
  936. //
  937. // MessageText:
  938. //
  939. //  There are pending changes on a row with a reference count of zero
  940. //
  941. #define DB_E_PENDINGCHANGES              ((HRESULT)0x80040E56L)
  942.  
  943. //
  944. // MessageId: DB_E_DATAOVERFLOW
  945. //
  946. // MessageText:
  947. //
  948. //  A literal value in the command overflowed the range of the type of
  949. //  the associated column
  950. //
  951. #define DB_E_DATAOVERFLOW                ((HRESULT)0x80040E57L)
  952.  
  953. //
  954. // MessageId: DB_E_BADHRESULT
  955. //
  956. // MessageText:
  957. //
  958. //  The supplied HRESULT was invalid
  959. //
  960. #define DB_E_BADHRESULT                  ((HRESULT)0x80040E58L)
  961.  
  962. //
  963. // MessageId: DB_E_BADLOOKUPID
  964. //
  965. // MessageText:
  966. //
  967. //  The supplied LookupID was invalid
  968. //
  969. #define DB_E_BADLOOKUPID                 ((HRESULT)0x80040E59L)
  970.  
  971. //
  972. // MessageId: DB_E_BADDYNAMICERRORID
  973. //
  974. // MessageText:
  975. //
  976. //  The supplied DynamicErrorID was invalid
  977. //
  978. #define DB_E_BADDYNAMICERRORID           ((HRESULT)0x80040E5AL)
  979.  
  980. //
  981. // MessageId: DB_E_PENDINGINSERT
  982. //
  983. // MessageText:
  984. //
  985. //  Unable to get visible data for a newly-inserted row that has not
  986. //  yet been updated
  987. //
  988. #define DB_E_PENDINGINSERT               ((HRESULT)0x80040E5BL)
  989.  
  990. //
  991. // MessageId: DB_E_BADCONVERTFLAG
  992. //
  993. // MessageText:
  994. //
  995. //  Invalid conversion flag
  996. //
  997. #define DB_E_BADCONVERTFLAG              ((HRESULT)0x80040E5CL)
  998.  
  999. //
  1000. // MessageId: DB_E_BADPARAMETERNAME
  1001. //
  1002. // MessageText:
  1003. //
  1004. //  The given parameter name was unrecognized
  1005. //
  1006. #define DB_E_BADPARAMETERNAME            ((HRESULT)0x80040E5DL)
  1007.  
  1008. //
  1009. // MessageId: DB_E_MULTIPLESTORAGE
  1010. //
  1011. // MessageText:
  1012. //
  1013. //  Multiple storage objects can not be open simultaneously
  1014. //
  1015. #define DB_E_MULTIPLESTORAGE             ((HRESULT)0x80040E5EL)
  1016.  
  1017. //
  1018. // MessageId: DB_E_CANTFILTER
  1019. //
  1020. // MessageText:
  1021. //
  1022. //  The requested filter could not be opened
  1023. //
  1024. #define DB_E_CANTFILTER                  ((HRESULT)0x80040E5FL)
  1025.  
  1026. //
  1027. // MessageId: DB_E_CANTORDER
  1028. //
  1029. // MessageText:
  1030. //
  1031. //  The requested order could not be opened
  1032. //
  1033. #define DB_E_CANTORDER                   ((HRESULT)0x80040E60L)
  1034.  
  1035. //@@@+ V2.0
  1036. #if( OLEDBVER >= 0x0200 )
  1037. //
  1038. // MessageId: MD_E_BADTUPLE
  1039. //
  1040. // MessageText:
  1041. //
  1042. //  Bad tuple
  1043. //
  1044. #define MD_E_BADTUPLE                    ((HRESULT)0x80040E61L)
  1045.  
  1046. //
  1047. // MessageId: MD_E_BADCOORDINATE
  1048. //
  1049. // MessageText:
  1050. //
  1051. //  Bad coordinate
  1052. //
  1053. #define MD_E_BADCOORDINATE               ((HRESULT)0x80040E62L)
  1054.  
  1055. //
  1056. // MessageId: MD_E_INVALIDAXIS
  1057. //
  1058. // MessageText:
  1059. //
  1060. //  The given axis was not valid for this Dataset
  1061. //
  1062. #define MD_E_INVALIDAXIS                 ((HRESULT)0x80040E63L)
  1063.  
  1064. //
  1065. // MessageId: MD_E_INVALIDCELLRANGE
  1066. //
  1067. // MessageText:
  1068. //
  1069. //  One or more of the given cell ordinals was invalid
  1070. //
  1071. #define MD_E_INVALIDCELLRANGE            ((HRESULT)0x80040E64L)
  1072.  
  1073. //
  1074. // MessageId: DB_E_NOCOLUMN
  1075. //
  1076. // MessageText:
  1077. //
  1078. //  The supplied columnID was invalid
  1079. //
  1080. #define DB_E_NOCOLUMN                    ((HRESULT)0x80040E65L)
  1081.  
  1082. //
  1083. // MessageId: DB_E_COMMANDNOTPERSISTED
  1084. //
  1085. // MessageText:
  1086. //
  1087. //  The supplied command does not have a DBID
  1088. //
  1089. #define DB_E_COMMANDNOTPERSISTED         ((HRESULT)0x80040E67L)
  1090.  
  1091. //
  1092. // MessageId: DB_E_DUPLICATEID
  1093. //
  1094. // MessageText:
  1095. //
  1096. //  The supplied DBID already exists
  1097. //
  1098. #define DB_E_DUPLICATEID                 ((HRESULT)0x80040E68L)
  1099.  
  1100. //
  1101. // MessageId: DB_E_OBJECTCREATIONLIMITREACHED
  1102. //
  1103. // MessageText:
  1104. //
  1105. //  The maximum number of Sessions supported by the provider has 
  1106. //  already been created. The consumer must release one or more 
  1107. //  currently held Sessions before obtaining a new Session Object
  1108. //
  1109. #define DB_E_OBJECTCREATIONLIMITREACHED  ((HRESULT)0x80040E69L)
  1110.  
  1111. //
  1112. // MessageId: DB_E_BADINDEXID
  1113. //
  1114. // MessageText:
  1115. //
  1116. //  The index ID is invalid
  1117. //
  1118. #define DB_E_BADINDEXID                  ((HRESULT)0x80040E72L)
  1119.  
  1120. //
  1121. // MessageId: DB_E_BADINITSTRING
  1122. //
  1123. // MessageText:
  1124. //
  1125. //  The initialization string specified does not conform to specificiation
  1126. //
  1127. #define DB_E_BADINITSTRING               ((HRESULT)0x80040E73L)
  1128.  
  1129. //
  1130. // MessageId: DB_E_NOPROVIDERSREGISTERED
  1131. //
  1132. // MessageText:
  1133. //
  1134. //  The OLE DB root enumerator did not return any providers that 
  1135. //  matched any of the SOURCES_TYPEs requested
  1136. //
  1137. #define DB_E_NOPROVIDERSREGISTERED       ((HRESULT)0x80040E74L)
  1138.  
  1139. //
  1140. // MessageId: DB_E_MISMATCHEDPROVIDER
  1141. //
  1142. // MessageText:
  1143. //
  1144. //  The initialization string specifies a provider which does not match the currently active provider
  1145. //
  1146. #define DB_E_MISMATCHEDPROVIDER          ((HRESULT)0x80040E75L)
  1147.  
  1148. //
  1149. // MessageId: DB_E_BADCOMMANDID
  1150. //
  1151. // MessageText:
  1152. //
  1153. //  The specified DBID is invalid
  1154. //
  1155. #define DB_E_BADCOMMANDID                ((HRESULT)0x80040E76L)
  1156.  
  1157. #endif // OLEDBVER >= 0x0200
  1158. //@@@- V2.0
  1159. //@@@+ V2.1
  1160. #if( OLEDBVER >= 0x0210 )
  1161. #define SEC_E_PERMISSIONDENIED DB_SEC_E_PERMISSIONDENIED
  1162. //
  1163. // MessageId: SEC_E_BADTRUSTEEID
  1164. //
  1165. // MessageText:
  1166. //
  1167. //  Invalid trustee value
  1168. //
  1169. #define SEC_E_BADTRUSTEEID               ((HRESULT)0x80040E6AL)
  1170.  
  1171. //
  1172. // MessageId: SEC_E_NOTRUSTEEID
  1173. //
  1174. // MessageText:
  1175. //
  1176. //  The trustee is not for the current data source
  1177. //
  1178. #define SEC_E_NOTRUSTEEID                ((HRESULT)0x80040E6BL)
  1179.  
  1180. //
  1181. // MessageId: SEC_E_NOMEMBERSHIPSUPPORT
  1182. //
  1183. // MessageText:
  1184. //
  1185. //  The trustee does not support memberships/collections
  1186. //
  1187. #define SEC_E_NOMEMBERSHIPSUPPORT        ((HRESULT)0x80040E6CL)
  1188.  
  1189. //
  1190. // MessageId: SEC_E_INVALIDOBJECT
  1191. //
  1192. // MessageText:
  1193. //
  1194. //  The object is invalid or unknown to the provider
  1195. //
  1196. #define SEC_E_INVALIDOBJECT              ((HRESULT)0x80040E6DL)
  1197.  
  1198. //
  1199. // MessageId: SEC_E_NOOWNER
  1200. //
  1201. // MessageText:
  1202. //
  1203. //  No owner exists for the object
  1204. //
  1205. #define SEC_E_NOOWNER                    ((HRESULT)0x80040E6EL)
  1206.  
  1207. //
  1208. // MessageId: SEC_E_INVALIDACCESSENTRYLIST
  1209. //
  1210. // MessageText:
  1211. //
  1212. //  The access entry list supplied is invalid
  1213. //
  1214. #define SEC_E_INVALIDACCESSENTRYLIST     ((HRESULT)0x80040E6FL)
  1215.  
  1216. //
  1217. // MessageId: SEC_E_INVALIDOWNER
  1218. //
  1219. // MessageText:
  1220. //
  1221. //  The trustee supplied as owner is invalid or unknown to the provider
  1222. //
  1223. #define SEC_E_INVALIDOWNER               ((HRESULT)0x80040E70L)
  1224.  
  1225. //
  1226. // MessageId: SEC_E_INVALIDACCESSENTRY
  1227. //
  1228. // MessageText:
  1229. //
  1230. //  The permission supplied in the access entry list is invalid
  1231. //
  1232. #define SEC_E_INVALIDACCESSENTRY         ((HRESULT)0x80040E71L)
  1233.  
  1234. //
  1235. // MessageId: DB_E_BADCONSTRAINTTYPE
  1236. //
  1237. // MessageText:
  1238. //
  1239. //  The ConstraintType was invalid or not supported by the provider.
  1240. //
  1241. #define DB_E_BADCONSTRAINTTYPE           ((HRESULT)0x80040E77L)
  1242.  
  1243. //
  1244. // MessageId: DB_E_BADCONSTRAINTFORM
  1245. //
  1246. // MessageText:
  1247. //
  1248. //  The ConstraintType was not DBCONSTRAINTTYPE_FOREIGNKEY and cForeignKeyColumns was not zero
  1249. //
  1250. #define DB_E_BADCONSTRAINTFORM           ((HRESULT)0x80040E78L)
  1251.  
  1252. //
  1253. // MessageId: DB_E_BADDEFERRABILITY
  1254. //
  1255. // MessageText:
  1256. //
  1257. //  The Deferrability was invalid or the value was not supported by the provider
  1258. //
  1259. #define DB_E_BADDEFERRABILITY            ((HRESULT)0x80040E79L)
  1260.  
  1261. //
  1262. // MessageId: DB_E_BADMATCHTYPE
  1263. //
  1264. // MessageText:
  1265. //
  1266. //  The MatchType was invalid or the value was not supported by the provider
  1267. //
  1268. #define DB_E_BADMATCHTYPE                ((HRESULT)0x80040E80L)
  1269.  
  1270. //
  1271. // MessageId: DB_E_BADUPDATEDELETERULE
  1272. //
  1273. // MessageText:
  1274. //
  1275. //  The UpdateRule or DeleteRule was invalid or the value was not supported by the provider
  1276. //
  1277. #define DB_E_BADUPDATEDELETERULE         ((HRESULT)0x80040E8AL)
  1278.  
  1279. //
  1280. // MessageId: DB_E_BADCONSTRAINTID
  1281. //
  1282. // MessageText:
  1283. //
  1284. //  The pConstraintID did not exist in the data source
  1285. //
  1286. #define DB_E_BADCONSTRAINTID             ((HRESULT)0x80040E8BL)
  1287.  
  1288. //
  1289. // MessageId: DB_E_BADCOMMANDFLAGS
  1290. //
  1291. // MessageText:
  1292. //
  1293. //  The dwFlags was invalid
  1294. //
  1295. #define DB_E_BADCOMMANDFLAGS             ((HRESULT)0x80040E8CL)
  1296.  
  1297. //
  1298. // MessageId: DB_E_OBJECTMISMATCH
  1299. //
  1300. // MessageText:
  1301. //
  1302. //  The rguidColumnType pointed to a GUID that does not 
  1303. //  match the object type of this column or this column
  1304. //  was not set
  1305. //
  1306. #define DB_E_OBJECTMISMATCH              ((HRESULT)0x80040E8DL)
  1307.  
  1308. //
  1309. // MessageId: DB_E_NOSOURCEOBJECT
  1310. //
  1311. // MessageText:
  1312. //
  1313. //  There is no source row
  1314. //
  1315. #define DB_E_NOSOURCEOBJECT              ((HRESULT)0x80040E91L)
  1316.  
  1317. //
  1318. // MessageId: DB_E_RESOURCELOCKED
  1319. //
  1320. // MessageText:
  1321. //
  1322. //  The OLE DB object represented by this URL is locked by one 
  1323. //  or more other processes
  1324. //
  1325. #define DB_E_RESOURCELOCKED              ((HRESULT)0x80040E92L)
  1326.  
  1327. //
  1328. // MessageId: DB_E_NOTCOLLECTION
  1329. //
  1330. // MessageText:
  1331. //
  1332. //  The client requested an object type that is only valid for 
  1333. //  a collection 
  1334. //
  1335. #define DB_E_NOTCOLLECTION               ((HRESULT)0x80040E93L)
  1336.  
  1337. //
  1338. // MessageId: DB_E_READONLY
  1339. //
  1340. // MessageText:
  1341. //
  1342. //  The caller requested write access to a read-only object
  1343. //
  1344. #define DB_E_READONLY                    ((HRESULT)0x80040E94L)
  1345.  
  1346. //
  1347. // MessageId: DB_E_ASYNCNOTSUPPORTED
  1348. //
  1349. // MessageText:
  1350. //
  1351. //  The provider could not connect to the server for this object
  1352. //
  1353. #define DB_E_ASYNCNOTSUPPORTED           ((HRESULT)0x80040E95L)
  1354.  
  1355. //
  1356. // MessageId: DB_E_CANNOTCONNECT
  1357. //
  1358. // MessageText:
  1359. //
  1360. //  The provider could not connect to the server for this object
  1361. //
  1362. #define DB_E_CANNOTCONNECT               ((HRESULT)0x80040E96L)
  1363.  
  1364. //
  1365. // MessageId: DB_E_TIMEOUT
  1366. //
  1367. // MessageText:
  1368. //
  1369. //  The attempt to bind to the object timed out
  1370. //
  1371. #define DB_E_TIMEOUT                     ((HRESULT)0x80040E97L)
  1372.  
  1373. //
  1374. // MessageId: DB_E_RESOURCEEXISTS
  1375. //
  1376. // MessageText:
  1377. //
  1378. //  The provider was unable to create an object at this URL 
  1379. //  because an object named by this URL already exists
  1380. //
  1381. #define DB_E_RESOURCEEXISTS              ((HRESULT)0x80040E98L)
  1382.  
  1383. //
  1384. // MessageId: DB_E_RESOURCEOUTOFSCOPE
  1385. //
  1386. // MessageText:
  1387. //
  1388. //  The requested URL was out-of-scope
  1389. //
  1390. #define DB_E_RESOURCEOUTOFSCOPE          ((HRESULT)0x80040E8EL)
  1391.  
  1392. //
  1393. // MessageId: DB_E_DROPRESTRICTED
  1394. //
  1395. // MessageText:
  1396. //
  1397. //  The provider could not drop the object
  1398. //
  1399. #define DB_E_DROPRESTRICTED              ((HRESULT)0x80040E90L)
  1400.  
  1401. //
  1402. // MessageId: DB_E_DUPLICATECONSTRAINTID
  1403. //
  1404. // MessageText:
  1405. //
  1406. //  The provider could not drop the object
  1407. //
  1408. #define DB_E_DUPLICATECONSTRAINTID       ((HRESULT)0x80040E99L)
  1409.  
  1410. //
  1411. // MessageId: DB_E_OUTOFSPACE
  1412. //
  1413. // MessageText:
  1414. //
  1415. //  The provider was unable to create an object at this URL because 
  1416. //  the server was out of physical storage
  1417. //
  1418. #define DB_E_OUTOFSPACE                  ((HRESULT)0x80040E9AL)
  1419.  
  1420. #define SEC_E_PERMISSIONDENIED DB_SEC_E_PERMISSIONDENIED
  1421. #endif // OLEDBVER >= 0x0210
  1422. //@@@- V2.1
  1423.  
  1424. //
  1425. // MessageId: DB_S_ROWLIMITEXCEEDED
  1426. //
  1427. // MessageText:
  1428. //
  1429. //  Fetching requested number of rows would have exceeded total number
  1430. //  of active rows supported by the rowset
  1431. //
  1432. #define DB_S_ROWLIMITEXCEEDED            ((HRESULT)0x00040EC0L)
  1433.  
  1434. //
  1435. // MessageId: DB_S_COLUMNTYPEMISMATCH
  1436. //
  1437. // MessageText:
  1438. //
  1439. //  One or more column types are incompatible; conversion errors will
  1440. //  occur during copying
  1441. //
  1442. #define DB_S_COLUMNTYPEMISMATCH          ((HRESULT)0x00040EC1L)
  1443.  
  1444. //
  1445. // MessageId: DB_S_TYPEINFOOVERRIDDEN
  1446. //
  1447. // MessageText:
  1448. //
  1449. //  Parameter type information has been overridden by caller
  1450. //
  1451. #define DB_S_TYPEINFOOVERRIDDEN          ((HRESULT)0x00040EC2L)
  1452.  
  1453. //
  1454. // MessageId: DB_S_BOOKMARKSKIPPED
  1455. //
  1456. // MessageText:
  1457. //
  1458. //  Skipped bookmark for deleted or non-member row
  1459. //
  1460. #define DB_S_BOOKMARKSKIPPED             ((HRESULT)0x00040EC3L)
  1461.  
  1462. //@@@+ V2.0
  1463. #if( OLEDBVER >= 0x0200 )
  1464. //
  1465. // MessageId: DB_S_NONEXTROWSET
  1466. //
  1467. // MessageText:
  1468. //
  1469. //  There are no more rowsets
  1470. //
  1471. #define DB_S_NONEXTROWSET                ((HRESULT)0x00040EC5L)
  1472.  
  1473. #endif // OLEDBVER >= 0x0200
  1474. //@@@- V2.0
  1475.  
  1476. //
  1477. // MessageId: DB_S_ENDOFROWSET
  1478. //
  1479. // MessageText:
  1480. //
  1481. //  Reached start or end of rowset or chapter
  1482. //
  1483. #define DB_S_ENDOFROWSET                 ((HRESULT)0x00040EC6L)
  1484.  
  1485. //
  1486. // MessageId: DB_S_COMMANDREEXECUTED
  1487. //
  1488. // MessageText:
  1489. //
  1490. //  The provider re-executed the command
  1491. //
  1492. #define DB_S_COMMANDREEXECUTED           ((HRESULT)0x00040EC7L)
  1493.  
  1494. //
  1495. // MessageId: DB_S_BUFFERFULL
  1496. //
  1497. // MessageText:
  1498. //
  1499. //  Variable data buffer full
  1500. //
  1501. #define DB_S_BUFFERFULL                  ((HRESULT)0x00040EC8L)
  1502.  
  1503. //
  1504. // MessageId: DB_S_NORESULT
  1505. //
  1506. // MessageText:
  1507. //
  1508. //  There are no more results
  1509. //
  1510. #define DB_S_NORESULT                    ((HRESULT)0x00040EC9L)
  1511.  
  1512. //
  1513. // MessageId: DB_S_CANTRELEASE
  1514. //
  1515. // MessageText:
  1516. //
  1517. //  Server cannot release or downgrade a lock until the end of the
  1518. //  transaction
  1519. //
  1520. #define DB_S_CANTRELEASE                 ((HRESULT)0x00040ECAL)
  1521.  
  1522. //@@@+ V2.5
  1523. #if( OLEDBVER >= 0x0250 )
  1524. //
  1525. // MessageId: DB_S_GOALCHANGED
  1526. //
  1527. // MessageText:
  1528. //
  1529. //  Specified weight was not supported or exceeded the supported limit
  1530. //  and was set to 0 or the supported limit
  1531. //
  1532. #define DB_S_GOALCHANGED                 ((HRESULT)0x00040ECBL)
  1533.  
  1534. #endif // OLEDBVER >= 0x0250
  1535. //@@@- V2.5
  1536.  
  1537. //@@@+ V1.5
  1538. #if( OLEDBVER >= 0x0150 )
  1539. //
  1540. // MessageId: DB_S_UNWANTEDOPERATION
  1541. //
  1542. // MessageText:
  1543. //
  1544. //  Consumer is uninterested in receiving further notification calls for
  1545. //  this reason
  1546. //
  1547. #define DB_S_UNWANTEDOPERATION           ((HRESULT)0x00040ECCL)
  1548.  
  1549. #endif // OLEDBVER >= 0x0150
  1550. //@@@- V1.5
  1551.  
  1552. //
  1553. // MessageId: DB_S_DIALECTIGNORED
  1554. //
  1555. // MessageText:
  1556. //
  1557. //  Input dialect was ignored and text was returned in different
  1558. //  dialect
  1559. //
  1560. #define DB_S_DIALECTIGNORED              ((HRESULT)0x00040ECDL)
  1561.  
  1562. //
  1563. // MessageId: DB_S_UNWANTEDPHASE
  1564. //
  1565. // MessageText:
  1566. //
  1567. //  Consumer is uninterested in receiving further notification calls for
  1568. //  this phase
  1569. //
  1570. #define DB_S_UNWANTEDPHASE               ((HRESULT)0x00040ECEL)
  1571.  
  1572. //
  1573. // MessageId: DB_S_UNWANTEDREASON
  1574. //
  1575. // MessageText:
  1576. //
  1577. //  Consumer is uninterested in receiving further notification calls for
  1578. //  this reason
  1579. //
  1580. #define DB_S_UNWANTEDREASON              ((HRESULT)0x00040ECFL)
  1581.  
  1582. //@@@+ V1.5
  1583. #if( OLEDBVER >= 0x0150 )
  1584. //
  1585. // MessageId: DB_S_ASYNCHRONOUS
  1586. //
  1587. // MessageText:
  1588. //
  1589. //  The operation is being processed asynchronously
  1590. //
  1591. #define DB_S_ASYNCHRONOUS                ((HRESULT)0x00040ED0L)
  1592.  
  1593. #endif // OLEDBVER >= 0x0150
  1594. //@@@- V1.5
  1595.  
  1596. //
  1597. // MessageId: DB_S_COLUMNSCHANGED
  1598. //
  1599. // MessageText:
  1600. //
  1601. //  In order to reposition to the start of the rowset, the provider had
  1602. //  to reexecute the query; either the order of the columns changed or
  1603. //  columns were added to or removed from the rowset
  1604. //
  1605. #define DB_S_COLUMNSCHANGED              ((HRESULT)0x00040ED1L)
  1606.  
  1607. //
  1608. // MessageId: DB_S_ERRORSRETURNED
  1609. //
  1610. // MessageText:
  1611. //
  1612. //  The method had some errors; errors have been returned in the error
  1613. //  array
  1614. //
  1615. #define DB_S_ERRORSRETURNED              ((HRESULT)0x00040ED2L)
  1616.  
  1617. //
  1618. // MessageId: DB_S_BADROWHANDLE
  1619. //
  1620. // MessageText:
  1621. //
  1622. //  Invalid row handle
  1623. //
  1624. #define DB_S_BADROWHANDLE                ((HRESULT)0x00040ED3L)
  1625.  
  1626. //
  1627. // MessageId: DB_S_DELETEDROW
  1628. //
  1629. // MessageText:
  1630. //
  1631. //  A given HROW referred to a hard-deleted row
  1632. //
  1633. #define DB_S_DELETEDROW                  ((HRESULT)0x00040ED4L)
  1634.  
  1635. //@@@+ V2.5
  1636. #if( OLEDBVER >= 0x0250 )
  1637. //
  1638. // MessageId: DB_S_TOOMANYCHANGES
  1639. //
  1640. // MessageText:
  1641. //
  1642. //  The provider was unable to keep track of all the changes; the client
  1643. //  must refetch the data associated with the watch region using another
  1644. //  method
  1645. //
  1646. #define DB_S_TOOMANYCHANGES              ((HRESULT)0x00040ED5L)
  1647.  
  1648. #endif // OLEDBVER >= 0x0250
  1649. //@@@- V2.5
  1650.  
  1651. //
  1652. // MessageId: DB_S_STOPLIMITREACHED
  1653. //
  1654. // MessageText:
  1655. //
  1656. //  Execution stopped because a resource limit has been reached; results
  1657. //  obtained so far have been returned but execution cannot be resumed
  1658. //
  1659. #define DB_S_STOPLIMITREACHED            ((HRESULT)0x00040ED6L)
  1660.  
  1661. //
  1662. // MessageId: DB_S_LOCKUPGRADED
  1663. //
  1664. // MessageText:
  1665. //
  1666. //  A lock was upgraded from the value specified
  1667. //
  1668. #define DB_S_LOCKUPGRADED                ((HRESULT)0x00040ED8L)
  1669.  
  1670. //
  1671. // MessageId: DB_S_PROPERTIESCHANGED
  1672. //
  1673. // MessageText:
  1674. //
  1675. //  One or more properties were changed as allowed by provider
  1676. //
  1677. #define DB_S_PROPERTIESCHANGED           ((HRESULT)0x00040ED9L)
  1678.  
  1679. //
  1680. // MessageId: DB_S_ERRORSOCCURRED
  1681. //
  1682. // MessageText:
  1683. //
  1684. //  Errors occurred
  1685. //
  1686. #define DB_S_ERRORSOCCURRED              ((HRESULT)0x00040EDAL)
  1687.  
  1688. //
  1689. // MessageId: DB_S_PARAMUNAVAILABLE
  1690. //
  1691. // MessageText:
  1692. //
  1693. //  A specified parameter was invalid
  1694. //
  1695. #define DB_S_PARAMUNAVAILABLE            ((HRESULT)0x00040EDBL)
  1696.  
  1697. //
  1698. // MessageId: DB_S_MULTIPLECHANGES
  1699. //
  1700. // MessageText:
  1701. //
  1702. //  Updating this row caused more than one row to be updated in the
  1703. //  data source
  1704. //
  1705. #define DB_S_MULTIPLECHANGES             ((HRESULT)0x00040EDCL)
  1706.  
  1707. //@@@+ V2.1
  1708. #if( OLEDBVER >= 0x0210 )
  1709. //
  1710. // MessageId: DB_S_NOTSINGLETON
  1711. //
  1712. // MessageText:
  1713. //
  1714. //  the bind failed because the provider was unable to satisfy all of
  1715. //  the bind flags or properties
  1716. //
  1717. #define DB_S_NOTSINGLETON                ((HRESULT)0x00040ED7L)
  1718.  
  1719. //
  1720. // MessageId: DB_S_NOROWSPECIFICCOLUMNS
  1721. //
  1722. // MessageText:
  1723. //
  1724. //  the row has no row-specific columns
  1725. //
  1726. #define DB_S_NOROWSPECIFICCOLUMNS        ((HRESULT)0x00040EDDL)
  1727.  
  1728. #endif // OLEDBVER >= 0x0210
  1729. //@@@- V2.1
  1730. #endif // _OLEDBERR_H_
  1731.