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.

284 lines
8.4 KiB

  1. //----------------------------------------------------------------------------------------
  2. // Values are 32 bit values laid out as follows:
  3. //
  4. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  5. // 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
  6. // +---+-+-+-----------------------+-------------------------------+
  7. // |Sev|C|R| Facility | Code |
  8. // +---+-+-+-----------------------+-------------------------------+
  9. //-----------------------------------------------------------------------------------------
  10. //
  11. // MessageId = [number|+number]
  12. // Severity = severity_name
  13. // Facility = facility_name
  14. // SymbolicName = name
  15. // OutputBase = {number}
  16. //
  17. // MessageId = [number|+number]
  18. // The MessageId statement marks the beginning of the message definition. A MessageID statement
  19. // is required for each message, although the value is optional. If no value is specified, the
  20. // value used is the previous value for the facility plus one. If the value is specified as
  21. // +number then the value used is the previous value for the facility, plus the number after the
  22. // plus sign. Otherwise, if a numeric value is given, that value is used. Any MessageId value that
  23. // does not fit in 16 bits is an error.
  24. //
  25. // SeverityNames = (name=number[:name])
  26. // Defines the set of names that are allowed as the value of the Severity keyword in the message
  27. // definition. The set is delimited by left and right parentheses. Associated with each severity
  28. // name is a number that, when shifted left by 30, gives the bit pattern to logical-OR with the
  29. // Facility value and MessageId value to form the full 32-bit message code.
  30. //
  31. // Severity values occupy the high two bits of a 32-bit message code. Any severity value that does
  32. // not fit in two bits is an error. The severity codes can be given symbolic names by following each
  33. // value with :name
  34. //
  35. // FacilityNames = (name=number[:name])
  36. // Defines the set of names that are allowed as the value of the Facility keyword in the message
  37. // definition. The set is delimited by left and right parentheses. Associated with each facility
  38. // name is a number that, when shifted left by 16 bits, gives the bit pattern to logical-OR with
  39. // the Severity value and MessageId value to form the full 32-bit message code.
  40. //
  41. // Facility codes occupy the low-order 12 bits of the high-order 16 bits of a 32-bit message code.
  42. // Any facility code that does not fit in 12 bits is an error. This allows for 4096 facility codes.
  43. // The first 256 codes are reserved for use by the system software. The facility codes can be given
  44. // symbolic names by following each value with :name
  45. // OutputBase = {number}
  46. // Sets the output radix for the message constants output to the C/C++ include file. It does not
  47. // set the radix for the Severity and Facility constants; these default to HEX, but can be output
  48. // in decimal by using the -d switch. If present, OutputBase overrides the -d switch for message
  49. // constants in the include file. The legal values for number are 10 and 16.
  50. //
  51. // You can use OutputBase in both the header section and the message definition section of the input
  52. // file. You can change OutputBase as often as you like.
  53. //------------------------- Supported languages -------------------------------------------
  54. //-------------------------- Supported severities -----------------------------------------
  55. //------------------------- Supported Facilities ------------------------------------------
  56. //---------------------NOTE: These must match in the Event logger code---------------------
  57. //--------------------------IIS SCO MAPS Messages------------------------------
  58. //
  59. // Values are 32 bit values layed out as follows:
  60. //
  61. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  62. // 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
  63. // +---+-+-+-----------------------+-------------------------------+
  64. // |Sev|C|R| Facility | Code |
  65. // +---+-+-+-----------------------+-------------------------------+
  66. //
  67. // where
  68. //
  69. // Sev - is the severity code
  70. //
  71. // 00 - Success
  72. // 01 - Informational
  73. // 10 - Warning
  74. // 11 - Error
  75. //
  76. // C - is the Customer code flag
  77. //
  78. // R - is a reserved bit
  79. //
  80. // Facility - is the facility code
  81. //
  82. // Code - is the facility's status code
  83. //
  84. //
  85. // Define the facility codes
  86. //
  87. #define IISSco 0x101
  88. #define Generic 0x100
  89. //
  90. // Define the severity codes
  91. //
  92. //
  93. // MessageId: E_SCO_IIS_INVALID_INDEX
  94. //
  95. // MessageText:
  96. //
  97. // [%1] Server index number is invalid or missing.
  98. //
  99. #define E_SCO_IIS_INVALID_INDEX 0xC1010190L
  100. //
  101. // MessageId: E_SCO_IIS_MISSING_FIELD
  102. //
  103. // MessageText:
  104. //
  105. // [%1] Required field is missing in MAPS request data.
  106. //
  107. #define E_SCO_IIS_MISSING_FIELD 0xC1010191L
  108. //
  109. // MessageId: E_SCO_IIS_DUPLICATE_SITE
  110. //
  111. // MessageText:
  112. //
  113. // [%1] Server already exists at current ipAddress:port:hostname.
  114. //
  115. #define E_SCO_IIS_DUPLICATE_SITE 0xC1010192L
  116. //
  117. // MessageId: E_SCO_IIS_CREATE_FAILED
  118. //
  119. // MessageText:
  120. //
  121. // [%1] Failed to created requested IIS element.
  122. //
  123. #define E_SCO_IIS_CREATE_FAILED 0xC1010193L
  124. //
  125. // MessageId: E_SCO_IIS_SET_NODE_FAILED
  126. //
  127. // MessageText:
  128. //
  129. // [%1] Failed to set required MAPS response parameters.
  130. //
  131. #define E_SCO_IIS_SET_NODE_FAILED 0xC1010194L
  132. //
  133. // MessageId: E_SCO_IIS_DELETE_FAILED
  134. //
  135. // MessageText:
  136. //
  137. // [%1] Failed to delete requested IIS element.
  138. //
  139. #define E_SCO_IIS_DELETE_FAILED 0xC1010195L
  140. //
  141. // MessageId: E_SCO_IIS_GET_PROPERTY_FAILED
  142. //
  143. // MessageText:
  144. //
  145. // [%1] Failed to get IIS adsi property value.
  146. //
  147. #define E_SCO_IIS_GET_PROPERTY_FAILED 0xC1010196L
  148. //
  149. // MessageId: E_SCO_IIS_SET_PROPERTY_FAILED
  150. //
  151. // MessageText:
  152. //
  153. // [%1] Failed to set IIS adsi property value.
  154. //
  155. #define E_SCO_IIS_SET_PROPERTY_FAILED 0xC1010197L
  156. //
  157. // MessageId: E_SCO_IIS_CREATE_WEB_FAILED
  158. //
  159. // MessageText:
  160. //
  161. // [%1] Failed to created IIS Web site.
  162. //
  163. #define E_SCO_IIS_CREATE_WEB_FAILED 0xC1010198L
  164. //
  165. // MessageId: E_SCO_IIS_DELETE_WEB_FAILED
  166. //
  167. // MessageText:
  168. //
  169. // [%1] Failed to delete IIS Web site.
  170. //
  171. #define E_SCO_IIS_DELETE_WEB_FAILED 0xC1010199L
  172. //
  173. // MessageId: E_SCO_IIS_CREATE_VDIR_FAILED
  174. //
  175. // MessageText:
  176. //
  177. // [%1] Failed to created IIS virtual directory.
  178. //
  179. #define E_SCO_IIS_CREATE_VDIR_FAILED 0xC101019AL
  180. //
  181. // MessageId: E_SCO_IIS_DELETE_VDIR_FAILED
  182. //
  183. // MessageText:
  184. //
  185. // [%1] Failed to delete IIS virtual directory.
  186. //
  187. #define E_SCO_IIS_DELETE_VDIR_FAILED 0xC101019BL
  188. //
  189. // MessageId: E_SCO_IIS_ADS_CREATE_FAILED
  190. //
  191. // MessageText:
  192. //
  193. // [%1] Failed to bind to ADSI ADs object.
  194. //
  195. #define E_SCO_IIS_ADS_CREATE_FAILED 0xC101019CL
  196. //
  197. // MessageId: E_SCO_IIS_ADSCONTAINER_CREATE_FAILED
  198. //
  199. // MessageText:
  200. //
  201. // [%1] Failed to bind to ADSI ADsContainer object.
  202. //
  203. #define E_SCO_IIS_ADSCONTAINER_CREATE_FAILED 0xC101019DL
  204. //
  205. // MessageId: E_SCO_IIS_XML_ATTRIBUTE_MISSING
  206. //
  207. // MessageText:
  208. //
  209. // [%1] Failed to retrieve xml attribute value.
  210. //
  211. #define E_SCO_IIS_XML_ATTRIBUTE_MISSING 0xC101019EL
  212. //
  213. // MessageId: E_SCO_IIS_ADSSERVICE_CREATE_FAILED
  214. //
  215. // MessageText:
  216. //
  217. // [%1] Failed to bind to IID_IADsServiceOperations to stop or start IIS service.
  218. //
  219. #define E_SCO_IIS_ADSSERVICE_CREATE_FAILED 0xC101019FL
  220. //
  221. // MessageId: E_SCO_IIS_ADSCLASS_CREATE_FAILED
  222. //
  223. // MessageText:
  224. //
  225. // [%1] Failed to bind to IID_IADsClass to get schema object.
  226. //
  227. #define E_SCO_IIS_ADSCLASS_CREATE_FAILED 0xC10101A0L
  228. //
  229. // MessageId: E_SCO_IIS_BASEADMIN_CREATE_FAILED
  230. //
  231. // MessageText:
  232. //
  233. // [%1] Failed to bind to IID_IISBASEOBJECT to get Admin Base Object.
  234. //
  235. #define E_SCO_IIS_BASEADMIN_CREATE_FAILED 0xC10101A1L
  236. //
  237. // MessageId: E_SCO_IIS_PORTNUMBER_NOT_VALID
  238. //
  239. // MessageText:
  240. //
  241. // [%1] Port number must be a positive integer.
  242. //
  243. #define E_SCO_IIS_PORTNUMBER_NOT_VALID 0xC10101A2L
  244. //
  245. // MessageId: E_SCO_IIS_CREATE_FTP_FAILED
  246. //
  247. // MessageText:
  248. //
  249. // [%1] Failed to created IIS FTP site.
  250. //
  251. #define E_SCO_IIS_CREATE_FTP_FAILED 0xC10101A3L
  252. //
  253. // MessageId: E_SCO_IIS_DELETE_FTP_FAILED
  254. //
  255. // MessageText:
  256. //
  257. // [%1] Failed to delete IIS FTP site.
  258. //
  259. #define E_SCO_IIS_DELETE_FTP_FAILED 0xC10101A4L