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.

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