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.

209 lines
8.2 KiB

  1. #include <windows.h>
  2. #include "fdres.h"
  3. // icons
  4. IDFDISK ICON dskmgr.ico // main icon
  5. IDB_SMALLDISK BITMAP smdisk.bmp // small disk
  6. IDB_REMOVABLE BITMAP rmdisk.bmp // removable disk
  7. // string table
  8. STRINGTABLE BEGIN
  9. IDS_APPNAME "Disk Administrator"
  10. IDS_MULTIPLEITEMS "Multiple items selected"
  11. IDS_FREESPACE "Free space"
  12. IDS_PARTITION "Partition"
  13. IDS_LOGICALVOLUME "Logical drive"
  14. IDS_DISKN "Disk %u"
  15. IDS_CONFIRM "Confirm"
  16. IDS_NOT_IN_APP_MSG_FILE "Could not find message %u in the application message file"
  17. IDS_NOT_IN_SYS_MSG_FILE "Could not find message %u in the system message file"
  18. IDS_UNFORMATTED "Unformatted"
  19. IDS_NEW_UNFORMATTED "New unformatted"
  20. IDS_UNKNOWN "Unknown"
  21. IDS_STRIPESET "Stripe set"
  22. IDS_VOLUMESET "Volume set"
  23. IDS_EXTENDEDPARTITION "Empty extended partition"
  24. IDS_FREEEXT "Free space in extended partition"
  25. IDS_DRIVELET_DESCR "%1 MB %2 %3 on disk %4"
  26. IDS_HEALTHY "HEALTHY"
  27. IDS_BROKEN "BROKEN"
  28. IDS_RECOVERABLE "RECOVERABLE"
  29. IDS_INITIALIZING "INITIALIZING"
  30. IDS_REGENERATING "REGENERATING"
  31. IDS_REGENERATED "REGENERATED"
  32. IDS_NEW "NEW"
  33. IDS_OFFLINE "OFF-LINE"
  34. IDS_DISABLED "DISABLED"
  35. IDS_INIT_FAILED "Initialization Failed"
  36. IDS_INSERT_DISK "Insert Disk"
  37. IDS_MEGABYTES_ABBREV "MB"
  38. IDS_NO_CONFIG_INFO "Configuration information not available"
  39. #if i386
  40. IDS_ACTIVEPARTITION "Active partition"
  41. #endif
  42. IDS_CRTPART_CAPTION_P "Create Primary Partition"
  43. IDS_CRTPART_CAPTION_E "Create Extended Partition"
  44. IDS_CRTPART_CAPTION_L "Create Logical Drive"
  45. IDS_CRTPART_MIN_P "Minimum size for the partition is"
  46. IDS_CRTPART_MAX_P "Maximum size for the partition is"
  47. IDS_CRTPART_MIN_L "Minimum size for the logical drive is"
  48. IDS_CRTPART_MAX_L "Maximum size for the logical drive is"
  49. IDS_CRTPART_SIZE_P "Create partition of size"
  50. IDS_CRTPART_SIZE_L "Create logical drive of size"
  51. IDS_CRTPSTRP_CAPTION "Create Stripe Set With Parity"
  52. IDS_CRTSTRP_CAPTION "Create Stripe Set"
  53. IDS_CRTSTRP_MIN "Minimum total size for the stripe set is"
  54. IDS_CRTSTRP_MAX "Maximum total size for the stripe set is"
  55. IDS_CRTSTRP_SIZE "Create stripe set of total size"
  56. IDS_CRTVSET_CAPTION "Create Volume Set"
  57. IDS_EXPVSET_CAPTION "Extend Volume Set"
  58. IDS_CRTVSET_MIN "Minimum total size for the volume set is"
  59. IDS_CRTVSET_MAX "Maximum total size for the volume set is"
  60. IDS_CRTVSET_SIZE "Create volume set of total size"
  61. IDS_STATUS_STRIPESET "Stripe set #%u"
  62. IDS_STATUS_PARITY "Stripe set with parity #%u [%ws]"
  63. IDS_DLGCAP_PARITY "Stripe set with parity #%u"
  64. IDS_STATUS_VOLUMESET "Volume set #%u"
  65. IDS_STATUS_MIRROR "Mirror set #%u [%ws]"
  66. IDS_DLGCAP_MIRROR "Mirror set #%u"
  67. // Note: these must be in same order as BRUSH_xxx constants in fdisk.h
  68. IDS_LEGEND_PRIMARY "Primary partition"
  69. IDS_LEGEND_LOGICAL "Logical drive"
  70. IDS_LEGEND_STRIPESET "Stripe set"
  71. IDS_LEGEND_MIRROR "Mirror set"
  72. IDS_LEGEND_VOLUMESET "Volume set"
  73. IDS_PARTITION_FREE "Free Space"
  74. IDS_PARTITION_XENIX1 "XENIX1"
  75. IDS_PARTITION_XENIX2 "XENIX2"
  76. IDS_PARTITION_OS2_BOOT "OS/2 Boot Manager"
  77. IDS_PARTITION_EISA "EISA Utilities"
  78. IDS_PARTITION_UNIX "Unix"
  79. IDS_PARTITION_POWERPC "PowerPC Boot"
  80. // Double space support strings
  81. IDS_DBLSPACE_DELETE "Delete DoubleSpace Volume"
  82. IDS_DBLSPACE_MOUNTED "DoubleSpace Volume currently mounted as drive"
  83. IDS_DBLSPACE_DISMOUNTED "DoubleSpace Volume is dismounted"
  84. IDS_WITH_DBLSPACE "with DoubleSpace Volumes"
  85. IDS_MOUNT "Mount"
  86. IDS_DISMOUNT "Dismount"
  87. IDS_CREATING_DBLSPACE "Creating DoubleSpace volume..."
  88. IDS_DBLSPACECOMPLETE "Creation of DoubleSpace volume is complete"
  89. // format support strings
  90. IDS_QUICK_FORMAT "Quick Formatting..."
  91. IDS_PERCENTCOMPLETE "Percent Complete"
  92. IDS_FORMATSTATS "%ld KB total disk space\n%ld KB available on disk"
  93. IDS_FORMATCOMPLETE "Format Complete"
  94. IDS_FORMAT_TITLE "Formatting %c:"
  95. IDS_LABEL_TITLE "Label for Volume %c:"
  96. IDS_SOURCE_PATH "Software\\Microsoft\\Windows NT\\CurrentVersion"
  97. IDS_SOURCE_PATH_NAME "SourcePath"
  98. END
  99. // frame window menu
  100. IDFDISK MENU BEGIN
  101. POPUP "&Partition"
  102. BEGIN
  103. MENUITEM "&Create..." ,IDM_PARTITIONCREATE , GRAYED
  104. MENUITEM "Create &Extended..." ,IDM_PARTITIONCREATEEX, GRAYED
  105. MENUITEM "&Delete" ,IDM_PARTITIONDELETE , GRAYED
  106. MENUITEM SEPARATOR
  107. MENUITEM "Create &Volume Set..." ,IDM_FTCREATEVOLUMESET, GRAYED
  108. MENUITEM "Ex&tend Volume Set..." ,IDM_FTEXTENDVOLUMESET, GRAYED
  109. MENUITEM SEPARATOR
  110. MENUITEM "Create &Stripe Set..." ,IDM_FTCREATESTRIPE , GRAYED
  111. #if i386
  112. MENUITEM SEPARATOR
  113. MENUITEM "Mark &Active" ,IDM_PARTITIONACTIVE , GRAYED
  114. #else
  115. MENUITEM SEPARATOR
  116. MENUITEM "Sec&ure System Partition",IDM_SECURESYSTEM
  117. #endif
  118. MENUITEM SEPARATOR
  119. POPUP "Confi&guration"
  120. BEGIN
  121. MENUITEM "&Save..." ,IDM_CONFIGSAVE
  122. MENUITEM "&Restore..." ,IDM_CONFIGRESTORE
  123. MENUITEM "Sear&ch..." ,IDM_CONFIGMIGRATE
  124. END
  125. MENUITEM SEPARATOR
  126. MENUITEM "C&ommit Changes Now..." ,IDM_COMMIT , GRAYED
  127. MENUITEM "E&xit" ,IDM_PARTITIONEXIT
  128. END
  129. POPUP "&Fault Tolerance"
  130. BEGIN
  131. MENUITEM "Establish &Mirror" ,IDM_FTESTABLISHMIRROR, GRAYED
  132. MENUITEM "&Break Mirror..." ,IDM_FTBREAKMIRROR , GRAYED
  133. MENUITEM SEPARATOR
  134. MENUITEM "Create Stripe Set with &Parity...",IDM_FTCREATEPSTRIPE , GRAYED
  135. MENUITEM "&Regenerate" ,IDM_FTRECOVERSTRIPE , GRAYED
  136. END
  137. POPUP "&Tools"
  138. BEGIN
  139. MENUITEM "&Format..." ,IDM_PARTITIONFORMAT , GRAYED
  140. MENUITEM "&Label..." ,IDM_PARTITIONLABEL , GRAYED
  141. MENUITEM "Dri&ve Letter..." ,IDM_PARTITIONLETTER , GRAYED
  142. #ifdef DOUBLE_SPACE_SUPPORT_INCLUDED
  143. MENUITEM SEPARATOR
  144. MENUITEM "&DoubleSpace Volumes...",IDM_DBLSPACE , GRAYED
  145. MENUITEM "&Automount DoubleSpace Floppies",IDM_AUTOMOUNT
  146. #endif
  147. MENUITEM SEPARATOR
  148. MENUITEM "&CD-ROM Drive Letters..." ,IDM_CDROM , GRAYED
  149. END
  150. POPUP "&Options"
  151. BEGIN
  152. MENUITEM "&Status Bar" ,IDM_OPTIONSSTATUS
  153. MENUITEM "&Legend" ,IDM_OPTIONSLEGEND
  154. MENUITEM SEPARATOR
  155. MENUITEM "&Colors and Patterns...",IDM_OPTIONSCOLORS
  156. MENUITEM "&Region Display..." ,IDM_OPTIONSDISPLAY
  157. END
  158. POPUP "&Help"
  159. BEGIN
  160. MENUITEM "&Contents" ,IDM_HELPCONTENTS
  161. MENUITEM "&Search for Help on..." ,IDM_HELPSEARCH
  162. MENUITEM "&How to Use Help" ,IDM_HELPHELP
  163. MENUITEM SEPARATOR
  164. MENUITEM "&About Disk Administrator..." ,IDM_HELPABOUT
  165. END
  166. #if DBG && DEVL
  167. POPUP "DEBUG"
  168. BEGIN
  169. MENUITEM "Allow delete all partitions",IDM_DEBUGALLOWDELETES
  170. END
  171. #endif
  172. END
  173. MainAcc ACCELERATORS PRELOAD DISCARDABLE
  174. BEGIN
  175. VK_F1, IDM_HELP, VIRTKEY
  176. END
  177. #include "fdisk.dlg"
  178. #include "fdiskmsg.rc"
  179. #include <ntverp.h>
  180. #define VER_FILETYPE VFT_APP
  181. #define VER_FILESUBTYPE VFT2_UNKNOWN
  182. #define VER_FILEDESCRIPTION_STR "Disk Partitioning Utility"
  183. #define VER_INTERNALNAME_STR "fdisk\0"
  184. #define VER_ORIGINALFILENAME_STR "WINDISK.EXE"
  185. #include "common.ver"