messages.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. /** BEGIN COPYRIGHT BLOCK
  2. * This Program is free software; you can redistribute it and/or modify it under
  3. * the terms of the GNU General Public License as published by the Free Software
  4. * Foundation; version 2 of the License.
  5. *
  6. * This Program is distributed in the hope that it will be useful, but WITHOUT
  7. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  8. * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
  9. *
  10. * You should have received a copy of the GNU General Public License along with
  11. * this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
  12. * Place, Suite 330, Boston, MA 02111-1307 USA.
  13. *
  14. * In addition, as a special exception, Red Hat, Inc. gives You the additional
  15. * right to link the code of this Program with code not covered under the GNU
  16. * General Public License ("Non-GPL Code") and to distribute linked combinations
  17. * including the two, subject to the limitations in this paragraph. Non-GPL Code
  18. * permitted under this exception must only link to the code of this Program
  19. * through those well defined interfaces identified in the file named EXCEPTION
  20. * found in the source code files (the "Approved Interfaces"). The files of
  21. * Non-GPL Code may instantiate templates or use macros or inline functions from
  22. * the Approved Interfaces without causing the resulting work to be covered by
  23. * the GNU General Public License. Only Red Hat, Inc. may make changes or
  24. * additions to the list of Approved Interfaces. You must obey the GNU General
  25. * Public License in all respects for all of the Program code and other code used
  26. * in conjunction with the Program except the Non-GPL Code covered by this
  27. * exception. If you modify this file, you may extend this exception to your
  28. * version of the file, but you are not obligated to do so. If you do not wish to
  29. * provide this exception without modification, you must delete this exception
  30. * statement from your version and license this file solely under the GPL without
  31. * exception.
  32. *
  33. *
  34. * Copyright (C) 2001 Sun Microsystems, Inc. Used by permission.
  35. * Copyright (C) 2005 Red Hat, Inc.
  36. * All rights reserved.
  37. * END COPYRIGHT BLOCK **/
  38. #ifdef HAVE_CONFIG_H
  39. # include <config.h>
  40. #endif
  41. /*
  42. Microsoft Developer Support
  43. Copyright (c) 1992 Microsoft Corporation
  44. This file contains the message definitions for the Win32
  45. messages.exe sample program.
  46. -------------------------------------------------------------------------
  47. HEADER SECTION
  48. The header section defines names and language identifiers for use
  49. by the message definitions later in this file. The MessageIdTypedef,
  50. SeverityNames, FacilityNames, and LanguageNames keywords are
  51. optional and not required.
  52. The MessageIdTypedef keyword gives a typedef name that is used in a
  53. type cast for each message code in the generated include file. Each
  54. message code appears in the include file with the format: #define
  55. name ((type) 0xnnnnnnnn) The default value for type is empty, and no
  56. type cast is generated. It is the programmer's responsibility to
  57. specify a typedef statement in the application source code to define
  58. the type. The type used in the typedef must be large enough to
  59. accomodate the entire 32-bit message code.
  60. The SeverityNames keyword defines the set of names that are allowed
  61. as the value of the Severity keyword in the message definition. The
  62. set is delimited by left and right parentheses. Associated with each
  63. severity name is a number that, when shifted left by 30, gives the
  64. bit pattern to logical-OR with the Facility value and MessageId
  65. value to form the full 32-bit message code. The default value of
  66. this keyword is:
  67. SeverityNames=(
  68. Success=0x0
  69. Informational=0x1
  70. Warning=0x2
  71. Error=0x3
  72. )
  73. Severity values occupy the high two bits of a 32-bit message code.
  74. Any severity value that does not fit in two bits is an error. The
  75. severity codes can be given symbolic names by following each value
  76. with :name
  77. The FacilityNames keyword defines the set of names that are allowed
  78. as the value of the Facility keyword in the message definition. The
  79. set is delimited by left and right parentheses. Associated with each
  80. facility name is a number that, when shift it left by 16 bits, gives
  81. the bit pattern to logical-OR with the Severity value and MessageId
  82. value to form the full 32-bit message code. The default value of
  83. this keyword is:
  84. FacilityNames=(
  85. System=0x0FF
  86. Application=0xFFF
  87. )
  88. Facility codes occupy the low order 12 bits of the high order
  89. 16-bits of a 32-bit message code. Any facility code that does not
  90. fit in 12 bits is an error. This allows for 4,096 facility codes.
  91. The first 256 codes are reserved for use by the system software. The
  92. facility codes can be given symbolic names by following each value
  93. with :name
  94. The LanguageNames keyword defines the set of names that are allowed
  95. as the value of the Language keyword in the message definition. The
  96. set is delimited by left and right parentheses. Associated with each
  97. language name is a number and a file name that are used to name the
  98. generated resource file that contains the messages for that
  99. language. The number corresponds to the language identifier to use
  100. in the resource table. The number is separated from the file name
  101. with a colon. The initial value of LanguageNames is:
  102. LanguageNames=(English=1:MSG00001)
  103. Any new names in the source file which don't override the built-in
  104. names are added to the list of valid languages. This allows an
  105. application to support private languages with descriptive names.
  106. -------------------------------------------------------------------------
  107. MESSAGE DEFINITION SECTION
  108. Following the header section is the body of the Message Compiler
  109. source file. The body consists of zero or more message definitions.
  110. Each message definition begins with one or more of the following
  111. statements:
  112. MessageId = [number|+number]
  113. Severity = severity_name
  114. Facility = facility_name
  115. SymbolicName = name
  116. The MessageId statement marks the beginning of the message
  117. definition. A MessageID statement is required for each message,
  118. although the value is optional. If no value is specified, the value
  119. used is the previous value for the facility plus one. If the value
  120. is specified as +number then the value used is the previous value
  121. for the facility, plus the number after the plus sign. Otherwise, if
  122. a numeric value is given, that value is used. Any MessageId value
  123. that does not fit in 16 bits is an error.
  124. The Severity and Facility statements are optional. These statements
  125. specify additional bits to OR into the final 32-bit message code. If
  126. not specified they default to the value last specified for a message
  127. definition. The initial values prior to processing the first message
  128. definition are:
  129. Severity=Success
  130. Facility=Application
  131. The value associated with Severity and Facility must match one of
  132. the names given in the FacilityNames and SeverityNames statements in
  133. the header section. The SymbolicName statement allows you to
  134. associate a C/C++ symbolic constant with the final 32-bit message
  135. code.
  136. */
  137. //
  138. // Values are 32 bit values layed out as follows:
  139. //
  140. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  141. // 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
  142. // +---+-+-+-----------------------+-------------------------------+
  143. // |Sev|C|R| Facility | Code |
  144. // +---+-+-+-----------------------+-------------------------------+
  145. //
  146. // where
  147. //
  148. // Sev - is the severity code
  149. //
  150. // 00 - Success
  151. // 01 - Informational
  152. // 10 - Warning
  153. // 11 - Error
  154. //
  155. // C - is the Customer code flag
  156. //
  157. // R - is a reserved bit
  158. //
  159. // Facility - is the facility code
  160. //
  161. // Code - is the facility's status code
  162. //
  163. //
  164. // Define the facility codes
  165. //
  166. #define FACILITY_SYSTEM 0x0
  167. #define FACILITY_STARTUP 0x5
  168. #define FACILITY_RUNTIME 0x1
  169. #define FACILITY_REGISTRY 0x7
  170. #define FACILITY_NETWORK 0x4
  171. #define FACILITY_SERVICE 0x3
  172. #define FACILITY_FILESYSTEM 0x6
  173. #define FACILITY_CGI 0x2
  174. //
  175. // Define the severity codes
  176. //
  177. #define STATUS_SEVERITY_WARNING 0x2
  178. #define STATUS_SEVERITY_SUCCESS 0x0
  179. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  180. #define STATUS_SEVERITY_ERROR 0x3
  181. //
  182. // MessageId: MSG_BAD_CONF_INIT
  183. //
  184. // MessageText:
  185. //
  186. // Netsite:%1 %2
  187. //
  188. #define MSG_BAD_CONF_INIT ((DWORD)0xC0050001L)
  189. //
  190. // MessageId: MSG_BAD_EREPORT_INIT
  191. //
  192. // MessageText:
  193. //
  194. // Netsite:%1 %2
  195. //
  196. #define MSG_BAD_EREPORT_INIT ((DWORD)0xC0050002L)
  197. //
  198. // MessageId: MSG_BAD_STARTUP
  199. //
  200. // MessageText:
  201. //
  202. // Netsite:%1 %2
  203. //
  204. #define MSG_BAD_STARTUP ((DWORD)0xC0050003L)
  205. //
  206. // MessageId: MSG_BAD_WINSOCK_INIT
  207. //
  208. // MessageText:
  209. //
  210. // Netsite Initialization:%1 %2
  211. //
  212. #define MSG_BAD_WINSOCK_INIT ((DWORD)0xC0050004L)
  213. //
  214. // MessageId: MSG_BAD_CGISEM_CREATE
  215. //
  216. // MessageText:
  217. //
  218. // Netsite Initialization:%1 %2
  219. //
  220. #define MSG_BAD_CGISEM_CREATE ((DWORD)0xC0050005L)
  221. //
  222. // MessageId: MSG_BAD_PROCESSSEM_CREATE
  223. //
  224. // MessageText:
  225. //
  226. // Netsite:Initialization:%1 %2
  227. //
  228. #define MSG_BAD_PROCESSSEM_CREATE ((DWORD)0xC0050006L)
  229. //
  230. // MessageId: MSG_STARTUP_SUCCESSFUL
  231. //
  232. // MessageText:
  233. //
  234. // Netsite:%1 %2
  235. //
  236. #define MSG_STARTUP_SUCCESSFUL ((DWORD)0x00050007L)
  237. //
  238. // MessageId: MSG_BAD_REGISTRY_PARAMETER
  239. //
  240. // MessageText:
  241. //
  242. // Netsite:%1 %2
  243. //
  244. #define MSG_BAD_REGISTRY_PARAMETER ((DWORD)0x80050008L)
  245. //
  246. // MessageId: MSG_BAD_GENERAL_FUNCTION
  247. //
  248. // MessageText:
  249. //
  250. // Netsite:Execution of Initialization Function failed %1 %2
  251. //
  252. #define MSG_BAD_GENERAL_FUNCTION ((DWORD)0xC0050009L)
  253. //
  254. // MessageId: MSG_BAD_SETCIPHERS
  255. //
  256. // MessageText:
  257. //
  258. // Netsite: %1 %2
  259. //
  260. #define MSG_BAD_SETCIPHERS ((DWORD)0xC0050010L)
  261. //
  262. // MessageId: MSG_BAD_REGISTRY_KEY_OPEN
  263. //
  264. // MessageText:
  265. //
  266. // Netsite Initialization:Open of %1 %2
  267. //
  268. #define MSG_BAD_REGISTRY_KEY_OPEN ((DWORD)0xC0050011L)
  269. //
  270. // MessageId: MSG_BAD_REGISTRY_KEY_ENUM
  271. //
  272. // MessageText:
  273. //
  274. // Netsite Initialization:Enumeration of %1 %2
  275. //
  276. #define MSG_BAD_REGISTRY_KEY_ENUM ((DWORD)0xC0050012L)
  277. //
  278. // MessageId: MSG_BAD_REGISTRY_VALUE_ENUM
  279. //
  280. // MessageText:
  281. //
  282. // Netsite Initialization:Enumeration of Values of %1 %2
  283. //
  284. #define MSG_BAD_REGISTRY_VALUE_ENUM ((DWORD)0xC0050013L)
  285. //
  286. // MessageId: MSG_BAD_OBJECT_VALUE
  287. //
  288. // MessageText:
  289. //
  290. // Netsite startup:Use Values "name" or "ppath" for object key.Incorrect Parameter %1 %2
  291. //
  292. #define MSG_BAD_OBJECT_VALUE ((DWORD)0xC0050014L)
  293. //
  294. // MessageId: MSG_BAD_PBLOCK
  295. //
  296. // MessageText:
  297. //
  298. // Netsite startup:Could not enter Parameter %1 %2
  299. //
  300. #define MSG_BAD_PBLOCK ((DWORD)0xC0050015L)
  301. //
  302. // MessageId: MSG_BAD_CLIENT_VALUE
  303. //
  304. // MessageText:
  305. //
  306. // Netsite startup:Use Values "dns" or "ip" for client key.Incorrect Parameter %1 %2
  307. //
  308. #define MSG_BAD_CLIENT_VALUE ((DWORD)0xC0050016L)
  309. //
  310. // MessageId: MSG_BAD_DIRECTIVE
  311. //
  312. // MessageText:
  313. //
  314. // Netsite startup:Incorrect Directive Value %1 %2
  315. //
  316. #define MSG_BAD_DIRECTIVE ((DWORD)0xC0050017L)
  317. //
  318. // MessageId: MSG_BAD_PARAMETER
  319. //
  320. // MessageText:
  321. //
  322. // Netsite startup:Incorrect Parameter %1 %2
  323. //
  324. #define MSG_BAD_PARAMETER ((DWORD)0xC0050018L)
  325. //
  326. // MessageId: MSG_WD_RESTART
  327. //
  328. // MessageText:
  329. //
  330. // Web Server: %1
  331. // The server terminated abnormally with error code %2.
  332. // An attempt will be made to restart it.
  333. //
  334. #define MSG_WD_RESTART ((DWORD)0xC0050019L)
  335. //
  336. // MessageId: MSG_WD_STARTFAILED
  337. //
  338. // MessageText:
  339. //
  340. // Web Server: %1
  341. // The server could not be started.
  342. // Command line used: %2
  343. //
  344. #define MSG_WD_STARTFAILED ((DWORD)0xC005001AL)
  345. //
  346. // MessageId: MSG_WD_BADPASSWORD
  347. //
  348. // MessageText:
  349. //
  350. // Web Server: %1
  351. // Incorrect SSL password entered.
  352. //
  353. #define MSG_WD_BADPASSWORD ((DWORD)0xC005001BL)
  354. //
  355. // MessageId: MSG_WD_BADCMDLINE
  356. //
  357. // MessageText:
  358. //
  359. // Web Server: %1
  360. // Invalid command line specified: %2
  361. //
  362. #define MSG_WD_BADCMDLINE ((DWORD)0xC005001CL)
  363. //
  364. // MessageId: MSG_WD_STRING
  365. //
  366. // MessageText:
  367. //
  368. // Web Server: %1
  369. // %2
  370. //
  371. #define MSG_WD_STRING ((DWORD)0xC005001DL)
  372. //
  373. // MessageId: MSG_WD_REGISTRY
  374. //
  375. // MessageText:
  376. //
  377. // Web Server: %1
  378. // Could not open registry key: %2
  379. //
  380. #define MSG_WD_REGISTRY ((DWORD)0xC005001EL)
  381. //
  382. // MessageId: MSG_CRON_STARTFAILED
  383. //
  384. // MessageText:
  385. //
  386. // Web Server: %1
  387. // The scheduled job (%2) could not be started.
  388. //
  389. #define MSG_CRON_STARTFAILED ((DWORD)0xC005001FL)