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.

82 lines
4.2 KiB

  1. #include "resource.h"
  2. #include "windows.h"
  3. #include "cmdlineres.h"
  4. #include "cmdline.rc"
  5. STRINGTABLE DISCARDABLE
  6. BEGIN
  7. IDS_INUSE_HLP1 "\nINUSE replacement destination [/Y]\n\n"
  8. IDS_INUSE_HLP2 ""
  9. IDS_INUSE_HLP3 "Description:\n"
  10. IDS_INUSE_HLP4 " This tool replaces a file which is in use by the operating system\n"
  11. IDS_INUSE_HLP5 " upon reboot.\n\n"
  12. IDS_INUSE_HLP6 ""
  13. IDS_INUSE_HLP7 "Parameter List:\n"
  14. IDS_INUSE_HLP8 " replacement Specifies the new file (including fully qualified path).\n\n"
  15. IDS_INUSE_HLP9 ""
  16. IDS_INUSE_HLP10 ""
  17. IDS_INUSE_HLP11 " destination Specifies the file to be replaced (including fully\n"
  18. IDS_INUSE_HLP12 " qualified path).\n\n"
  19. IDS_INUSE_HLP13 " /Y Suppresses the confirmation prompt.\n\n"
  20. IDS_INUSE_HLP14 ""
  21. IDS_INUSE_HLP15 " /? Displays this help message.\n\n"
  22. IDS_INUSE_HLP16 ""
  23. IDS_INUSE_HLP17 "Examples:\n"
  24. IDS_INUSE_HLP18 " INUSE /?\n"
  25. IDS_INUSE_HLP19 " INUSE C:\\FOO.DLL C:\\WINDOWS\\SYSTEM32\\FOO.DLL\n"
  26. IDS_INUSE_HLP20 " INUSE C:\\ODBCTRAC.DLL C:\\WINDOWS\\SYSTEM32\\ODBCTRAC.DLL /Y\n"
  27. IDS_INUSE_HLP21 " INUSE \\\\SERVER1\\TEMP\\CABINET.DLL C:\\CABINET.DLL /Y\n"
  28. END
  29. STRINGTABLE DISCARDABLE
  30. BEGIN
  31. IDS_REPLACE_FILE_NOT_EXISTS "ERROR: System cannot find the replacement file ""%s"".\n"
  32. IDS_DEST_FILE_NOT_EXISTS "ERROR: System cannot find the destination file ""%s"".\n"
  33. IDS_INVALID_SYNERROR "ERROR: Invalid syntax.\nType ""INUSE /?"" for usage.\n"
  34. IDS_WRONG_INPUT "ERROR: Invalid input.\nType ""INUSE /?"" for usage.\n"
  35. IDS_SOURCE_NOT_NULL "ERROR: Replacement file name cannot be empty.\n"
  36. IDS_DEST_NOT_NULL "ERROR: Destination file name cannot be empty.\n"
  37. IDS_SOURCE_NOT_FILE "ERROR: Source ""%s"" cannot be a directory.\nType ""INUSE /?"" for usage.\n"
  38. IDS_DEST_NOT_FILE "ERROR: Destination ""%s"" cannot be a directory.\nType ""INUSE /?"" for usage.\n"
  39. IDS_NOT_REPLACE "ERROR: Replacement and Destination cannot be the same file.\n"
  40. IDS_FORMAT_MSG_FAIL "ERROR: Unexpected error occurred. Error code: %u.\n"
  41. IDS_DEST_NOT_ALLOWED "ERROR: Destination file cannot be a remote file.\n"
  42. IDS_INVALID_SOURCE "ERROR: Replacement file should not contain '/' character.\n"
  43. IDS_INVALID_DEST "ERROR: Destination file should not contain '/' character.\n"
  44. IDS_REPLACE_ACCESS_DENIED "ERROR: Access is denied on replacement file ""%s"".\n"
  45. IDS_DEST_ACCESS_DENIED "ERROR: Access is denied on destination file ""%s"".\n"
  46. IDS_DEST_DIR_DENIED "ERROR: Unable to create temporary file.\n"
  47. END
  48. STRINGTABLE DISCARDABLE
  49. BEGIN
  50. IDS_INPUT_DATA "\nDo you want to continue? (y/n): "
  51. IDS_COPY_DONE "\n %s is replacing --> %s \n\nChanges will not take affect until the system is rebooted.\n"
  52. IDS_OPERATION_CANCELLED "INFO: Operation has been cancelled.\n"
  53. IDS_INUSE_HEADING "\nINUSE is about to replace the following file\n\n"
  54. END
  55. STRINGTABLE DISCARDABLE
  56. BEGIN
  57. IDS_EXT_FILE_NAME " Destination File: "
  58. IDS_REP_FILE_NAME " Replacement File: "
  59. IDS_FILE_VER " Version: "
  60. IDS_FILE_CRT_TIME " Created Time: "
  61. IDS_FILE_MOD_TIME " Last Modified Time: "
  62. IDS_FILE_ACS_TIME " Last Access Time: "
  63. IDS_FILE_SIZE " Size: "
  64. IDS_VER_NA "Not available"
  65. IDS_STR_BYTES " byte(s)"
  66. IDS_UPPER_YES "Y"
  67. IDS_UPPER_NO "N"
  68. END
  69. #include <ntverp.h>
  70. #define VER_FILETYPE VFT_APP
  71. #define VER_FILESUBTYPE VFT2_UNKNOWN
  72. #define VER_FILEDESCRIPTION_STR "InUse - replaces files currently in use by OS"
  73. #define VER_INTERNALNAME_STR "inuse.exe"
  74. #define VER_ORIGINALFILENAME_STR "inuse.exe"
  75. #include <common.ver>