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.

119 lines
5.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 "qwinsta.h"
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT2_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Query Session Utility"
  11. #define VER_INTERNALNAME_STR "qwinsta"
  12. #define VER_ORIGINALFILENAME_STR "qwinsta.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_ENUMERATE
  22. L"Error %d getting sessionnames\n"
  23. IDS_ERROR_WINSTATION_NOT_FOUND
  24. L"No session exists for %s\n"
  25. IDS_ERROR_WINSTATION_OPEN
  26. L"Can't open session %s (ID %d), ErrorCode %d\n"
  27. IDS_ERROR_WINSTATION_GET_INFORMATION
  28. L"Can't get Information for sessionname %s (ID %d)\n Information type %s, ErrorCode %d\n"
  29. IDS_ERROR_WINSTATION_INFO_VERSION_MISMATCH
  30. L"INTERNAL ERROR: WinStationInformation version mismatch!\n Information type %s, returned size: %d, expected size: %d\n"
  31. IDS_ERROR_SERVER
  32. L"Error opening Terminal server %s\n"
  33. IDS_ERROR_INFORMATION
  34. L"Error %d getting information\n"
  35. IDS_VMINFO1
  36. L"ID %d ReferenceCount %d\n"
  37. IDS_VMINFO2
  38. L"PagedPoolCommit %d AllocatedPagedPool %d\n"
  39. IDS_VMINFO3
  40. L"SizeInPages %d CommittedPages %d WiredPages %d\n"
  41. IDS_VMINFO4
  42. L"PreCommittedPages %d ResidentAvailablePages %d\n"
  43. IDS_VMINFO5
  44. L"WorkingSetSize %d WorkingSetMinimum %d, WorkingSetMaximum %d\n"
  45. IDS_HELP_USAGE1
  46. L"Display information about Terminal Sessions.\n\n"
  47. IDS_HELP_USAGE2
  48. L"QUERY SESSION [sessionname | username | sessionid]\n"
  49. IDS_HELP_USAGE3
  50. L" [/SERVER:servername] [/MODE] [/FLOW] [/CONNECT] [/COUNTER]\n\n"
  51. IDS_HELP_USAGE4
  52. L" sessionname Identifies the session named sessionname.\n"
  53. IDS_HELP_USAGE5
  54. L" username Identifies the session with user username.\n"
  55. IDS_HELP_USAGE6
  56. L" sessionid Identifies the session with ID sessionid.\n"
  57. IDS_HELP_USAGE7
  58. L" /SERVER:servername The server to be queried (default is current).\n"
  59. IDS_HELP_USAGE8
  60. L" /MODE Display current line settings.\n"
  61. IDS_HELP_USAGE9
  62. L" /FLOW Display current flow control settings.\n"
  63. IDS_HELP_USAGE10
  64. L" /CONNECT Display current connect settings.\n"
  65. IDS_HELP_USAGE11
  66. L" /COUNTER Display current Terminal Services counters information.\n\n"
  67. IDS_HEADER_A
  68. L" SESSIONNAME CLIENT NAME TRANSPORT ADDRESS\n"
  69. IDS_HEADER_M
  70. L" SESSIONNAME STATE DEVICE TYPE BAUD PARITY DATA STOP\n"
  71. IDS_HEADER_F_C
  72. L" SESSIONNAME DEVICE FLOW CONTROL CONNECT\n"
  73. IDS_HEADER_C
  74. L" SESSIONNAME STATE DEVICE TYPE CONNECT\n"
  75. IDS_HEADER_F
  76. L" SESSIONNAME STATE DEVICE TYPE FLOW CONTROL\n"
  77. IDS_HEADER_DEFAULT
  78. L" SESSIONNAME USERNAME ID STATE TYPE DEVICE \n"
  79. IDS_ERROR_NOT_TS
  80. L"This utility needs Terminal Services to be running.\n"
  81. IDS_ERROR_TERMSRV_COUNTERS L"Unable to get the Terminal Services counters information.\n"
  82. IDS_TSCOUNTER_TOTAL_SESSIONS L"Total sessions created: %lu\n"
  83. IDS_TSCOUNTER_DISC_SESSIONS L"Total sessions disconnected: %lu\n"
  84. IDS_TSCOUNTER_RECON_SESSIONS L"Total sessions reconnected: %lu\n"
  85. IDS_PARITY_NONE L"none "
  86. IDS_PARITY_ODD L"odd "
  87. IDS_PARITY_EVEN L"even "
  88. IDS_PARITY_BLANK L" "
  89. IDS_DATABITS_FORMAT L" %3u "
  90. IDS_DATABITS_BLANK L" "
  91. IDS_STOPBITS_ONE L" 1"
  92. IDS_STOPBITS_ONEANDHALF L" 1.5"
  93. IDS_STOPBITS_TWO L" 2"
  94. IDS_STOPBITS_BLANK L" "
  95. IDS_CONNECT_HEADER L" connect: "
  96. IDS_CONNECT_FORMAT L"%-20s "
  97. IDS_FLOW_HEADER L" flow: "
  98. IDS_FLOW_FORMAT L"%-25s "
  99. IDS_FLOW_ENABLE_DTR L"dtr "
  100. IDS_FLOW_ENABLE_RTS L"rts "
  101. IDS_FLOW_RECEIVE_NONE L"rx none "
  102. IDS_FLOW_RECEIVE_RTS L"rx rts "
  103. IDS_FLOW_RECEIVE_DTR L"rx dtr "
  104. IDS_FLOW_TRANSMIT_NONE L"tx none "
  105. IDS_FLOW_TRANSMIT_CTS L"tx cts "
  106. IDS_FLOW_TRANSMIT_DSR L"tx dsr "
  107. IDS_FLOW_SOFTWARE_TX L"txon "
  108. IDS_FLOW_SOFTWARE_RX L"rxon "
  109. IDS_FLOW_SOFTWARE_XPC L"xpc "
  110. IDS_FLOW_SOFTWARE_XON_XOFF L"xon 0x%x xoff 0x%x "
  111. IDS_LPT_HEADER L" lpt ports: "
  112. IDS_LPT_FORMAT L"lpt%d "
  113. IDS_COM_HEADER L" com ports: "
  114. IDS_COM_FORMAT L"com%d "
  115. END