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.

154 lines
6.3 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, 229, 290
  17. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU
  18. CAPTION "Remote Shutdown Dialog"
  19. FONT 8, "MS Shell Dlg"
  20. BEGIN
  21. COMBOBOX IDC_COMBOACTION,13,89,114,67,CBS_DROPDOWNLIST |
  22. WS_VSCROLL | WS_TABSTOP
  23. LTEXT "What do you want these computers to do:",IDC_STATIC,13,
  24. 77,133,8
  25. COMBOBOX IDC_COMBOOPTION,19,186,185,105,CBS_DROPDOWNLIST |
  26. CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
  27. LTEXT "Option:",IDC_STATIC,20,175,24,8
  28. GROUPBOX "Shutdown Event Tracker",IDC_STATIC,14,147,200,115
  29. LISTBOX IDC_LISTSELECTEDCOMPUTERS,14,23,125,47,LBS_SORT |
  30. LBS_MULTIPLESEL | LBS_NOINTEGRALHEIGHT |
  31. LBS_WANTKEYBOARDINPUT | WS_VSCROLL | WS_TABSTOP
  32. PUSHBUTTON "Remove",IDC_BUTTONREMOVE,147,39,47,14
  33. PUSHBUTTON "OK",IDOK,115,266,47,14
  34. PUSHBUTTON "Cancel",IDCANCEL,166,266,47,14
  35. PUSHBUTTON "Browse...",IDC_BUTTONBROWSE,147,55,47,14
  36. CONTROL "Warn users of the action",IDC_CHECKWARNING,"Button",
  37. BS_AUTOCHECKBOX | WS_TABSTOP,13,107,93,10
  38. EDITTEXT IDC_EDITTIMEOUT,26,130,28,12,ES_AUTOHSCROLL | ES_NUMBER
  39. LTEXT "Display warning for",IDC_STATIC,26,120,60,8
  40. EDITTEXT IDC_EDITCOMMENT,19,233,185,25,ES_MULTILINE |
  41. ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
  42. LTEXT "Comment:",IDC_STATIC,18,223,32,8
  43. LTEXT "Computers:",IDC_STATIC,14,10,36,8
  44. PUSHBUTTON "Add...",IDC_BUTTONADDNEW,147,23,47,14
  45. LTEXT "Seconds",IDC_STATIC,61,132,29,8
  46. LTEXT "Select the option that best describes why you want to shutdown the computers",
  47. IDC_STATIC,19,157,188,17
  48. LTEXT "",IDC_STATICDESCRIPTION,20,204,184,18
  49. CONTROL "Planned",IDC_CHECK_PLANNED,"Button",BS_AUTOCHECKBOX |
  50. WS_TABSTOP,164,173,42,10
  51. END
  52. IDD_DIALOG_ADDNEW DIALOG DISCARDABLE 100, 100, 158, 77
  53. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  54. CAPTION "Add Computers"
  55. FONT 8, "MS Shell Dlg"
  56. BEGIN
  57. EDITTEXT IDC_EDIT_ADDCOMPUTERS_COMPUTERS,7,7,144,43,ES_MULTILINE |
  58. ES_LOWERCASE | ES_AUTOVSCROLL | ES_WANTRETURN |
  59. WS_VSCROLL
  60. PUSHBUTTON "Cancel",IDCANCEL,101,54,47,14
  61. PUSHBUTTON "OK",IDOK,45,54,47,14
  62. END
  63. IDD_DIALOG_BROWSE DIALOG DISCARDABLE 0, 0, 161, 158
  64. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  65. CAPTION "Browse computers"
  66. FONT 8, "MS Shell Dlg"
  67. BEGIN
  68. PUSHBUTTON "Cancel",IDCANCEL,100,122,47,14
  69. DEFPUSHBUTTON "OK",IDOK,100,103,47,14
  70. LISTBOX IDC_LISTNETWORKCOMPUTERS,13,51,82,84,LBS_SORT |
  71. LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
  72. WS_TABSTOP
  73. PUSHBUTTON "Refresh",IDC_BUTTON_REFRESH,100,84,47,14
  74. EDITTEXT IDC_EDITDOMAIN,15,19,62,14,ES_AUTOHSCROLL
  75. LTEXT "Domain:",IDC_STATIC,16,10,27,8
  76. LTEXT "Computers in domain:",IDC_STATIC,15,40,68,8
  77. LTEXT "Edit the domain as needed and Refresh, then select computers from the list.",
  78. IDC_STATIC,98,13,56,53
  79. LTEXT "",IDC_STATIC_PROGRESS,13,137,135,11
  80. END
  81. /////////////////////////////////////////////////////////////////////////////
  82. //
  83. // DESIGNINFO
  84. //
  85. #ifdef APSTUDIO_INVOKED
  86. GUIDELINES DESIGNINFO DISCARDABLE
  87. BEGIN
  88. IDD_DIALOGSHUTDOWN, DIALOG
  89. BEGIN
  90. LEFTMARGIN, 7
  91. RIGHTMARGIN, 222
  92. TOPMARGIN, 8
  93. BOTTOMMARGIN, 307
  94. END
  95. IDD_DIALOG_ADDNEW, DIALOG
  96. BEGIN
  97. LEFTMARGIN, 7
  98. RIGHTMARGIN, 151
  99. TOPMARGIN, 7
  100. BOTTOMMARGIN, 70
  101. END
  102. IDD_DIALOG_BROWSE, DIALOG
  103. BEGIN
  104. LEFTMARGIN, 7
  105. RIGHTMARGIN, 154
  106. TOPMARGIN, 7
  107. BOTTOMMARGIN, 151
  108. END
  109. END
  110. #endif // APSTUDIO_INVOKED
  111. /////////////////////////////////////////////////////////////////////////////
  112. //
  113. // String Table
  114. //
  115. STRINGTABLE DISCARDABLE
  116. BEGIN
  117. IDS_USAGE "Usage: %s [-i | -l | -s | -r | -a] [-f] [-m \\\\computername] [-t xx] [-c ""comment""] [-d up:xx:yy]\n\n\tNo args\t\t\tDisplay this message (same as -?)\n\t-i\t\t\tDisplay GUI interface, must be the first option\n\t-l\t\t\tLog off (cannot be used with -m option)\n\t-s\t\t\tShutdown the computer\n\t-r\t\t\tShutdown and restart the computer\n\t-a\t\t\tAbort a system shutdown\n\t-m \\\\computername\tRemote computer to shutdown/restart/abort\n\t-t xx\t\t\tSet timeout for shutdown to xx seconds\n\t-c ""comment""\t\tShutdown comment (maximum of 127 characters)\n\t-f\t\t\tForces running applications to close without warning\n\t-d [u][p]:xx:yy\t\tThe reason code for the shutdown\n\t\t\t\tu is the user code\n\t\t\t\tp is a planned shutdown code\n\t\t\t\txx is the major reason code (positive integer less than 256)\n\t\t\t\tyy is the minor reason code (positive integer less than 65536)\n"
  118. IDS_ACTION_SHUTDOWN "Shutdown"
  119. IDS_ACTION_RESTART "Restart"
  120. IDS_ACTION_ABORT "Abort"
  121. IDS_ACTION_LOGOFF "Logoff"
  122. IDS_ACTION_STANDBY "Standby"
  123. IDS_ACTION_DISCONNECT "Disconnect"
  124. IDS_CANNOTGETPRIVILAGE "Failed to get privilage"
  125. IDS_ACTIONNOTSUPPORTED "Action not supported: "
  126. IDS_GETCOMPUTERNAMEWAIT "Getting computer names, please wait..."
  127. IDS_GETCOMPUTERNAMEPROGRESS "computers Listed"
  128. IDS_GETCOMPUTERNAMECOMPLETE "Listing completed(total:"
  129. IDS_GETCOMPUTERNAMEMOREDATA
  130. "Too many computers to list. Please use add button"
  131. IDS_GETCOMPUTERNAMEERROR "System error occurred"
  132. IDS_DIALOGTITLEWARNING "Warning"
  133. IDS_EMPTYLISTMSG "No computers to act on. Click cancel if you want to exit"
  134. IDS_SUCCEEDED "Succeeded"
  135. IDS_FAILED "Failed"
  136. END