home *** CD-ROM | disk | FTP | other *** search
/ PC Plus SuperCD (UK) 2000 May / PCP163A.iso / Runimage / Cbuilder4 / Include / FILTERR.H < prev    next >
Encoding:
C/C++ Source or Header  |  1999-01-26  |  3.9 KB  |  180 lines

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