Source code of Windows XP (NT5)
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.

68 lines
2.4 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 "logoff.h"
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT2_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Session Logoff Utility"
  11. #define VER_INTERNALNAME_STR "logoff"
  12. #define VER_ORIGINALFILENAME_STR "logoff.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"Session %s not found\n"
  23. IDS_ERROR_INVALID_LOGONID
  24. L"Invalid session ID %s\n"
  25. IDS_ERROR_LOGONID_NOT_FOUND
  26. L"Session ID %lu not found\n"
  27. IDS_ERROR_LOGOFF
  28. L"Could not logoff session ID %lu, Error code %lu\n"
  29. IDS_ERROR_LOGOFF_CURRENT
  30. L"Could not logoff current session ID, 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_NEED_A_SESSIONID
  34. L"If you give a server name, you need to specify a session ID or a session name.\n"
  35. IDS_ERROR_SERVER
  36. L"Error opening Terminal server %s\n"
  37. IDS_WARNING_LOGOFF
  38. L"If you reset this session, all users using this protocol will be logged off,\nContinue (n=no)? "
  39. IDS_WARNING_LOGOFF_QUESTIONABLE
  40. L"If the session Id in question refers to a protocol, then all users using this\nprotocol will be logged off, continue(n=no)? "
  41. END
  42. STRINGTABLE
  43. BEGIN
  44. IDS_WINSTATION_LOGOFF
  45. L"Logging off session ID %lu\n"
  46. IDS_USAGE1
  47. L"Terminates a session.\n\n"
  48. IDS_USAGE2
  49. L"LOGOFF [sessionname | sessionid] [/SERVER:servername] [/V]\n\n"
  50. IDS_USAGE3
  51. L" sessionname The name of the session.\n"
  52. IDS_USAGE4
  53. L" sessionid The ID of the session.\n"
  54. IDS_USAGE5
  55. L" /SERVER:servername Specifies the Terminal server containing the user\n"
  56. IDS_USAGE6
  57. L" session to log off (default is current).\n"
  58. IDS_USAGE7
  59. L" /V Displays information about the actions performed.\n\n"
  60. IDS_ERROR_NOT_TS
  61. L"This utility needs Terminal Services to be running.\n"
  62. END