Source code of Windows XP (NT5)
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.

321 lines
8.9 KiB

  1. /* MESSAGE.MC
  2. This file contains the message definitions for Diskeeper.
  3. -------------------------------------------------------------------------
  4. HEADER SECTION
  5. The header section defines names and language identifiers for use
  6. by the message definitions later in this file. The MessageIdTypedef,
  7. SeverityNames, FacilityNames, and LanguageNames keywords are
  8. optional and not required.
  9. The MessageIdTypedef keyword gives a typedef name that is used in a
  10. type cast for each message code in the generated include file. Each
  11. message code appears in the include file with the format: #define
  12. name ((type) 0xnnnnnnnn) The default value for type is empty, and no
  13. type cast is generated. It is the programmer's responsibility to
  14. specify a typedef statement in the application source code to define
  15. the type. The type used in the typedef must be large enough to
  16. accomodate the entire 32-bit message code.
  17. The SeverityNames keyword defines the set of names that are allowed
  18. as the value of the Severity keyword in the message definition. The
  19. set is delimited by left and right parentheses. Associated with each
  20. severity name is a number that, when shifted left by 30, gives the
  21. bit pattern to logical-OR with the Facility value and MessageId
  22. value to form the full 32-bit message code. The default value of
  23. this keyword is:
  24. SeverityNames = (
  25. Success=0x0
  26. Informational=0x1
  27. Warning=0x2
  28. Error=0x3)
  29. Severity values occupy the high two bits of a 32-bit message code.
  30. Any severity value that does not fit in two bits is an error. The
  31. severity codes can be given symbolic names by following each value
  32. with :name
  33. The FacilityNames keyword defines the set of names that are allowed
  34. as the value of the Facility keyword in the message definition. The
  35. set is delimited by left and right parentheses. Associated with each
  36. facility name is a number that, when shift it left by 16 bits, gives
  37. the bit pattern to logical-OR with the Severity value and MessageId
  38. value to form the full 32-bit message code. The default value of
  39. this keyword is:
  40. FacilityNames = (
  41. System=0x0FF
  42. Application=0xFFF)
  43. Facility codes occupy the low order 12 bits of the high order
  44. 16-bits of a 32-bit message code. Any facility code that does not
  45. fit in 12 bits is an error. This allows for 4,096 facility codes.
  46. The first 256 codes are reserved for use by the system software. The
  47. facility codes can be given symbolic names by following each value
  48. with :name
  49. The LanguageNames keyword defines the set of names that are allowed
  50. as the value of the Language keyword in the message definition. The
  51. set is delimited by left and right parentheses. Associated with each
  52. language name is a number and a file name that are used to name the
  53. generated resource file that contains the messages for that
  54. language. The number corresponds to the language identifier to use
  55. in the resource table. The number is separated from the file name
  56. with a colon. The initial value of LanguageNames is:
  57. LanguageNames=(English=1:MSG00001)
  58. Any new names in the source file which don't override the built-in
  59. names are added to the list of valid languages. This allows an
  60. application to support private languages with descriptive names.
  61. -------------------------------------------------------------------------
  62. MESSAGE DEFINITION SECTION
  63. Following the header section is the body of the Message Compiler
  64. source file. The body consists of zero or more message definitions.
  65. Each message definition begins with one or more of the following
  66. statements:
  67. MessageId = [number|+number]
  68. Severity = severity_name
  69. Facility = facility_name
  70. SymbolicName = name
  71. The MessageId statement marks the beginning of the message
  72. definition. A MessageID statement is required for each message,
  73. although the value is optional. If no value is specified, the value
  74. used is the previous value for the facility plus one. If the value
  75. is specified as +number then the value used is the previous value
  76. for the facility, plus the number after the plus sign. Otherwise, if
  77. a numeric value is given, that value is used. Any MessageId value
  78. that does not fit in 16 bits is an error.
  79. The Severity and Facility statements are optional. These statements
  80. specify additional bits to OR into the final 32-bit message code. If
  81. not specified they default to the value last specified for a message
  82. definition. The initial values prior to processing the first message
  83. definition are:
  84. Severity=Success
  85. Facility=Application
  86. The value associated with Severity and Facility must match one of
  87. the names given in the FacilityNames and SeverityNames statements in
  88. the header section. The SymbolicName statement allows you to
  89. associate a C/C++ symbolic constant with the final 32-bit message
  90. code.
  91. */
  92. //
  93. // Values are 32 bit values layed out as follows:
  94. //
  95. // 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  96. // 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
  97. // +---+-+-+-----------------------+-------------------------------+
  98. // |Sev|C|R| Facility | Code |
  99. // +---+-+-+-----------------------+-------------------------------+
  100. //
  101. // where
  102. //
  103. // Sev - is the severity code
  104. //
  105. // 00 - Success
  106. // 01 - Informational
  107. // 10 - Warning
  108. // 11 - Error
  109. //
  110. // C - is the Customer code flag
  111. //
  112. // R - is a reserved bit
  113. //
  114. // Facility - is the facility code
  115. //
  116. // Code - is the facility's status code
  117. //
  118. //
  119. // Define the facility codes
  120. //
  121. #define FACILITY_SYSTEM 0x0
  122. #define FACILITY_STUBS 0x3
  123. #define FACILITY_RUNTIME 0x2
  124. #define FACILITY_IO_ERROR_CODE 0x4
  125. //
  126. // Define the severity codes
  127. //
  128. #define STATUS_SEVERITY_WARNING 0x2
  129. #define STATUS_SEVERITY_SUCCESS 0x0
  130. #define STATUS_SEVERITY_INFORMATIONAL 0x1
  131. #define STATUS_SEVERITY_ERROR 0x3
  132. //
  133. // MessageId: MSG_SETUP_SUCCESS
  134. //
  135. // MessageText:
  136. //
  137. // Diskeeper for Windows NT has been successfully installed.
  138. //
  139. #define MSG_SETUP_SUCCESS ((DWORD)0x00000001L)
  140. //
  141. // MessageId: MSG_CONTROL_START
  142. //
  143. // MessageText:
  144. //
  145. // The Diskeeper Control Center has been started.
  146. // %1
  147. //
  148. #define MSG_CONTROL_START ((DWORD)0x40000002L)
  149. //
  150. // MessageId: MSG_CONTROL_CLOSE
  151. //
  152. // MessageText:
  153. //
  154. // The Diskeeper Control Center has been shut down.
  155. //
  156. #define MSG_CONTROL_CLOSE ((DWORD)0x40000003L)
  157. //
  158. // MessageId: MSG_CONTROL_EXCLUDE
  159. //
  160. // MessageText:
  161. //
  162. // The Diskeeper exclusion list and drive scheduling file has been changed.
  163. //
  164. #define MSG_CONTROL_EXCLUDE ((DWORD)0x40000004L)
  165. //
  166. // MessageId: MSG_CONTROL_SCHEDULE
  167. //
  168. // MessageText:
  169. //
  170. // Diskeeper "Set It and Forget It" has been started. %1
  171. //
  172. #define MSG_CONTROL_SCHEDULE ((DWORD)0x40000005L)
  173. //
  174. // MessageId: MSG_CONTROL_ERROR
  175. //
  176. // MessageText:
  177. //
  178. // Diskeeper Control Center - ERROR
  179. // %1
  180. //
  181. #define MSG_CONTROL_ERROR ((DWORD)0xC0000006L)
  182. //
  183. // MessageId: MSG_ENGINE_START
  184. //
  185. // MessageText:
  186. //
  187. // The Diskeeper Engine has started for drive %1
  188. //
  189. #define MSG_ENGINE_START ((DWORD)0x40000007L)
  190. //
  191. // MessageId: MSG_ENGINE_CLOSE
  192. //
  193. // MessageText:
  194. //
  195. // The Diskeeper Engine has shut down for drive %1
  196. //
  197. #define MSG_ENGINE_CLOSE ((DWORD)0x40000008L)
  198. //
  199. // MessageId: MSG_ENGINE_DEFRAGMENT
  200. //
  201. // MessageText:
  202. //
  203. // Diskeeper has successfully defragmented file %1
  204. //
  205. #define MSG_ENGINE_DEFRAGMENT ((DWORD)0x00000009L)
  206. //
  207. // MessageId: MSG_ENGINE_FREE_SPACE
  208. //
  209. // MessageText:
  210. //
  211. // Diskeeper has successfully consolidated free space by moving file %1
  212. //
  213. #define MSG_ENGINE_FREE_SPACE ((DWORD)0x0000000AL)
  214. //
  215. // MessageId: MSG_ENGINE_EXCLUDE
  216. //
  217. // MessageText:
  218. //
  219. // Diskeeper has excluded file %1
  220. //
  221. #define MSG_ENGINE_EXCLUDE ((DWORD)0x0000000BL)
  222. //
  223. // MessageId: MSG_ENGINE_ERROR
  224. //
  225. // MessageText:
  226. //
  227. // Diskeeper Engine - ERROR
  228. // %1
  229. //
  230. #define MSG_ENGINE_ERROR ((DWORD)0xC000000CL)
  231. //
  232. // MessageId: MSG_DEFRAG_SUMMARY
  233. //
  234. // MessageText:
  235. //
  236. // The Diskeeper Defragemention Summary
  237. // %1
  238. //
  239. #define MSG_DEFRAG_SUMMARY ((DWORD)0x4000000DL)
  240. //
  241. // MessageId: MSG_DISK_INFO
  242. //
  243. // MessageText:
  244. //
  245. // Diskeeper Message Disk Information for Drive
  246. // %1
  247. //
  248. #define MSG_DISK_INFO ((DWORD)0x4000000FL)
  249. //
  250. // MessageId: MSG_FILE_INFO
  251. //
  252. // MessageText:
  253. //
  254. // Diskeeper Message File Information
  255. // %1
  256. //
  257. #define MSG_FILE_INFO ((DWORD)0x40000010L)
  258. //
  259. // MessageId: MSG_PAGE_FILE_INFO
  260. //
  261. // MessageText:
  262. //
  263. // Diskeeper Message PageFile Information for Drive
  264. // %1
  265. //
  266. #define MSG_PAGE_FILE_INFO ((DWORD)0x40000011L)
  267. //
  268. // MessageId: MSG_DIRECTORIS_INFO
  269. //
  270. // MessageText:
  271. //
  272. // Diskeeper Message Directory Information for Drive
  273. // %1
  274. //
  275. #define MSG_DIRECTORIS_INFO ((DWORD)0x40000012L)
  276. //
  277. // MessageId: MSG__MFT_INFO
  278. //
  279. // MessageText:
  280. //
  281. // Diskeeper Message MFT Information for Drive
  282. // %1
  283. //
  284. #define MSG__MFT_INFO ((DWORD)0x40000013L)