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.

69 lines
2.7 KiB

  1. #include <windows.h>
  2. #include "resource.h"
  3. #include "cmdlineres.h"
  4. #include "cmdline.rc"
  5. /////////////////////////////////////////////////////////////////////////////
  6. //
  7. // String Table
  8. //
  9. /////////////////////////////////////////////////////////////////////////////
  10. // Strings for the help display
  11. STRINGTABLE DISCARDABLE
  12. BEGIN
  13. IDS_HELP_1 "\nTIMEOUT [/T] timeout [/NOBREAK] \n"
  14. IDS_HELP_2 ""
  15. IDS_HELP_3 "\nDescription:\n"
  16. IDS_HELP_4 " This utility accepts a timeout parameter to wait for the specified\n"
  17. IDS_HELP_5 " time period (in seconds) or until any key is pressed. It also \n"
  18. IDS_HELP_6 " accepts a parameter to ignore the key press. \n\n"
  19. IDS_HELP_7 ""
  20. IDS_HELP_8 ""
  21. IDS_HELP_9 ""
  22. IDS_HELP_10 "Parameter List:\n"
  23. IDS_HELP_11 " /T timeout Specifies the number of seconds to wait.\n"
  24. IDS_HELP_12 " Valid range is -1 to 99999 seconds.\n\n"
  25. IDS_HELP_13 ""
  26. IDS_HELP_14 " /NOBREAK Ignore key presses and wait specified time.\n\n"
  27. IDS_HELP_15 ""
  28. IDS_HELP_16 " /? Displays this help message.\n\n"
  29. IDS_HELP_17 ""
  30. IDS_HELP_18 "NOTE: A timeout value of -1 means to wait indefinitely for a key press.\n"
  31. IDS_HELP_19 ""
  32. IDS_HELP_20 "\nExamples:\n"
  33. IDS_HELP_21 " TIMEOUT /?\n"
  34. IDS_HELP_22 " TIMEOUT /T 10\n"
  35. IDS_HELP_23 " TIMEOUT /T 300 /NOBREAK\n"
  36. IDS_HELP_24 " TIMEOUT /T -1\n"
  37. END
  38. // Tags
  39. STRINGTABLE DISCARDABLE
  40. BEGIN
  41. IDS_INVALID_SYNTAX "ERROR: Invalid syntax.\nType ""TIMEOUT /?"" for usage.\n"
  42. IDS_ERROR_TIME_VALUE "ERROR: Invalid value for timeout (/T) specified. Valid range is -1 to 99999.\n"
  43. IDS_FORMAT_MSG_FAIL "ERROR: unexpected error occurred - error code returned was %u.\n"
  44. IDS_INVALID_INPUT_REDIRECT "ERROR: Input redirection is not supported, exiting the process immediately.\n"
  45. END
  46. // General msgs
  47. STRINGTABLE DISCARDABLE
  48. BEGIN
  49. IDS_WAIT_MSG "\nPress any key to continue ..."
  50. IDS_NO_BREAK_MSG "\nPress CTRL+C to quit ..."
  51. IDS_WAIT_MSG_TIME1 "\nWaiting for %*lu"
  52. IDS_WAIT_MSG_TIME2 " seconds, press a key to continue ..."
  53. IDS_NB_MSG_TIME " seconds, press CTRL+C to quit ..."
  54. END
  55. //
  56. // Version resources
  57. //
  58. #include <ntverp.h>
  59. #define VER_FILETYPE VFT_APP
  60. #define VER_FILESUBTYPE VFT2_UNKNOWN
  61. #define VER_FILEDESCRIPTION_STR "timeout - pauses command processing"
  62. #define VER_INTERNALNAME_STR "timeout.exe"
  63. #define VER_ORIGINALFILENAME_STR "timeout.exe"
  64. #include <common.ver>