Filterr.h
上传用户:dzyhzl
上传日期:2019-04-29
资源大小:56270k
文件大小:4k
源码类别:

模拟服务器

开发平台:

C/C++

  1. #ifndef _FILTERR_H_
  2. #define _FILTERR_H_
  3. #ifndef FACILITY_WINDOWS
  4. //
  5. //  Values are 32 bit values layed out as follows:
  6. //
  7. //   3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  8. //   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
  9. //  +---+-+-+-----------------------+-------------------------------+
  10. //  |Sev|C|R|     Facility          |               Code            |
  11. //  +---+-+-+-----------------------+-------------------------------+
  12. //
  13. //  where
  14. //
  15. //      Sev - is the severity code
  16. //
  17. //          00 - Success
  18. //          01 - Informational
  19. //          10 - Warning
  20. //          11 - Error
  21. //
  22. //      C - is the Customer code flag
  23. //
  24. //      R - is a reserved bit
  25. //
  26. //      Facility - is the facility code
  27. //
  28. //      Code - is the facility's status code
  29. //
  30. //
  31. // Define the facility codes
  32. //
  33. #define FACILITY_WINDOWS                 0x8
  34. #define FACILITY_ITF                     0x4
  35. //
  36. // Define the severity codes
  37. //
  38. #define STATUS_SEVERITY_SUCCESS          0x0
  39. #define STATUS_SEVERITY_COFAIL           0x3
  40. #define STATUS_SEVERITY_COERROR          0x2
  41. //
  42. // MessageId: NOT_AN_ERROR
  43. //
  44. // MessageText:
  45. //
  46. //  NOTE:  This dummy error message is necessary to force MC to output
  47. //         the above defines inside the FACILITY_WINDOWS guard instead
  48. //         of leaving it empty.
  49. //
  50. #define NOT_AN_ERROR                     ((HRESULT)0x00080000L)
  51. #endif // FACILITY_WINDOWS
  52. //
  53. // Codes 0x1700-0x172F are reserved for FILTER
  54. //
  55. //
  56. // MessageId: FILTER_E_END_OF_CHUNKS
  57. //
  58. // MessageText:
  59. //
  60. //  No more chunks of text available in object.
  61. //
  62. #define FILTER_E_END_OF_CHUNKS           ((HRESULT)0x80041700L)
  63. //
  64. // MessageId: FILTER_E_NO_MORE_TEXT
  65. //
  66. // MessageText:
  67. //
  68. //  No more text available in chunk.
  69. //
  70. #define FILTER_E_NO_MORE_TEXT            ((HRESULT)0x80041701L)
  71. //
  72. // MessageId: FILTER_E_NO_MORE_VALUES
  73. //
  74. // MessageText:
  75. //
  76. //  No more property values available in chunk.
  77. //
  78. #define FILTER_E_NO_MORE_VALUES          ((HRESULT)0x80041702L)
  79. //
  80. // MessageId: FILTER_E_ACCESS
  81. //
  82. // MessageText:
  83. //
  84. //  Unable to access object.
  85. //
  86. #define FILTER_E_ACCESS                  ((HRESULT)0x80041703L)
  87. //
  88. // MessageId: FILTER_W_MONIKER_CLIPPED
  89. //
  90. // MessageText:
  91. //
  92. //  Moniker doesn't cover entire region.
  93. //
  94. #define FILTER_W_MONIKER_CLIPPED         ((HRESULT)0x00041704L)
  95. //
  96. // MessageId: FILTER_E_NO_TEXT
  97. //
  98. // MessageText:
  99. //
  100. //  No text in current chunk.
  101. //
  102. #define FILTER_E_NO_TEXT                 ((HRESULT)0x80041705L)
  103. //
  104. // MessageId: FILTER_E_NO_VALUES
  105. //
  106. // MessageText:
  107. //
  108. //  No values in current chunk.
  109. //
  110. #define FILTER_E_NO_VALUES               ((HRESULT)0x80041706L)
  111. //
  112. // MessageId: FILTER_E_EMBEDDING_UNAVAILABLE
  113. //
  114. // MessageText:
  115. //
  116. //  Unable to bind IFilter for embedded object.
  117. //
  118. #define FILTER_E_EMBEDDING_UNAVAILABLE   ((HRESULT)0x80041707L)
  119. //
  120. // MessageId: FILTER_E_LINK_UNAVAILABLE
  121. //
  122. // MessageText:
  123. //
  124. //  Unable to bind IFilter for linked object.
  125. //
  126. #define FILTER_E_LINK_UNAVAILABLE        ((HRESULT)0x80041708L)
  127. //
  128. // MessageId: FILTER_S_LAST_TEXT
  129. //
  130. // MessageText:
  131. //
  132. //  This is the last text in the current chunk.
  133. //
  134. #define FILTER_S_LAST_TEXT               ((HRESULT)0x00041709L)
  135. //
  136. // MessageId: FILTER_S_LAST_VALUES
  137. //
  138. // MessageText:
  139. //
  140. //  This is the last value in the current chunk.
  141. //
  142. #define FILTER_S_LAST_VALUES             ((HRESULT)0x0004170AL)
  143. //
  144. // MessageId: FILTER_E_PASSWORD
  145. //
  146. // MessageText:
  147. //
  148. //  File was not filtered due to password protection.
  149. //
  150. #define FILTER_E_PASSWORD                ((HRESULT)0x8004170BL)
  151. //
  152. // MessageId: FILTER_E_UNKNOWNFORMAT
  153. //
  154. // MessageText:
  155. //
  156. //  The document format is not recognized by the flter.
  157. //
  158. #define FILTER_E_UNKNOWNFORMAT           ((HRESULT)0x8004170CL)
  159. #endif // _FILTERR_H_