home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / vc98 / include / filterr.h < prev    next >
C/C++ Source or Header  |  1998-04-25  |  4KB  |  178 lines

  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.  
  37. //
  38. // Define the severity codes
  39. //
  40. #define STATUS_SEVERITY_SUCCESS          0x0
  41. #define STATUS_SEVERITY_COFAIL           0x3
  42. #define STATUS_SEVERITY_COERROR          0x2
  43.  
  44.  
  45. //
  46. // MessageId: NOT_AN_ERROR
  47. //
  48. // MessageText:
  49. //
  50. //  NOTE:  This dummy error message is necessary to force MC to output
  51. //         the above defines inside the FACILITY_WINDOWS guard instead
  52. //         of leaving it empty.
  53. //
  54. #define NOT_AN_ERROR                     ((HRESULT)0x00080000L)
  55.  
  56. #endif // FACILITY_WINDOWS
  57. //
  58. // Codes 0x1700-0x172F are reserved for FILTER
  59. //
  60. //
  61. // MessageId: FILTER_E_END_OF_CHUNKS
  62. //
  63. // MessageText:
  64. //
  65. //  No more chunks of text available in object.
  66. //
  67. #define FILTER_E_END_OF_CHUNKS           ((HRESULT)0x80041700L)
  68.  
  69. //
  70. // MessageId: FILTER_E_NO_MORE_TEXT
  71. //
  72. // MessageText:
  73. //
  74. //  No more text available in chunk.
  75. //
  76. #define FILTER_E_NO_MORE_TEXT            ((HRESULT)0x80041701L)
  77.  
  78. //
  79. // MessageId: FILTER_E_NO_MORE_VALUES
  80. //
  81. // MessageText:
  82. //
  83. //  No more property values available in chunk.
  84. //
  85. #define FILTER_E_NO_MORE_VALUES          ((HRESULT)0x80041702L)
  86.  
  87. //
  88. // MessageId: FILTER_E_ACCESS
  89. //
  90. // MessageText:
  91. //
  92. //  Unable to access object.
  93. //
  94. #define FILTER_E_ACCESS                  ((HRESULT)0x80041703L)
  95.  
  96. //
  97. // MessageId: FILTER_W_MONIKER_CLIPPED
  98. //
  99. // MessageText:
  100. //
  101. //  Moniker doesn't cover entire region.
  102. //
  103. #define FILTER_W_MONIKER_CLIPPED         ((HRESULT)0x00041704L)
  104.  
  105. //
  106. // MessageId: FILTER_E_NO_TEXT
  107. //
  108. // MessageText:
  109. //
  110. //  No text in current chunk.
  111. //
  112. #define FILTER_E_NO_TEXT                 ((HRESULT)0x80041705L)
  113.  
  114. //
  115. // MessageId: FILTER_E_NO_VALUES
  116. //
  117. // MessageText:
  118. //
  119. //  No values in current chunk.
  120. //
  121. #define FILTER_E_NO_VALUES               ((HRESULT)0x80041706L)
  122.  
  123. //
  124. // MessageId: FILTER_E_EMBEDDING_UNAVAILABLE
  125. //
  126. // MessageText:
  127. //
  128. //  Unable to bind IFilter for embedded object.
  129. //
  130. #define FILTER_E_EMBEDDING_UNAVAILABLE   ((HRESULT)0x80041707L)
  131.  
  132. //
  133. // MessageId: FILTER_E_LINK_UNAVAILABLE
  134. //
  135. // MessageText:
  136. //
  137. //  Unable to bind IFilter for linked object.
  138. //
  139. #define FILTER_E_LINK_UNAVAILABLE        ((HRESULT)0x80041708L)
  140.  
  141. //
  142. // MessageId: FILTER_S_LAST_TEXT
  143. //
  144. // MessageText:
  145. //
  146. //  This is the last text in the current chunk.
  147. //
  148. #define FILTER_S_LAST_TEXT               ((HRESULT)0x00041709L)
  149.  
  150. //
  151. // MessageId: FILTER_S_LAST_VALUES
  152. //
  153. // MessageText:
  154. //
  155. //  This is the last value in the current chunk.
  156. //
  157. #define FILTER_S_LAST_VALUES             ((HRESULT)0x0004170AL)
  158.  
  159. //
  160. // MessageId: FILTER_E_PASSWORD
  161. //
  162. // MessageText:
  163. //
  164. //  File was not filtered due to password protection.
  165. //
  166. #define FILTER_E_PASSWORD                ((HRESULT)0x8004170BL)
  167.  
  168. //
  169. // MessageId: FILTER_E_UNKNOWNFORMAT
  170. //
  171. // MessageText:
  172. //
  173. //  The document format is not recognized by the flter.
  174. //
  175. #define FILTER_E_UNKNOWNFORMAT           ((HRESULT)0x8004170CL)
  176.  
  177. #endif // _FILTERR_H_
  178.