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.

173 lines
6.5 KiB

  1. //
  2. // msg.h - messages, token, etc. are gathered here to make localization easier
  3. //
  4. // STR_ are things that maybe don't get localized (command tokens)
  5. // MSG_ are output messages that probably do get localized
  6. //
  7. #define STR_LIST L"LIST"
  8. #define STR_SELECT L"SELECT"
  9. #define STR_INSPECT L"INSPECT"
  10. #define STR_CLEAN L"CLEAN"
  11. #define STR_CLEAN_PROMPT L"CLEAN>> "
  12. #define STR_NEW L"NEW"
  13. #define STR_FIX L"FIX"
  14. #define STR_CREATE L"CREATE"
  15. #define STR_DELETE L"DELETE"
  16. #define STR_DELETE_PROMPT L"DELETE>> "
  17. #define STR_HELP L"HELP"
  18. #define STR_HELP2 L"H"
  19. #define STR_HELP3 L"?"
  20. #define STR_EXIT L"EXIT"
  21. #define STR_SYMBOLS L"SYMBOLS"
  22. #define STR_REMARK L"REM"
  23. #define STR_MAKE L"MAKE"
  24. #define STR_DEBUG L"DEBUG"
  25. #define STR_VER L"VER"
  26. #define STR_RAW L"RAW"
  27. #define STR_ABOUT L"ABOUT"
  28. #define MSG_LIST L" - Show list of partitionable disks"
  29. #define MSG_SELECT L"<number> - Select a disk (spindle) to work on"
  30. #define MSG_INSPECT L" - Dump the partition data on the selected spindle"
  31. #define MSG_CLEAN L"[ALL] - Clean all data off the disk (DESTROY DATA)\n" \
  32. L" ALL writes 0s to whole disk, without just 1st & last MB"
  33. #define MSG_NEW L"[MBR | GPT]"
  34. #define MSG_FIX L" "
  35. #define MSG_CREATE L" "
  36. #define MSG_DELETE L" "
  37. #define MSG_HELP L" - print this screen. <cmd> Help for detail on a command"
  38. #define MSG_ABBR_HELP L" - print this screen. <cmd> Help for detail on a command"
  39. #define MSG_EXIT L" - Exit program"
  40. #define MSG_SYMBOLS L"[VER] - Show list of predefined type GUIDs.. VER is verbose"
  41. #define MSG_REMARK L" - Just print a remark"
  42. #define MSG_MAKE L"[LIST] [make script]\n" \
  43. L" - 'make list' lists make scripts\n" \
  44. L" 'make scripname args' runs script"
  45. #define MSG_ABOUT L" - About this version...."
  46. #define MSG_PROMPT L"DiskPart> "
  47. #define MSG_MORE L"More> "
  48. #define MSG_BAD_CMD L"Problem: DiskPart did not understand that"
  49. #define MSG_GET_HELP L"Help for Help"
  50. #define MSG_NO_DISKS L"DiskPart cannot find any partitionable disks"
  51. #define MSG_EXITING L"Exiting...."
  52. //
  53. // Messages for CmdAbout
  54. //
  55. #define MSG_ABOUT01 L"Version 0.99.12.29 2000-08-01\n"
  56. #define MSG_ABOUT02 L"Version %d.%d.%d.%d\n"
  57. //
  58. // Messages used by CmdList
  59. //
  60. #define MSG_LIST01 L" ### BlkSize BlkCount\n"
  61. #define MSG_LIST01B L" --- ------- ----------------\n"
  62. #define MSG_LIST02 L"%c %3d %7x %16lx\n"
  63. #define MSG_LIST03 L" %3d *** Handle Bad ***\n"
  64. //
  65. // Messages used by CmdSelect
  66. //
  67. #define MSG_SELECT01 L"No Disk Selected\n"
  68. #define MSG_SELECT02 L"Selected Disk = %3d\n"
  69. #define MSG_SELECT03 L"Illegal Selection\n"
  70. //
  71. // Messages used by CmdFix
  72. //
  73. #define MSG_FIX01 L"RAW disk, fix cannot help\n"
  74. #define MSG_FIX02 L"MBR disk, fix cannot help\n"
  75. #define MSG_FIX03 L"Disk is too corrupt for fix to help\n"
  76. #define MSG_FIX04 L"Write of disk FAILED\n"
  77. #define MSG_FIX05 L"Read of disk FAILED\n"
  78. //
  79. // Messages used by CmdInspect (some also used elsewhere)
  80. //
  81. #define MSG_INSPECT01 L"You must Select a disk first\n"
  82. #define MSG_INSPECT02 L"Unable to allocate memory for sort\n"
  83. #define MSG_INSPECT03 L"The Guid Partition Tables are out of sync, run FIX\n"
  84. #define MSG_INSPECT04 L"The disk is RAW, nothing to Inspect\n"
  85. #define MSG_INSPECT05 L"Inspect for MBR disks not implemented yet!\n"
  86. #define MSG_INSPECT06 L"This appears to be a GPT disk, but it is corrupt!!\n"
  87. #define MSG_INSPECT07 L" = UNALLOCATED SLOT"
  88. //
  89. // Messages used by CmdClean
  90. //
  91. #define MSG_CLEAN01 L"About to CLEAN (DESTROY) disk %d, are you SURE [y/n]?\n"
  92. #define MSG_CLEAN02 L"If you are REALLY SURE, type '$C'\n"
  93. #define STR_CLEAN_ANS L"$C"
  94. #define STR_CLEAN03 L"ALL"
  95. //
  96. // Messages used by CmdNew
  97. //
  98. #define STR_MBR L"MBR"
  99. #define STR_GPT L"GPT"
  100. #define MSG_NEW01 L"Disk %d is not in RAW state\n"
  101. #define MSG_NEW02 L"Use CLEAN to make it clean/raw\n"
  102. #define MSG_NEW03 L"Must specify 'mbr' or 'gpt'\n"
  103. #define MSG_NEW04 L"New of MBR disks not yet supported!\n"
  104. //
  105. // Messages used by CmdCreate
  106. //
  107. #define MSG_CREATE01 L"Disk %d is RAW, do 'new gpt' first\n"
  108. #define MSG_CREATE02 L"Disk is not GPT disk, use Fix/New/Clean\n"
  109. #define MSG_CREATE03 L"Type name not found, use symbols of list\n"
  110. #define MSG_CREATE04 L"Disk Partition table is FULL, cannot create!\n"
  111. #define MSG_CREATE05 L"Attempt to Write out partition table failed!\n"
  112. #define MSG_CREATE06 L"Create of MBR partition not implemented!\n"
  113. #define MSG_CREATE07 L"Disk has no free blocks (FULL) cannot create!\n"
  114. #define MSG_CREATE08 L"Invalid offset value specified.\n"
  115. #define MSG_CREATE09 L"Partition is too small to be created.\n"
  116. #define STR_NAME L"NAME"
  117. #define STR_TYPE L"TYPE"
  118. #define STR_TYPEGUID L"TYPEGUID"
  119. #define STR_OFFSET L"OFFSET"
  120. #define STR_SIZE L"SIZE"
  121. #define STR_ATTR L"ATTR"
  122. //
  123. // Messages used by CmdDelete
  124. //
  125. #define MSG_DELETE01 L"Delete of MBR partitions not implemented\n"
  126. #define MSG_DELETE02 L"RAW disk, cannot delete from it\n"
  127. #define MSG_DELETE03 L"GPT disk needs updating, run FIX before delete\n"
  128. #define MSG_DELETE04 L"GPT disk is corrupt, cannot use delete on it\n"
  129. #define MSG_DELETE05 L"No partition by that number\n"
  130. #define MSG_DELETE06 L"Not an allocated partition number\n"
  131. #define MSG_DELETE07 L"You have choosen to Delete Partition #%d:\n"
  132. #define MSG_DELETE08 L"Write of disk failed\n"
  133. #define MSG_DELETE09 L"All data in this partition will become inaccessible\n"
  134. #define MSG_DELETE10 L"Are You Sure [y/n]?\n"
  135. #define MSG_DELETE11 L"If you are REALLY SURE, type '$D'>\n"
  136. #define STR_DELETE_ANS L"$D"
  137. //
  138. // Disk type GUID symbols
  139. //
  140. extern EFI_GUID GuidNull;
  141. #define STR_MSRES L"MSRES" // Microsoft Reserved
  142. #define MSG_MSRES L"Microsoft Reserved partition for feature support"
  143. extern EFI_GUID GuidMsReserved;
  144. #define STR_ESP L"EFISYS" // EFI System Partition
  145. #define MSG_ESP L"EFI System Partition - required for boot"
  146. extern EFI_GUID GuidEfiSystem;
  147. #define STR_MSDATA L"MSDATA" // Basic DATA partition
  148. #define MSG_MSDATA L"User data partition for use by Microsoft OSes"
  149. extern EFI_GUID GuidMsData;