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.

127 lines
7.8 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1994 - 2000.
  5. //
  6. // File: proptbl.hxx
  7. //
  8. // Contents: Contains the rowset property tables. This file is shared
  9. // between proprst.cxx and proputl.cxx
  10. //
  11. // History: 03-01-98 danleg Created
  12. //
  13. //----------------------------------------------------------------------------
  14. #pragma hdrstop
  15. // Macros for Property Table Expansion
  16. #define PF_(p1) DBPROPFLAGS_##p1
  17. #define PM_(p1) DBPROP_##p1, DESC_DBPROP_##p1
  18. #define PSMSIDX_(p1) MSIDXSPROP_##p1, DESC_MSIDXSPROP_##p1
  19. #define PSR_(p1) DBPROP_##p1, DESC_DBPROP_##p1
  20. #define PSNL_(p1) DBPROPID_##p1, DESC_DBPRPPID_##p1
  21. //
  22. // Index Server extended query properties
  23. //
  24. static const UPROPINFO s_rgdbPropQueryExt[] =
  25. {
  26. PSR_(USECONTENTINDEX), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  27. PSR_(DEFERNONINDEXEDTRIMMING), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  28. PSR_(USEEXTENDEDDBTYPES), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  29. };
  30. //
  31. // Index Server rowset props
  32. //
  33. static const UPROPINFO s_rgdbPropRowset[] =
  34. {
  35. PM_(IAccessor), VT_BOOL, PF_(ROWSET) | PF_(READ),
  36. PM_(IChapteredRowset), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  37. PM_(IColumnsInfo), VT_BOOL, PF_(ROWSET) | PF_(READ),
  38. //NEVER: PM_(IColumnsRowset), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  39. PM_(IConnectionPointContainer), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  40. PM_(IConvertType), VT_BOOL, PF_(ROWSET) | PF_(READ),
  41. PM_(IRowset), VT_BOOL, PF_(ROWSET) | PF_(READ),
  42. //NEVER: PM_(IRowsetChange), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  43. PM_(IRowsetIdentity), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  44. PM_(IRowsetInfo), VT_BOOL, PF_(ROWSET) | PF_(READ),
  45. PM_(IRowsetLocate), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  46. //NEVER: PM_(IRowsetResynch), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  47. PM_(IRowsetScroll), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  48. //NEVER: PM_(IRowsetUpdate), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  49. PM_(ISupportErrorInfo), VT_BOOL, PF_(ROWSET) | PF_(READ),
  50. PM_(IDBAsynchStatus), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  51. PM_(IRowsetAsynch), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  52. PM_(IRowsetExactScroll), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  53. PM_(IRowsetWatchAll), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  54. PM_(IRowsetWatchRegion), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  55. //NEVER: PM_(ILockBytes), VT_BOOL, PF_(COLUMNOK) | PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  56. //NEVER: PM_(ISequentialStream), VT_BOOL, PF_(COLUMNOK) | PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  57. //NEVER: PM_(IStorage), VT_BOOL, PF_(COLUMNOK) | PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  58. //NEVER: PM_(IStream), VT_BOOL, PF_(COLUMNOK) | PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  59. //NEVER: PM_(ABORTPRESERVE), VT_BOOL, PF_(ROWSET) | PF_(READ),
  60. //NEVER: PM_(APPENDONLY), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  61. PM_(BLOCKINGSTORAGEOBJECTS), VT_BOOL, PF_(ROWSET) | PF_(READ),
  62. PM_(BOOKMARKS), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  63. PM_(BOOKMARKSKIPPED), VT_BOOL, PF_(ROWSET) | PF_(READ),
  64. PM_(BOOKMARKTYPE), VT_I4, PF_(ROWSET) | PF_(READ),
  65. //NEVER: PM_(CACHEDEFERRED), VT_BOOL, PF_(COLUMNOK) | PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  66. PM_(CANFETCHBACKWARDS), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  67. PM_(CANHOLDROWS), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  68. PM_(CANSCROLLBACKWARDS), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  69. //NEVER: PM_(CHANGEINSERTEDROWS), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  70. PM_(COLUMNRESTRICT), VT_BOOL, PF_(ROWSET) | PF_(READ),
  71. PM_(COMMANDTIMEOUT), VT_I4, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  72. //NEVER: PM_(COMMITPRESERVE), VT_BOOL, PF_(ROWSET) | PF_(READ),
  73. //NEVER: PM_(DEFERRED), VT_BOOL, PF_(COLUMNOK) | PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  74. //NEVER: PM_(DELAYSTORAGEOBJECTS), VT_BOOL, PF_(ROWSET) | PF_(READ),
  75. //NEVER: PM_(IMMOBILEROWS), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  76. PM_(LITERALBOOKMARKS), VT_BOOL, PF_(ROWSET) | PF_(READ),
  77. PM_(LITERALIDENTITY), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  78. PM_(MAXOPENROWS), VT_I4, PF_(ROWSET) | PF_(READ),
  79. //PM_(MAXPENDINGROWS), VT_I4, PF_(ROWSET) | PF_(READ),
  80. PM_(MAXROWS), VT_I4, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  81. PM_(FIRSTROWS), VT_I4, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  82. //NEVER: PM_(MAYWRITECOLUMN), VT_BOOL, PF_(COLUMNOK) | PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  83. PM_(MEMORYUSAGE), VT_I4, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  84. PM_(NOTIFICATIONPHASES), VT_I4, PF_(ROWSET) | PF_(READ),
  85. //PM_(NOTIFYCOLUMNSET), VT_I4, PF_(ROWSET) | PF_(READ),
  86. //PM_(NOTIFYROWDELETE), VT_I4, PF_(ROWSET) | PF_(READ),
  87. //PM_(NOTIFYROWFIRSTCHANGE), VT_I4, PF_(ROWSET) | PF_(READ),
  88. //PM_(NOTIFYROWINSERT), VT_I4, PF_(ROWSET) | PF_(READ),
  89. //PM_(NOTIFYROWRESYNCH), VT_I4, PF_(ROWSET) | PF_(READ),
  90. PM_(NOTIFYROWSETRELEASE), VT_I4, PF_(ROWSET) | PF_(READ),
  91. PM_(NOTIFYROWSETFETCHPOSITIONCHANGE), VT_I4, PF_(ROWSET) | PF_(READ),
  92. //PM_(NOTIFYROWUNDOCHANGE), VT_I4, PF_(ROWSET) | PF_(READ),
  93. //PM_(NOTIFYROWUNDODELETE), VT_I4, PF_(ROWSET) | PF_(READ),
  94. //PM_(NOTIFYROWUNDOINSERT), VT_I4, PF_(ROWSET) | PF_(READ),
  95. //PM_(NOTIFYROWUPDATE), VT_I4, PF_(ROWSET) | PF_(READ),
  96. PM_(ORDEREDBOOKMARKS), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  97. PM_(OTHERINSERT), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  98. PM_(OTHERUPDATEDELETE), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  99. //NEVER: PM_(OWNINSERT), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  100. //NEVER: PM_(OWNUPDATEDELETE), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  101. PM_(QUICKRESTART), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  102. PM_(REENTRANTEVENTS), VT_BOOL, PF_(ROWSET) | PF_(READ),
  103. PM_(REMOVEDELETED), VT_BOOL, PF_(ROWSET) | PF_(READ),
  104. //NEVER: PM_(REPORTMULTIPLECHANGES),VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  105. //NEVER: PM_(RETURNPENDINGINSERTS), VT_BOOL, PF_(ROWSET) | PF_(READ),
  106. PM_(ROWRESTRICT), VT_BOOL, PF_(ROWSET) | PF_(READ),
  107. PM_(ROWSET_ASYNCH), VT_I4, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  108. PM_(ROWTHREADMODEL), VT_I4, PF_(ROWSET) | PF_(READ),
  109. PM_(SERVERCURSOR), VT_BOOL, PF_(ROWSET) | PF_(READ),
  110. PM_(STRONGIDENTITY), VT_BOOL, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  111. //NEVER: PM_(TRANSACTEDOBJECT), VT_BOOL, PF_(ROWSET) | PF_(READ),
  112. PM_(UPDATABILITY), VT_I4, PF_(ROWSET) | PF_(READ),
  113. };
  114. //
  115. // Corresponds with CMRowsetProps::EID
  116. //
  117. static const UPROPINFO s_rgdbPropMSIDXSExt[]=
  118. {
  119. PSMSIDX_(ROWSETQUERYSTATUS), VT_I4, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  120. PSMSIDX_(COMMAND_LOCALE_STRING), VT_BSTR, PF_(ROWSET) | PF_(READ) | PF_(WRITE),
  121. PSMSIDX_(QUERY_RESTRICTION), VT_BSTR, PF_(ROWSET) | PF_(READ) | PF_(CHANGE),
  122. };