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.

136 lines
5.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 "msg.h"
  8. #define VER_FILETYPE VFT_APP
  9. #define VER_FILESUBTYPE VFT2_UNKNOWN
  10. #define VER_FILEDESCRIPTION_STR "Message Utility"
  11. #define VER_INTERNALNAME_STR "msg"
  12. #define VER_ORIGINALFILENAME_STR "msg.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_EMPTY_MESSAGE
  22. L"Message from STDIN is empty; no message sent\n"
  23. IDS_ERROR_STDIN_PROCESSING
  24. L"Error during STDIN processing; message not sent\n"
  25. IDS_ERROR_WINSTATION_ENUMERATE
  26. L"Error %d getting session names\n"
  27. IDS_ERROR_NO_FILE_MATCHING
  28. L"Input file %s names don't exist or are disconnected\n"
  29. IDS_ERROR_NO_MATCHING
  30. L"%s does not exist or is disconnected\n"
  31. IDS_ERROR_QUERY_WS
  32. L"Error %lu querying session %s information\n"
  33. IDS_ERROR_QUERY_ID
  34. L"Error %lu querying session ID %lu information\n"
  35. IDS_ERROR_MESSAGE_WS
  36. L"Error sending message to session %s : Error %lu \n"
  37. IDS_ERROR_MESSAGE_ID
  38. L"Error sending message to session ID %lu : Error %lu\n"
  39. IDS_ERROR_SERVER
  40. L"Error opening Terminal server %s\n"
  41. END
  42. STRINGTABLE
  43. BEGIN
  44. IDS_MESSAGE_PROMPT
  45. L"Enter message to send; end message by pressing CTRL-Z on a new line, then ENTER\n"
  46. IDS_MESSAGE_WS
  47. L"Sending message to session %s, display time %lu\n"
  48. IDS_MESSAGE_ID
  49. L"Sending message to session ID %lu, display time %lu\n"
  50. IDS_MESSAGE_RESPONSE_TIMEOUT_WS
  51. L"Timeout on message to session %s before user response\n"
  52. IDS_MESSAGE_RESPONSE_TIMEOUT_ID
  53. L"Timeout on message to session ID %lu before user response\n"
  54. IDS_MESSAGE_RESPONSE_ASYNC_WS
  55. L"Async message sent to session %s\n"
  56. IDS_MESSAGE_RESPONSE_ASYNC_ID
  57. L"Async message sent to session ID %lu\n"
  58. IDS_MESSAGE_RESPONSE_COUNT_EXCEEDED_WS
  59. L"Too many messages queued on session %s\n"
  60. IDS_MESSAGE_RESPONSE_COUNT_EXCEEDED_ID
  61. L"Too many messages queued on session ID %lu\n"
  62. IDS_MESSAGE_RESPONSE_DESKTOP_ERROR_WS
  63. L"Not on Default Desktop, message not sent to session %s\n"
  64. IDS_MESSAGE_RESPONSE_DESKTOP_ERROR_ID
  65. L"Not on Default Desktop, message not sent to session ID %lu\n"
  66. IDS_MESSAGE_RESPONSE_ERROR_WS
  67. L"Message response error from session %s\n"
  68. IDS_MESSAGE_RESPONSE_ERROR_ID
  69. L"Message response error from session ID %lu\n"
  70. IDS_MESSAGE_RESPONSE_WS
  71. L"Message to session %s responded to by user\n"
  72. IDS_MESSAGE_RESPONSE_ID
  73. L"Message to session ID %lu responded to by user\n"
  74. END
  75. STRINGTABLE
  76. BEGIN
  77. IDS_MESSAGE_RESPONSE_UNKNOWN_WS
  78. L"Unknown response %lu from session %s\n"
  79. IDS_MESSAGE_RESPONSE_UNKNOWN_ID
  80. L"Unknown response %lu from session ID %lu\n"
  81. IDS_ERROR_CANT_OPEN_INPUT_FILE
  82. L"Can't open input file %s\n"
  83. IDS_USAGE1
  84. L"Send a message to a user.\n\n"
  85. IDS_USAGE2
  86. L"MSG {username | sessionname | sessionid | @filename | *}\n"
  87. IDS_USAGE3
  88. L" [/SERVER:servername] [/TIME:seconds] [/V] [/W] [message]\n\n"
  89. IDS_USAGE4
  90. L" username Identifies the specified username.\n"
  91. IDS_USAGE5
  92. L" sessionname The name of the session.\n"
  93. IDS_USAGE6
  94. L" sessionid The ID of the session.\n"
  95. IDS_USAGE7
  96. L" @filename Identifies a file containing a list of usernames,\n"
  97. IDS_USAGE8
  98. L" sessionnames, and sessionids to send the message to.\n"
  99. IDS_USAGE9
  100. L" * Send message to all sessions on specified server.\n"
  101. IDS_USAGEA
  102. L" /SERVER:servername server to contact (default is current).\n"
  103. IDS_USAGEB
  104. L" /TIME:seconds Time delay to wait for receiver to acknowledge msg.\n"
  105. IDS_USAGEC
  106. L" /V Display information about actions being performed.\n"
  107. IDS_USAGED
  108. L" /W Wait for response from user, useful with /V.\n"
  109. IDS_USAGEE
  110. L" message Message to send. If none specified, prompts for it\n"
  111. IDS_USAGEF
  112. L" or reads from stdin.\n\n"
  113. IDS_ERROR_NOT_TS
  114. L"This utility needs Terminal Services to be running.\n"
  115. /*
  116. * Output format string definitions.
  117. *
  118. * HACK ALERT: the trailing spaces are necessary because the
  119. * MB_SERVICE_NOTIFICATION (hard error daemon added)
  120. * attribute causes a icon on the title bar and
  121. * squishes the title string's last few chars ...
  122. *
  123. */
  124. IDS_TITLE_FORMAT L"Message from %s "
  125. END