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.

65 lines
2.2 KiB

  1. //Copyright (c) 1998 - 1999 Microsoft Corporation
  2. #ifdef NOMINMAX
  3. #undef NOMINMAX
  4. #endif
  5. #include <winver.h>
  6. #include <ntverp.h>
  7. #include "tskill.h"
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT2_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Terminal Services End Process Utility"
  11. #define VER_INTERNALNAME_STR "tskill"
  12. #define VER_ORIGINALFILENAME_STR "tskill.exe"
  13. #include <verall.h>
  14. #include "common.ver"
  15. STRINGTABLE
  16. BEGIN
  17. IDS_ERROR_MALLOC
  18. L"Error allocating memory\n"
  19. IDS_ERROR_INVALID_PARAMETERS
  20. L"Invalid parameter(s)\n"
  21. IDS_ERROR_BAD_PID_NUMBER
  22. L"Bad PID number %s\n"
  23. IDS_ERROR_KILL_PROCESS_FAILED
  24. L"End Process failed for %s:"
  25. IDS_ERROR_SERVER
  26. L"Error opening Terminal server %s\n"
  27. END
  28. STRINGTABLE
  29. BEGIN
  30. IDS_KILL_PROCESS
  31. L"End Process(%u)\n"
  32. IDS_ERROR_BAD_PROCESS
  33. L"Could not find process: %s\n"
  34. IDS_ERROR_ID_ABSENT
  35. L"Specify either /ID or /A flag for the server: %s\n"
  36. IDS_ERROR_ENUM_PROCESS
  37. L"Fail to enumerate processes\n"
  38. IDS_USAGE1
  39. L"Ends a process.\n\n"
  40. IDS_USAGE2
  41. L"TSKILL processid | processname [/SERVER:servername] [/ID:sessionid | /A] [/V]\n\n"
  42. IDS_USAGE3
  43. L" processid Process ID for the process to be terminated.\n"
  44. IDS_USAGE4
  45. L" processname Process name to be terminated.\n"
  46. IDS_USAGE5
  47. L" /SERVER:servername Server containing processID (default is current).\n"
  48. IDS_USAGE6
  49. L" /ID or /A must be specified when using processname\n"
  50. IDS_USAGE7
  51. L" and /SERVER\n"
  52. IDS_USAGE8
  53. L" /ID:sessionid End process running under the specified session.\n"
  54. IDS_USAGE9
  55. L" /A End process running under ALL sessions.\n"
  56. IDS_USAGEA
  57. L" /V Display information about actions being performed.\n\n"
  58. IDS_ERROR_NOT_TS
  59. L"This utility needs Terminal Services to be running.\n"
  60. END