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.

157 lines
7.7 KiB

  1. //Microsoft Developer Studio generated resource script.
  2. //
  3. #include "resource.h"
  4. #include <windows.h>
  5. #include <ntverp.h>
  6. #define VER_FILETYPE VFT_APP
  7. #define VER_FILESUBTYPE VFT2_UNKNOWN
  8. #define VER_FILEDESCRIPTION_STR "Windows Remote Shutdown Tool"
  9. #define VER_INTERNALNAME_STR "shutdown\0"
  10. #define VER_ORIGINALFILENAME_STR "SHUTDOWN.EXE"
  11. #include "common.ver"
  12. /////////////////////////////////////////////////////////////////////////////
  13. //
  14. // Dialog
  15. //
  16. IDD_DIALOGSHUTDOWN DIALOG DISCARDABLE 300, 200, 272, 270
  17. STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
  18. CAPTION "Remote Shutdown Dialog"
  19. FONT 8, "MS Shell Dlg"
  20. BEGIN
  21. LTEXT "Comp&uters:",IDC_STATIC,14,2,36,8
  22. LISTBOX IDC_LISTSELECTEDCOMPUTERS,14,14,183,43,LBS_SORT |
  23. LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
  24. WS_TABSTOP
  25. PUSHBUTTON "&Add...",IDC_BUTTONADDNEW,209,12,47,14
  26. PUSHBUTTON "&Remove",IDC_BUTTONREMOVE,209,28,47,14
  27. PUSHBUTTON "&Browse...",IDC_BUTTONBROWSE,209,44,47,14
  28. LTEXT "What do you want these computers to &do:",IDC_STATIC,14,
  29. 64,133,8
  30. COMBOBOX IDC_COMBOACTION,14,76,124,67,CBS_DROPDOWNLIST |
  31. WS_VSCROLL | WS_TABSTOP
  32. CONTROL "&Warn users of the action",IDC_CHECKWARNING,"Button",
  33. BS_AUTOCHECKBOX | WS_TABSTOP,14,95,93,10
  34. LTEXT "Disp&lay warning for",IDC_STATIC,26,108,60,8
  35. EDITTEXT IDC_EDITTIMEOUT,91,107,28,12,ES_AUTOHSCROLL | ES_NUMBER
  36. LTEXT "Seconds",IDC_STATIC,127,109,29,8
  37. GROUPBOX "Shutdown Event Tracker",IDC_STATIC,14,125,243,120
  38. LTEXT "Select the option that best describes why you want to shutdown the computers",
  39. IDC_STATIC,21,136,226,16
  40. CONTROL "&Planned",IDC_CHECK_PLANNED,"Button",BS_AUTOCHECKBOX |
  41. WS_TABSTOP,208,155,42,10
  42. LTEXT "&Option:",IDC_STATIC,21,157,24,8
  43. COMBOBOX IDC_COMBOOPTION,21,168,226,105,CBS_DROPDOWNLIST |
  44. CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
  45. LTEXT "Comm&ent:",IDC_STATIC_COMMENT,21,205,226,8
  46. EDITTEXT IDC_EDITCOMMENT,21,216,226,22,ES_MULTILINE |
  47. ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
  48. LTEXT "",IDC_STATICDESCRIPTION,21,184,226,17
  49. PUSHBUTTON "OK",IDOK,107,248,47,14
  50. PUSHBUTTON "&Cancel",IDCANCEL,160,248,47,14
  51. PUSHBUTTON "&Help",IDHELP,212,248,45,14
  52. END
  53. IDD_DIALOG_ADDNEW DIALOG DISCARDABLE 100, 100, 158, 77
  54. STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
  55. CAPTION "Add Computers"
  56. FONT 8, "MS Shell Dlg"
  57. BEGIN
  58. EDITTEXT IDC_EDIT_ADDCOMPUTERS_COMPUTERS,7,7,144,43,ES_MULTILINE |
  59. ES_LOWERCASE | ES_AUTOVSCROLL | ES_WANTRETURN |
  60. WS_VSCROLL
  61. PUSHBUTTON "O&K",IDOK,45,54,47,14
  62. PUSHBUTTON "&Cancel",IDCANCEL,101,54,47,14
  63. END
  64. /////////////////////////////////////////////////////////////////////////////
  65. //
  66. // DESIGNINFO
  67. //
  68. #ifdef APSTUDIO_INVOKED
  69. GUIDELINES DESIGNINFO DISCARDABLE
  70. BEGIN
  71. IDD_DIALOGSHUTDOWN, DIALOG
  72. BEGIN
  73. LEFTMARGIN, 7
  74. RIGHTMARGIN, 222
  75. TOPMARGIN, 8
  76. BOTTOMMARGIN, 307
  77. END
  78. IDD_DIALOG_ADDNEW, DIALOG
  79. BEGIN
  80. LEFTMARGIN, 7
  81. RIGHTMARGIN, 151
  82. TOPMARGIN, 7
  83. BOTTOMMARGIN, 70
  84. END
  85. END
  86. #endif // APSTUDIO_INVOKED
  87. /////////////////////////////////////////////////////////////////////////////
  88. //
  89. // String Table
  90. //
  91. STRINGTABLE DISCARDABLE
  92. BEGIN
  93. IDS_USAGE0 "Usage: %s [/i | /l | /s | /r | /a | /p | /h | /e] [/f]\n"
  94. IDS_USAGE1 " [/m \\\\computer][/t xxx][/d [p:]xx:yy [/c ""comment""]]\n\n"
  95. IDS_USAGE2 " No args Display help. This is the same as typing /?\n"
  96. IDS_USAGE2a " /? Display help. This is the same as not typing any options\n"
  97. IDS_USAGE3 " /i Display the graphical user interface (GUI).\n"
  98. IDS_USAGE3a " This must be the first option\n"
  99. IDS_USAGE4 " /l Log off. This cannot be used with /m or /d option\n"
  100. IDS_USAGE5 " /s Shutdown the computer\n"
  101. IDS_USAGE6 " /r Shutdown and restart the computer\n"
  102. IDS_USAGE7 " /a Abort a system shutdown.\n"
  103. IDS_USAGE7a " This can only be used during the time-out period\n"
  104. IDS_USAGE8 " /p Turn off the local computer with no time-out or warning.\n"
  105. IDS_USAGE8a " This can only be used with /d option\n"
  106. IDS_USAGE9 " /h Hibernate the local computer.\n"
  107. IDS_USAGE9a " This can only be used with the /f option\n"
  108. IDS_USAGE10 " /e Document the reason for an unexpected shutdown of a computer\n"
  109. IDS_USAGE11 " /m \\\\computer Specify the target computer\n"
  110. IDS_USAGE12 " /t xxx Set time-out period before shutdown to xxx seconds.\n"
  111. IDS_USAGE12a " The valid range is 0-600, with a default of 30\n"
  112. IDS_USAGE13 " /c ""comment"" Comment on the reason for the restart or shutdown.\n"
  113. IDS_USAGE13a " Maximum of 127 characters allowed\n"
  114. IDS_USAGE14 " /f Force running applications to close without forewarning users\n"
  115. IDS_USAGE15 " /d [p:]xx:yy Provide the reason for the restart or shutdown\n"
  116. IDS_USAGE17 " p indicates that the restart or shutdown is planned\n"
  117. IDS_USAGE18 " xx is the major reason number (positive integer less than 256)\n"
  118. IDS_USAGE19 " yy is the minor reason number (positive integer less than 65536)\n"
  119. IDS_ACTION_SHUTDOWN "Shutdown"
  120. IDS_ACTION_RESTART "Restart"
  121. IDS_ACTION_ABORT "Abort"
  122. IDS_ACTION_LOGOFF "Logoff"
  123. IDS_ACTION_HIBERNATE "Hibernate"
  124. IDS_ACTION_ANNOTATE "Annotate Unexpected Shutdown"
  125. IDS_ACTION_STANDBY "Standby"
  126. IDS_ACTION_DISCONNECT "Disconnect"
  127. IDS_CANNOTGETPRIVILAGE "Failed to get privilage"
  128. IDS_ACTIONNOTSUPPORTED "Action not supported: "
  129. IDS_DIALOGTITLEWARNING "Warning"
  130. IDS_ERR_HIBERNATE_NOT_ENABLED "Hibernation is not enabled on this system. You must enable hibernation in order to use the -h option."
  131. IDS_REASONLISTTITLE "\nReasons on this computer:\n(E = Expected U = Unexpected P = planned, C = customer defined)\nType\tMajor\tMinor\tTitle\n"
  132. IDS_PROMOTE_COMMENT "Please enter a non-zero length comment for the reason you indicated:\n"
  133. IDS_ERROR_NOT_READY "The computer is processing another action and thus cannot be shut down. Wait until the computer has finished its action, and then try again."
  134. IDS_ERROR_NOT_AVAILABLE "The entered computer name is not valid. Check the name and then try again or contact your system administrator."
  135. IDS_COMMENT_REQUIRED "Comm&ent: (This field is REQUIRED for the reason you selected)"
  136. IDS_COMMENT_OPTIONAL "Comm&ent:"
  137. IDS_NO_DIRTY_SHUTDOWN "The computer did not experience an unexpected shutdown and therefore does not need an annotation."
  138. IDS_FAILED_REG_CONN "Failed to connect to registry."
  139. IDS_FAILED_REG_OPEN "Failed to open registry."
  140. IDS_FAILED_EVENT_REG "Failed to register event source."
  141. IDS_FAILED_EVENT_REPORT "Failed to report event."
  142. END