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

//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#include <windows.h>
#include <ntverp.h>
#define VER_FILETYPE VFT_APP
#define VER_FILESUBTYPE VFT2_UNKNOWN
#define VER_FILEDESCRIPTION_STR "Windows Remote Shutdown Tool"
#define VER_INTERNALNAME_STR "shutdown\0"
#define VER_ORIGINALFILENAME_STR "SHUTDOWN.EXE"
#include "common.ver"
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_DIALOGSHUTDOWN DIALOG DISCARDABLE 300, 200, 229, 290
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_MINIMIZEBOX | WS_SYSMENU
CAPTION "Remote Shutdown Dialog"
FONT 8, "MS Shell Dlg"
BEGIN
COMBOBOX IDC_COMBOACTION,13,89,114,67,CBS_DROPDOWNLIST |
WS_VSCROLL | WS_TABSTOP
LTEXT "What do you want these computers to do:",IDC_STATIC,13,
77,133,8
COMBOBOX IDC_COMBOOPTION,19,186,185,105,CBS_DROPDOWNLIST |
CBS_AUTOHSCROLL | WS_VSCROLL | WS_TABSTOP
LTEXT "Option:",IDC_STATIC,20,175,24,8
GROUPBOX "Shutdown Event Tracker",IDC_STATIC,14,147,200,115
LISTBOX IDC_LISTSELECTEDCOMPUTERS,14,23,125,47,LBS_SORT |
LBS_MULTIPLESEL | LBS_NOINTEGRALHEIGHT |
LBS_WANTKEYBOARDINPUT | WS_VSCROLL | WS_TABSTOP
PUSHBUTTON "Remove",IDC_BUTTONREMOVE,147,39,47,14
PUSHBUTTON "OK",IDOK,115,266,47,14
PUSHBUTTON "Cancel",IDCANCEL,166,266,47,14
PUSHBUTTON "Browse...",IDC_BUTTONBROWSE,147,55,47,14
CONTROL "Warn users of the action",IDC_CHECKWARNING,"Button",
BS_AUTOCHECKBOX | WS_TABSTOP,13,107,93,10
EDITTEXT IDC_EDITTIMEOUT,26,130,28,12,ES_AUTOHSCROLL | ES_NUMBER
LTEXT "Display warning for",IDC_STATIC,26,120,60,8
EDITTEXT IDC_EDITCOMMENT,19,233,185,25,ES_MULTILINE |
ES_AUTOVSCROLL | ES_WANTRETURN | WS_VSCROLL
LTEXT "Comment:",IDC_STATIC,18,223,32,8
LTEXT "Computers:",IDC_STATIC,14,10,36,8
PUSHBUTTON "Add...",IDC_BUTTONADDNEW,147,23,47,14
LTEXT "Seconds",IDC_STATIC,61,132,29,8
LTEXT "Select the option that best describes why you want to shutdown the computers",
IDC_STATIC,19,157,188,17
LTEXT "",IDC_STATICDESCRIPTION,20,204,184,18
CONTROL "Planned",IDC_CHECK_PLANNED,"Button",BS_AUTOCHECKBOX |
WS_TABSTOP,164,173,42,10
END
IDD_DIALOG_ADDNEW DIALOG DISCARDABLE 100, 100, 158, 77
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Add Computers"
FONT 8, "MS Shell Dlg"
BEGIN
EDITTEXT IDC_EDIT_ADDCOMPUTERS_COMPUTERS,7,7,144,43,ES_MULTILINE |
ES_LOWERCASE | ES_AUTOVSCROLL | ES_WANTRETURN |
WS_VSCROLL
PUSHBUTTON "Cancel",IDCANCEL,101,54,47,14
PUSHBUTTON "OK",IDOK,45,54,47,14
END
IDD_DIALOG_BROWSE DIALOG DISCARDABLE 0, 0, 161, 158
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Browse computers"
FONT 8, "MS Shell Dlg"
BEGIN
PUSHBUTTON "Cancel",IDCANCEL,100,122,47,14
DEFPUSHBUTTON "OK",IDOK,100,103,47,14
LISTBOX IDC_LISTNETWORKCOMPUTERS,13,51,82,84,LBS_SORT |
LBS_NOINTEGRALHEIGHT | LBS_EXTENDEDSEL | WS_VSCROLL |
WS_TABSTOP
PUSHBUTTON "Refresh",IDC_BUTTON_REFRESH,100,84,47,14
EDITTEXT IDC_EDITDOMAIN,15,19,62,14,ES_AUTOHSCROLL
LTEXT "Domain:",IDC_STATIC,16,10,27,8
LTEXT "Computers in domain:",IDC_STATIC,15,40,68,8
LTEXT "Edit the domain as needed and Refresh, then select computers from the list.",
IDC_STATIC,98,13,56,53
LTEXT "",IDC_STATIC_PROGRESS,13,137,135,11
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_DIALOGSHUTDOWN, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 222
TOPMARGIN, 8
BOTTOMMARGIN, 307
END
IDD_DIALOG_ADDNEW, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 151
TOPMARGIN, 7
BOTTOMMARGIN, 70
END
IDD_DIALOG_BROWSE, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 154
TOPMARGIN, 7
BOTTOMMARGIN, 151
END
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// String Table
//
STRINGTABLE DISCARDABLE
BEGIN
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"
IDS_ACTION_SHUTDOWN "Shutdown"
IDS_ACTION_RESTART "Restart"
IDS_ACTION_ABORT "Abort"
IDS_ACTION_LOGOFF "Logoff"
IDS_ACTION_STANDBY "Standby"
IDS_ACTION_DISCONNECT "Disconnect"
IDS_CANNOTGETPRIVILAGE "Failed to get privilage"
IDS_ACTIONNOTSUPPORTED "Action not supported: "
IDS_GETCOMPUTERNAMEWAIT "Getting computer names, please wait..."
IDS_GETCOMPUTERNAMEPROGRESS "computers Listed"
IDS_GETCOMPUTERNAMECOMPLETE "Listing completed(total:"
IDS_GETCOMPUTERNAMEMOREDATA
"Too many computers to list. Please use add button"
IDS_GETCOMPUTERNAMEERROR "System error occurred"
IDS_DIALOGTITLEWARNING "Warning"
IDS_EMPTYLISTMSG "No computers to act on. Click cancel if you want to exit"
IDS_SUCCEEDED "Succeeded"
IDS_FAILED "Failed"
END