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.

104 lines
5.3 KiB

  1. #include "resource.h"
  2. #include "cmdlineres.h"
  3. #include "cmdline.h"
  4. #include "cmdline.rc"
  5. //new waitforfrom client
  6. STRINGTABLE DISCARDABLE
  7. BEGIN
  8. IDS_WAITFOR_HELP_BEGIN "\nWaitFor has two ways of working: \n\nSyntax 1: to send a signal\n"
  9. IDS_WAITFOR_HELP_1 " WAITFOR [/S system [/U user [/P [password]]]] /SI signal\n"
  10. IDS_WAITFOR_HELP_2 ""
  11. IDS_WAITFOR_HELP_3 "\nSyntax 2: to wait for a signal\n"
  12. IDS_WAITFOR_HELP_4 " WAITFOR [/T timeout] signal \n\n"
  13. IDS_WAITFOR_HELP_5 ""
  14. IDS_WAITFOR_HELP_6 "Description:\n"
  15. IDS_WAITFOR_HELP_7 " This tool sends, or waits for, a signal on a system. When /S is not\n"
  16. IDS_WAITFOR_HELP_8 " specified, the signal will be broadcasted to all the systems in a\n"
  17. IDS_WAITFOR_HELP_9 " domain. If /S is specified, then the signal will be sent only\n"
  18. IDS_WAITFOR_HELP_10 " to the specified system.\n\n"
  19. IDS_WAITFOR_HELP_11 ""
  20. IDS_WAITFOR_HELP_12 ""
  21. IDS_WAITFOR_HELP_13 "Parameter List:\n"
  22. IDS_WAITFOR_HELP_14 " /S system Specifies remote system to send signal to.\n\n"
  23. IDS_WAITFOR_HELP_15 ""
  24. IDS_WAITFOR_HELP_16 " /U [domain\]user Specifies the user context under which\n"
  25. IDS_WAITFOR_HELP_17 " the command should execute.\n\n"
  26. IDS_WAITFOR_HELP_18 ""
  27. IDS_WAITFOR_HELP_19 " /P [password] Specifies the password for the given user context.\n\n"
  28. IDS_WAITFOR_HELP_20 ""
  29. IDS_WAITFOR_HELP_21 ""
  30. IDS_WAITFOR_HELP_22 ""
  31. IDS_WAITFOR_HELP_23 " /SI Sends the signal across the net to waiting machines\n\n"
  32. IDS_WAITFOR_HELP_24 ""
  33. IDS_WAITFOR_HELP_25 ""
  34. IDS_WAITFOR_HELP_26 " /T timeout Number of seconds to wait for signal. Valid range\n"
  35. IDS_WAITFOR_HELP_27 " is 1 - 99999. Default is to wait forever for signal.\n\n"
  36. IDS_WAITFOR_HELP_28 ""
  37. IDS_WAITFOR_HELP_29 ""
  38. IDS_WAITFOR_HELP_30 " signal The name of the signal to wait for or to send.\n\n"
  39. IDS_WAITFOR_HELP_31 ""
  40. IDS_WAITFOR_HELP_32 ""
  41. IDS_WAITFOR_HELP_33 " /? Displays this help message.\n\n"
  42. IDS_WAITFOR_HELP_34 ""
  43. IDS_WAITFOR_HELP_35 " NOTE: A system can wait for multiple unique signal names.\n"
  44. IDS_WAITFOR_HELP_36 " The signal name cannot exceed 225 characters and cannot\n"
  45. IDS_WAITFOR_HELP_37 " contain characters other than a-z, A-Z, 0-9 and ASCII \n"
  46. IDS_WAITFOR_HELP_38 " characters in the range 128-255.\n\n"
  47. IDS_WAITFOR_HELP_39 ""
  48. IDS_WAITFOR_HELP_40 ""
  49. IDS_WAITFOR_HELP_41 "Examples:\n"
  50. IDS_WAITFOR_HELP_42 " WAITFOR /?\n"
  51. IDS_WAITFOR_HELP_43 " WAITFOR SetupReady \n"
  52. IDS_WAITFOR_HELP_44 " WAITFOR CopyDone /T 100 \n"
  53. IDS_WAITFOR_HELP_45 " WAITFOR /SI SetupReady \n"
  54. IDS_WAITFOR_HELP_46 " WAITFOR /S system /U user /P password /SI CopyDone\n"
  55. IDS_WAITFOR_HELP_END ""
  56. END
  57. //end from client
  58. STRINGTABLE DISCARDABLE
  59. BEGIN
  60. IDS_ERROR_SEND_SIGNAL "ERROR: Unable to send signal '%s'.\n"
  61. IDS_ERROR_CREATE_MAILSLOT "ERROR: Cannot wait for the specified signal.\n"
  62. IDS_ERROR_SEND_MESSAGE "ERROR: Cannot send the specified signal.\n"
  63. IDS_ERROR_TIMEOUT "ERROR: Timed out waiting for '%s'.\n"
  64. IDS_UNEXPECTED_ERROR "ERROR: Unexpected error %ld occurred.\n"
  65. IDS_ERROR_MUTUAL_EX "ERROR: Signal and timeout are mutually exclusive.\n"
  66. IDS_ERROR_ZERO_TIMEOUT "ERROR: Timeout value cannot be 0.\n"
  67. IDS_ERROR_SIGNAL "ERROR: Signal name not specified.\n"
  68. IDS_ERROR_SYNTAX "ERROR: Invalid syntax.\nType ""WAITFOR /?"" for usage.\n"
  69. IDS_NULL_SERVER "ERROR: /S cannot be empty.\n"
  70. IDS_NULL_USER "ERROR: /U cannot be empty.\n"
  71. IDS_NULL_SIGNAL "ERROR: /Si cannot be empty.\n"
  72. IDS_ERROR_HOSTNAME "ERROR: Unable to retrieve host name from the ipaddress.\n"
  73. IDS_INVALID_TIMEOUT_VAL "ERROR: Invalid value for /T.\nType ""WAITFOR /?"" for usage.\n"
  74. IDS_ERROR_SYSTEM_NAME "ERROR: Unable to retrieve the system name.\n"
  75. IDS_ERROR_HANDLE "ERROR: Unable to close the handle.\n"
  76. IDS_ERROR_SIG_LENGTH "ERROR: The signal name cannot exceed 225 characters.\n"
  77. IDS_ERROR_SIG_CHAR "The signal cannot contain characters other than a-z, A-Z, 0-9 \nand ASCII characters in the range 128-255.\n"
  78. IDS_IGNORE_LOCALCREDENTIALS "WARNING: User credentials are ignored for local connections.\n"
  79. IDS_USER_BUT_NOMACHINE "ERROR: Invalid syntax. Username specified without specifying system name.\n";
  80. IDS_PASSWD_BUT_NOUSER "ERROR: Invalid syntax. Password specified without specifying user name.\n";
  81. IDS_ERROR_SEND_MESSAGE2 "ERROR: Unable to send signal, no network connection detected.\n"
  82. END
  83. STRINGTABLE DISCARDABLE
  84. BEGIN
  85. IDS_SIGNAL_RECD "SUCCESS: Signal received.\n"
  86. IDS_SIGNAL_SENT "SUCCESS: Signal sent.\n"
  87. END
  88. //
  89. // Version resources
  90. //
  91. #include <ntverp.h>
  92. #define VER_FILETYPE VFT_APP
  93. #define VER_FILESUBTYPE VFT2_UNKNOWN
  94. #define VER_FILEDESCRIPTION_STR "waitfor - wait/send a signal over a network"
  95. #define VER_INTERNALNAME_STR "waitfor.exe"
  96. #define VER_ORIGINALFILENAME_STR "waitfor.exe"
  97. #include <common.ver>