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.

1828 lines
38 KiB

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