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.

120 lines
4.3 KiB

  1. #include <windows.h>
  2. //
  3. // Version resources
  4. //
  5. #include <ntverp.h>
  6. #undef VER_PRODUCTNAME_STR
  7. #define VER_PRODUCTNAME_STR "Microsoft Compound File Layout User Tool for OLE\0"
  8. #define VER_COMMENT_STR "Microsoft Compound File User Tool for OLE\0"
  9. #define VER_FILEDESCRIPTION_STR "Microsoft Compound File Layout User Tool for OLE\0"
  10. #define VER_FILETYPE VFT_APP
  11. #define VER_FILESUBTYPE VFT2_UNKNOWN
  12. #define VER_INTERNALNAME_STR "DFLAYOUT.EXE"
  13. #define VER_ORIGINALFILENAME_STR "DFLAYOUT.EXE"
  14. #include <common.ver>
  15. #include "resource.h"
  16. /////////////////////////////////////////////////////////////////////////////
  17. //
  18. // Dialog
  19. //
  20. IDD_MAIN DIALOGEX 25, 25, 214, 161
  21. STYLE DS_SETFOREGROUND | DS_3DLOOK | WS_MINIMIZEBOX | WS_MAXIMIZEBOX |
  22. WS_VISIBLE | WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
  23. CAPTION "Docfile Layout Tool"
  24. FONT 8, "MS Shell Dlg", 0, 0, 0x1
  25. BEGIN
  26. LTEXT "Files to Optimize:",IDC_STATIC_FILES,6,4,64,8
  27. LISTBOX IDC_LIST_FILES,6,14,133,141,LBS_SORT |
  28. LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL |
  29. LBS_DISABLENOSCROLL | WS_VSCROLL | WS_HSCROLL |
  30. WS_TABSTOP,WS_EX_ACCEPTFILES
  31. DEFPUSHBUTTON "&Add...",IDC_BTN_ADD,153,14,50,14,BS_CENTER
  32. PUSHBUTTON "&Remove",IDC_BTN_REMOVE,153,33,50,14
  33. PUSHBUTTON "&Optimize",IDC_BTN_OPTIMIZE,153,139,50,14
  34. END
  35. /////////////////////////////////////////////////////////////////////////////
  36. //
  37. // Accelerator
  38. //
  39. IDR_ACCELERATOR1 ACCELERATORS DISCARDABLE
  40. BEGIN
  41. "A", IDC_BTN_ADD, VIRTKEY, CONTROL, NOINVERT
  42. "O", IDC_BTN_OPTIMIZE, VIRTKEY, CONTROL, NOINVERT
  43. "R", IDC_BTN_REMOVE, VIRTKEY, CONTROL, NOINVERT
  44. END
  45. /////////////////////////////////////////////////////////////////////////////
  46. //
  47. // String Table
  48. //
  49. STRINGTABLE DISCARDABLE
  50. BEGIN
  51. IDS_ADDFILES_TITLE "Add File to Optimize"
  52. IDS_TEMPFILE_PREFIX "dfl"
  53. END
  54. STRINGTABLE DISCARDABLE
  55. BEGIN
  56. IDS_FILTER_BEGIN "FILTER_BEGIN"
  57. IDS_ALL_FILES "All Files (*.*)"
  58. IDS_ALL_FILES_EXT "*.*"
  59. IDS_WORD_FILES "Word Files (*.doc)"
  60. IDS_WORD_FILES_EXT "*.doc"
  61. IDS_EXCEL_FILES "Excel Files (*.xls)"
  62. IDS_EXCEL_FILES_EXT "*.xls"
  63. IDS_PPT_FILES "Power Point Files (*.ppt)"
  64. IDS_PPT_FILES_EXT "*.ppt"
  65. IDS_PUB_FILES "Publisher Files (*.pub)"
  66. IDS_PUB_FILES_EXT "*.pub"
  67. IDS_FILTER_END "FILTER_END"
  68. END
  69. STRINGTABLE DISCARDABLE
  70. BEGIN
  71. IDS_MAIN_WINDOW_FAIL "Unable to create main window."
  72. IDS_MAIN_WINDOW_FAIL_TITLE "Layout Tool Error"
  73. IDS_ADDFILES_BUFFERTOOSMALL
  74. "Buffer Too Small.\r\nPlease select fewer files at a time."
  75. IDS_ADDFILES_BUFFERTOOSMALL_TITLE "Layout Tool Add Files Error"
  76. IDS_OPTIMIZE_SUCCESS "These files have been successfully optimized."
  77. IDS_OPTIMIZE_SUCCESS_TITLE "Compound File Layout Completed"
  78. IDS_OPTIMIZE_OUTOFMEM "There is not enough memory to complete this operation."
  79. IDS_OPTIMIZE_OUTOFMEM_TITLE "Out of Memory"
  80. END
  81. STRINGTABLE DISCARDABLE
  82. BEGIN
  83. IDS_OPTIMIZE_NOPATH "No temporary path was detected on your machine. Please ensure your temporary path is correctly registered with the system."
  84. IDS_OPTIMIZE_NOPATH_TITLE "No Temporary Path Found"
  85. IDS_ERROR_FILE_NOT_CREATED "A temporary file could not be created."
  86. IDS_OPTIMIZE_FAILED "An unknown error has occurred."
  87. IDS_OPTIMIZE_FAILED_TITLE "Layout Tool Error"
  88. IDS_FILE_BEFORE "The file "
  89. IDS_FILE_AFTER_NOTFOUND " could not be found."
  90. IDS_FILE_AFTER_NOTDOCFILE " is not a valid Compound File."
  91. IDS_FILE_AFTER_CORRUPT " is corrupt!"
  92. IDS_FILE_AFTER_COMPLETE " has been successfully optimized."
  93. IDS_FILE_AFTER_FILE_NOT_OPENED " could not be opened."
  94. IDS_FILE_AFTER_READ_ONLY " has read only permissions."
  95. IDS_OPTIMIZING_FILES "Optimizing files..."
  96. IDS_RENAME_ERROR " could not be renamed."
  97. IDS_RENAME_MESSAGE " has been optimized as "
  98. IDS_DELETE_ERROR " could not be deleted."
  99. IDS_OPTIMIZE_ERROR " could not be optimized."
  100. END
  101. STRINGTABLE DISCARDABLE
  102. BEGIN
  103. IDS_OPTIMIZE "&Optimize"
  104. IDS_CANCEL "Cancel"
  105. END