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.

61 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 "qprocess.h"
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT2_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Query Process Utility"
  11. #define VER_INTERNALNAME_STR "qprocess"
  12. #define VER_ORIGINALFILENAME_STR "qprocess.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_QUERY_INFORMATION
  22. L"Error querying System Information\n"
  23. IDS_ERROR_PROCESS_NOT_FOUND
  24. L"No Process exists for %s\n"
  25. IDS_ERROR_ENUMERATE_PROCESSES
  26. L"Error enumerating processes\n"
  27. IDS_ERROR_SERVER
  28. L"Error opening Terminal server %s\n"
  29. IDS_HELP_USAGE1
  30. L"Displays information about processes.\n\n"
  31. IDS_HELP_USAGE2
  32. L"QUERY PROCESS [* | processid | username | sessionname | /ID:nn | programname]\n"
  33. IDS_HELP_USAGE3
  34. L" [/SERVER:servername]\n\n"
  35. IDS_HELP_USAGE40
  36. L" * Display all visible processes.\n"
  37. IDS_HELP_USAGE4
  38. L" processid Display process specified by processid.\n"
  39. IDS_HELP_USAGE5
  40. L" username Display all processes belonging to username.\n"
  41. IDS_HELP_USAGE6
  42. L" sessionname Display all processes running at sessionname.\n"
  43. IDS_HELP_USAGE7
  44. L" /ID:nn Display all processes running at session nn.\n"
  45. IDS_HELP_USAGE8
  46. L" programname Display all processes associated with programname.\n"
  47. IDS_HELP_USAGE9
  48. L" /SERVER:servername The Terminal server to be queried.\n"
  49. // IDS_HEADER
  50. // L" USERNAME SESSIONNAME ID STATE PID IMAGE\n"
  51. IDS_HEADER
  52. L" USERNAME SESSIONNAME ID PID IMAGE\n"
  53. IDS_ERROR_NOT_TS
  54. L"This utility needs Terminal Services to be running.\n"
  55. END