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.

64 lines
2.1 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 "tsdiscon.h"
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT2_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Session Disconnection Utility"
  11. #define VER_INTERNALNAME_STR "tsdiscon"
  12. #define VER_ORIGINALFILENAME_STR "tsdiscon.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_WINSTATION_NOT_FOUND
  22. L"Sessionname %s not found\n"
  23. IDS_ERROR_INVALID_LOGONID
  24. L"Invalid SessionId %s\n"
  25. IDS_ERROR_LOGONID_NOT_FOUND
  26. L"SessionId %lu not found\n"
  27. IDS_ERROR_DISCONNECT
  28. L"Could not disconnect sessionID %lu from sessionname %s, Error code %lu\n"
  29. IDS_ERROR_DISCONNECT_CURRENT
  30. L"Could not disconnect current sessionID from this session, Error code %lu\n"
  31. IDS_ERROR_CANT_GET_CURRENT_WINSTATION
  32. L"Could not get the current sessionname, Error code %lu\n"
  33. IDS_ERROR_SERVER
  34. L"Error opening Terminal server %s\n"
  35. END
  36. STRINGTABLE
  37. BEGIN
  38. IDS_WINSTATION_DISCONNECT
  39. L"Disconnecting sessionID %lu from sessionname %s\n"
  40. END
  41. STRINGTABLE
  42. BEGIN
  43. IDS_USAGE_1
  44. L"Disconnects a terminal session.\n\n"
  45. IDS_USAGE_2
  46. L"TSDISCON [sessionid | sessionname] [/SERVER:servername] [/V]\n\n"
  47. IDS_USAGE_3
  48. L" sessionid The ID of the session.\n"
  49. IDS_USAGE_4
  50. L" sessionname The name of the session.\n"
  51. IDS_USAGE_5
  52. L" /SERVER:servername Specifies the Terminal server (default is current).\n"
  53. IDS_USAGE_6
  54. L" /V Displays information about the actions performed.\n\n"
  55. IDS_ERROR_NOT_TS
  56. L"This utility needs Terminal Services to be running.\n"
  57. END