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.

205 lines
7.2 KiB

  1. //
  2. // Diagnostic loader messages.
  3. //
  4. //
  5. // Defines for Class, Detail and Action are used to lookup
  6. // text from DiagLoadClass, DiagLoadDetail and DiagLoadAction
  7. // respectively. One must change LOAD_CL_END, DIAG_BL_END
  8. // and LOAD_ACT_END to reflect any change in the content of
  9. // the tables. They are used for bounds checking to avoid
  10. // access violations.
  11. //
  12. // Class Definitions
  13. //
  14. #define LOAD_SW_INT_ERR_CLASS 0x00000000L
  15. #define LOAD_SW_MISRQD_FILE_CLASS 0x00000001L
  16. #define LOAD_SW_BAD_FILE_CLASS 0x00000002L
  17. #define LOAD_SW_MIS_FILE_CLASS 0x00000003L
  18. #define LOAD_HW_MEM_CLASS 0x00000004L
  19. #define LOAD_HW_DISK_CLASS 0x00000005L
  20. #define LOAD_HW_GEN_ERR_CLASS 0x00000006L
  21. #define LOAD_HW_FW_CFG_CLASS 0x00000007L
  22. #define LAOD_SW_MISMATCHED_KERNEL 0x00000008L
  23. #define LOAD_CL_END 0x00000009L
  24. //
  25. // Class Declarations
  26. //
  27. static PCHAR DiagLoadClass[] = {
  28. "Windows 2000 could not start because of an error in the software.\r\nPlease report this problem as :\r\n\0",
  29. "Windows 2000 could not start because the following file was not found\r\nand is required :\r\n\0",
  30. "Windows 2000 could not start because of a bad copy of the following file :\r\n\0",
  31. "Windows 2000 could not start because the following file is missing or corrupt:\r\n\0",
  32. "Windows 2000 could not start because of a hardware memory configuration\r\nproblem.\r\n\0",
  33. "Windows 2000 could not start because of a computer disk hardware\r\nconfiguration problem.\r\n\0",
  34. "Windows 2000 could not start because of a general computer hardware\r\nconfiguration problem.\r\n\0",
  35. "Windows 2000 could not start because of the following ARC firmware\r\nboot configuration problem :\r\n\0",
  36. "Windows 2000 could not start because the specified kernel does not exist or\r\nis not compatible with this processor.\r\n\0"
  37. };
  38. //
  39. // Detail Definitions
  40. //
  41. #define DIAG_BL_MEMORY_INIT 0L
  42. #define DIAG_BL_CONFIG_INIT 1L
  43. #define DIAG_BL_IO_INIT 2L
  44. #define DIAG_BL_FW_GET_BOOT_DEVICE 3L
  45. #define DIAG_BL_OPEN_BOOT_DEVICE 4L
  46. #define DIAG_BL_FW_GET_SYSTEM_DEVICE 5L
  47. #define DIAG_BL_FW_OPEN_SYSTEM_DEVICE 6L
  48. #define DIAG_BL_GET_SYSTEM_PATH 7L
  49. #define DIAG_BL_LOAD_SYSTEM_IMAGE 8L
  50. #define DIAG_BL_FIND_HAL_IMAGE 9L
  51. #define DIAG_BL_LOAD_HAL_IMAGE 10L
  52. #define DIAG_BL_LOAD_SYSTEM_IMAGE_DATA 11L
  53. #define DIAG_BL_LOAD_HAL_IMAGE_DATA 12L
  54. #define DIAG_BL_LOAD_SYSTEM_DLLS 13L
  55. #define DIAG_BL_LOAD_HAL_DLLS 14L
  56. #define DIAG_BL_READ_SYSTEM_REGISTRY 15L
  57. #define DIAG_BL_LOAD_SYSTEM_REGISTRY 16L
  58. #define DIAG_BL_FIND_SYSTEM_DRIVERS 17L
  59. #define DIAG_BL_READ_SYSTEM_DRIVERS 18L
  60. #define DIAG_BL_LOAD_DEVICE_DRIVER 19L
  61. #define DIAG_BL_LOAD_SYSTEM_HIVE 20L
  62. #define DIAG_BL_SYSTEM_PART_DEV_NAME 21L
  63. #define DIAG_BL_BOOT_PART_DEV_NAME 22L
  64. #define DIAG_BL_ARC_BOOT_DEV_NAME 23L
  65. #define DIAG_BL_ARC_HAL_NAME 24L
  66. #define DIAG_BL_SETUP_FOR_NT 25L
  67. #define DIAG_BL_KERNEL_INIT_XFER 26L
  68. #define DIAG_BL_END 27L
  69. //
  70. // Detail Declarations
  71. //
  72. static PCHAR DiagLoadDetail[] = {
  73. // DIAG_BL_MEMORY_INIT 0L
  74. "Check hardware memory configuration and amount of RAM.\r\n\0",
  75. // DIAG_BL_CONFIG_INIT 1L
  76. "Too many configuration entries.\r\n\0",
  77. // DIAG_BL_IO_INIT 2L
  78. "Could not access disk partition tables \r\n\0",
  79. // DIAG_BL_FW_GET_BOOT_DEVICE 3L
  80. "The 'osloadpartition' parameter setting is invalid.\r\n\0",
  81. // DIAG_BL_OPEN_BOOT_DEVICE 4L
  82. "Could not read from the selected boot disk. Check boot path\r\nand disk hardware.\r\n\0",
  83. // DIAG_BL_FW_GET_SYSTEM_DEVICE 5L
  84. "The 'systempartition' parameter setting is invalid.\r\n\0",
  85. // DIAG_BL_FW_OPEN_SYSTEM_DEVICE 6L
  86. "Could not read from the selected system boot disk.\r\nCheck 'systempartition' path.\r\n\0",
  87. // DIAG_BL_GET_SYSTEM_PATH 7L
  88. "The 'osloadfilename' parameter does not point to a valid file.\r\n\0",
  89. // DIAG_BL_LOAD_SYSTEM_IMAGE 8L
  90. "<windows 2000 root>\\system32\\ntoskrnl.exe.\r\n\0",
  91. // DIAG_BL_FIND_HAL_IMAGE 9L
  92. "The 'osloader' parameter does not point to a valid file.\r\n\0",
  93. // DIAG_BL_LOAD_HAL_IMAGE 10L
  94. #if defined(i386)
  95. "<windows 2000 root>\\system32\\hal.dll.\r\n\0",
  96. #endif
  97. #if defined(MIPS)
  98. "'osloader'\\hal.dll\r\n\0",
  99. #endif
  100. // DIAG_BL_LOAD_SYSTEM_IMAGE_DATA 11L
  101. "Loader error 1.\r\n\0",
  102. // DIAG_BL_LOAD_HAL_IMAGE_DATA 12L
  103. "Loader error 2.\r\n\0",
  104. // DIAG_BL_LOAD_SYSTEM_DLLS 13L
  105. "load needed DLLs for kernel.\r\n\0",
  106. // DIAG_BL_LOAD_HAL_DLLS 14L
  107. "load needed DLLs for HAL.\r\n\0",
  108. // DIAG_BL_READ_SYSTEM_REGISTRY 15L
  109. "<windows 2000 root>\\system32\\config\\system. \r\n\0",
  110. // DIAG_BL_LOAD_SYSTEM_REGISTRY 16L
  111. "<windows 2000 root>\\system32\\config\\system. \r\n\0",
  112. // DIAG_BL_FIND_SYSTEM_DRIVERS 17L
  113. "find system drivers.\r\n\0",
  114. // DIAG_BL_READ_SYSTEM_DRIVERS 18L
  115. "read system drivers.\r\n\0",
  116. // DIAG_BL_LOAD_DEVICE_DRIVER 19L
  117. "did not load system boot device driver.\r\n\0",
  118. // DIAG_BL_LOAD_SYSTEM_HIVE 20L
  119. "load system hardware configuration file.\r\n\0",
  120. // DIAG_BL_SYSTEM_PART_DEV_NAME 21L
  121. "find system partition name device name.\r\n\0",
  122. // DIAG_BL_BOOT_PART_DEV_NAME 22L
  123. "find boot partition name.\r\n\0",
  124. // DIAG_BL_ARC_BOOT_DEV_NAME 23L
  125. "did not properly generate ARC name for HAL and system paths.\r\n\0",
  126. // DIAG_BL_ARC_HAL_NAME 24L
  127. "did not properly generate ARC name for HAL and system paths.\r\n\0",
  128. // DIAG_BL_SETUP_FOR_NT 25L
  129. "Loader error 3.\r\n\0",
  130. // DIAG_BL_KERNEL_INIT_XFER 26L
  131. "<windows 2000 root>\\system32\\ntoskrnl.exe\r\n\0"
  132. };
  133. //
  134. // Action Definitions
  135. //
  136. #define LOAD_SW_INT_ERR_ACT 0x00000000L
  137. #define LOAD_SW_FILE_REST_ACT 0x00000001L
  138. #define LOAD_SW_FILE_REINST_ACT 0x00000002L
  139. #define LOAD_HW_MEM_ACT 0x00000003L
  140. #define LOAD_HW_DISK_ACT 0x00000004L
  141. #define LOAD_HW_GEN_ACT 0x00000005L
  142. #define LOAD_HW_FW_CFG_ACT 0x00000006L
  143. #define LOAD_ACT_END 0x00000007L
  144. //
  145. // Action Declarations
  146. //
  147. static PCHAR DiagLoadAction[] = {
  148. "Please contact your support person to report this problem.\r\n\0",
  149. "You can attempt to repair this file by starting Windows 2000\r\n"
  150. "Setup using the original Setup floppy disk or CD-ROM.\r\n"
  151. "Select 'r' at the first screen to start repair.\r\n\0",
  152. "Please re-install a copy of the above file.\r\n\0",
  153. "Please check the Windows 2000(TM) documentation about hardware\r\nmemory requirements and your hardware reference manuals for\r\nadditional information.\r\n\0",
  154. "Please check the Windows 2000(TM) documentation about hardware\r\ndisk configuration and your hardware reference manuals for\r\nadditional information.\r\n\0",
  155. "Please check the Windows 2000(TM) documentation about hardware\r\nconfiguration and your hardware reference manuals for additional\r\ninformation.\r\n\0",
  156. "Please check the Windows 2000(TM) documentation about ARC configuration\r\noptions and your hardware reference manuals for additional\r\ninformation.\r\n\0"
  157. };