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.
261 lines
9.5 KiB
261 lines
9.5 KiB
#include <windows.h>
|
|
#include <commctrl.h>
|
|
#include <shlobj.h>
|
|
|
|
#include "resource.h"
|
|
#include "..\schedui\rc.h"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Bitmaps & icons
|
|
//
|
|
|
|
BMP_JOBSTATES BITMAP "..\folderui\states.bmp"
|
|
BMP_JOBSTATEL BITMAP "..\folderui\statel.bmp"
|
|
BMP_JOBSTATEXL BITMAP "..\folderui\statexl.bmp"
|
|
|
|
IDI_GENERIC ICON DISCARDABLE "..\folderui\generic.ICO"
|
|
IDI_TEMPLATE ICON DISCARDABLE "..\\folderui\\template.ico"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Menus
|
|
//
|
|
|
|
POPUP_RBUTTON_MOVE MENU DISCARDABLE
|
|
BEGIN
|
|
POPUP ""
|
|
BEGIN
|
|
MENUITEM "&Move Here", DDIDM_MOVE
|
|
MENUITEM "&Copy Here", DDIDM_COPY
|
|
MENUITEM SEPARATOR
|
|
MENUITEM "Cancel", 0
|
|
END
|
|
END
|
|
|
|
|
|
POPUP_ADVANCED MENUEX DISCARDABLE
|
|
BEGIN
|
|
POPUP ""
|
|
BEGIN
|
|
POPUP "Adva&nced", FSIDM_MENU_ADVANCED
|
|
BEGIN
|
|
MENUITEM "&Stop Using Task Scheduler", FSIDM_STOP_SCHED
|
|
MENUITEM "&Pause Task Scheduler", FSIDM_PAUSE_SCHED
|
|
MENUITEM "&Notify Me of Missed Tasks", FSIDM_NOTIFY_MISSED
|
|
MENUITEM "A&T Service Account", FSIDM_AT_ACCOUNT
|
|
MENUITEM "&View Log", FSIDM_VIEW_LOG
|
|
#if DBG==1
|
|
MENUITEM "&About Task Scheduler", FSIDM_DBG_BUILD_NUM
|
|
#endif
|
|
END
|
|
END
|
|
END
|
|
|
|
POPUP_JOB_TEMPLATE MENUEX DISCARDABLE
|
|
BEGIN
|
|
POPUP ""
|
|
BEGIN
|
|
MENUITEM "&Open", CMIDM_OPEN
|
|
END
|
|
END
|
|
|
|
POPUP_JOB_VERBS_ONLY MENUEX DISCARDABLE
|
|
BEGIN
|
|
POPUP ""
|
|
BEGIN
|
|
MENUITEM "R&un", CMIDM_RUN
|
|
MENUITEM "&End Scheduled Task", CMIDM_ABORT
|
|
END
|
|
END
|
|
|
|
POPUP_JOB MENUEX DISCARDABLE
|
|
BEGIN
|
|
POPUP ""
|
|
BEGIN
|
|
MENUITEM "R&un", CMIDM_RUN
|
|
MENUITEM "&End Task", CMIDM_ABORT
|
|
MENUITEM "", -1, MFT_SEPARATOR
|
|
MENUITEM "Cu&t", CMIDM_CUT
|
|
MENUITEM "&Copy", CMIDM_COPY
|
|
MENUITEM "", -1, MFT_SEPARATOR
|
|
MENUITEM "&Delete", CMIDM_DELETE
|
|
MENUITEM "Rena&me", CMIDM_RENAME
|
|
MENUITEM "", -1, MFT_SEPARATOR
|
|
MENUITEM "P&roperties", CMIDM_PROPERTIES
|
|
END
|
|
END
|
|
|
|
|
|
POPUP_JOBSBG_MERGE MENUEX DISCARDABLE
|
|
BEGIN
|
|
POPUP "&File", FCIDM_MENU_FILE
|
|
BEGIN
|
|
POPUP "Ne&w", FSIDM_MENU_NEW
|
|
BEGIN
|
|
MENUITEM "&Scheduled Task", FSIDM_NEWJOB
|
|
END
|
|
END
|
|
END
|
|
|
|
|
|
POPUP_JOBSBG_POPUPMERGE MENUEX DISCARDABLE
|
|
BEGIN
|
|
POPUP "Arrange &Icons", SFVIDM_MENU_ARRANGE
|
|
BEGIN
|
|
MENUITEM "by &Name", FSIDM_SORTBYNAME
|
|
MENUITEM "by Ne&xt Run Time", FSIDM_SORTBYNEXTRUNTIME
|
|
MENUITEM "by &Last Run Time", FSIDM_SORTBYLASTRUNTIME
|
|
MENUITEM "by Last &Result", FSIDM_SORTBYLASTEXITCODE
|
|
MENUITEM "by &Schedule", FSIDM_SORTBYSCHEDULE
|
|
MENUITEM "by &Creator", FSIDM_SORTBYCREATOR
|
|
END
|
|
MENUITEM "&Paste", CMIDM_PASTE
|
|
END
|
|
|
|
POPUP_JOBS_MAIN_POPUPMERGE MENUEX DISCARDABLE
|
|
BEGIN
|
|
POPUP "Arrange &Icons", SFVIDM_MENU_ARRANGE
|
|
BEGIN
|
|
MENUITEM "by &Name", FSIDM_SORTBYNAME
|
|
MENUITEM "by Ne&xt Run Time", FSIDM_SORTBYNEXTRUNTIME
|
|
MENUITEM "by &Last Run Time", FSIDM_SORTBYLASTRUNTIME
|
|
MENUITEM "by Last &Result", FSIDM_SORTBYLASTEXITCODE
|
|
MENUITEM "by &Schedule", FSIDM_SORTBYSCHEDULE
|
|
MENUITEM "by &Creator", FSIDM_SORTBYCREATOR
|
|
END
|
|
MENUITEM "&Paste", CMIDM_PASTE
|
|
END
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Dialogs
|
|
//
|
|
|
|
IDD_AT_ACCOUNT_DLG DIALOG DISCARDABLE 0, 0, 186, 111
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "AT Service Account Configuration"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
CONTROL "&System Account",IDD_AT_USE_SYSTEM,"Button",
|
|
BS_AUTORADIOBUTTON,10,30,68,10
|
|
CONTROL "&This Account:",IDD_AT_USE_CUSTOM,"Button",
|
|
BS_AUTORADIOBUTTON,10,51,60,10
|
|
EDITTEXT IDD_AT_CUSTOM_ACCT_NAME,70,50,105,12,ES_AUTOHSCROLL
|
|
LTEXT "&Password:",IDD_AT_PWD_TXT,21,68,40,8,NOT WS_GROUP
|
|
EDITTEXT IDD_AT_PASSWORD,70,67,105,12,ES_PASSWORD |
|
|
ES_AUTOHSCROLL
|
|
LTEXT "&Confirm Password:",IDD_AT_CONFIRM_TXT,21,82,40,16,
|
|
NOT WS_GROUP
|
|
EDITTEXT IDD_AT_CONFIRM_PASSWORD,70,84,105,12,ES_PASSWORD |
|
|
ES_AUTOHSCROLL
|
|
DEFPUSHBUTTON "OK",IDOK,125,5,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,125,22,50,14
|
|
END
|
|
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Strings
|
|
//
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_NAME "Name"
|
|
IDS_NEXTRUNTIME "Next Run Time"
|
|
IDS_LASTRUNTIME "Last Run Time"
|
|
IDS_LASTEXITCODE "Last Result"
|
|
IDS_SCHEDULE "Schedule"
|
|
IDS_STATUS "Status"
|
|
IDS_CREATOR "Creator"
|
|
IDS_MI_STOP "&Stop Using Task Scheduler"
|
|
IDS_MI_START "&Start Using Task Scheduler"
|
|
IDS_MI_PAUSE "&Pause Task Scheduler"
|
|
IDS_MI_CONTINUE "&Continue Task Scheduler"
|
|
END
|
|
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_MH_SORTBYNAME "Sorts items alphabetically by Name"
|
|
IDS_MH_SORTBYNEXTRUNTIME "Sorts by Next Run Time"
|
|
IDS_MH_SORTBYLASTRUNTIME "Sorts by Last Run Time"
|
|
IDS_MH_SORTBYLASTEXITCODE "Sorts by Last Exit Code"
|
|
IDS_MH_SORTBYSCHEDULE "Sorts items alphabetically by Schedule"
|
|
IDS_MH_SORTBYCREATOR "Sorts items alphabetically by Creator"
|
|
END
|
|
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_MH_MENU_NEW "Contains commands for creating new items"
|
|
IDS_MH_NEWJOB "Creates a new empty task"
|
|
IDS_MH_RUN "Activates the task "
|
|
IDS_MH_ABORT "Terminates the task"
|
|
IDS_MH_CUT "Removes the selected items and copies them onto the Clipboard"
|
|
IDS_MH_COPY "Copies the selected items to the Clipboard. Use Paste to put them in the new location."
|
|
IDS_MH_PASTE "Inserts the items you have copied or cut into the selected location."
|
|
IDS_MH_DELETE "Deletes the selected items."
|
|
IDS_MH_RENAME "Renames the selected item."
|
|
IDS_MH_PROPERTIES "Displays the properties of the selected items."
|
|
IDS_MH_OPEN "Opens the Create New Task Wizard."
|
|
|
|
IDS_MH_MENU_ADVANCED "Displays advanced menu options for Task Scheduler."
|
|
IDS_MH_STOP_SCHED "Quits the Task Scheduler service. None of the scheduled programs will be run."
|
|
IDS_MH_START_SCHED "Starts the Task Scheduler service so that scheduled programs will be run."
|
|
IDS_MH_PAUSE_SCHED "When paused, temporarily prevents Task Scheduler from running all scheduled programs."
|
|
IDS_MH_CONTINUE_SCHED "When continued, Task Scheduler will run all scheduled programs."
|
|
IDS_MH_NOTIFY_OF_MISSED "When checked, Task Scheduler will notify you of tasks that did not run."
|
|
IDS_MH_AT_ACCOUNT "Sets account information for all AT Service tasks."
|
|
IDS_MH_VIEW_LOG "Displays a log of the programs that Task Scheduler has run recently."
|
|
IDS_MH_ABOUT "Displays Task Scheduler's version number."
|
|
|
|
IDS_BUILD_NUM "Build version 1.00"
|
|
END
|
|
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IDS_JOB_PSH_CAPTION "Task"
|
|
IDS_NOPAGE "The properties for this item are not available."
|
|
IDS_JOBFOLDER "Task Folder"
|
|
IDS_RUNNING "Running"
|
|
IDS_MISSED "Missed"
|
|
IDS_START_FAILED "Could not start"
|
|
IDS_JOB_NOT_SCHEDULED "Task not scheduled"
|
|
IDS_NEVER "Never"
|
|
IDS_DISABLED "Disabled"
|
|
IDS_ON_STARTUP "At system startup"
|
|
IDS_ON_LOGON "At user logon"
|
|
IDS_TRIGGER_DISABLED "Trigger disabled"
|
|
IDS_MULTIPLE_TRIGGERS "Multiple schedule times"
|
|
IDS_COPY_OF "Copy of "
|
|
IDS_BAD_ACCT "The scheduled task did not run because an incorrect password or user name was entered."
|
|
IDS_REST_ACCT "The scheduled task did not run because no user account password was entered."
|
|
|
|
|
|
IDS_START_SERVICE "The service is currently stopped. No tasks will run unless the service is started. Do you want to start the service now?"
|
|
IDS_CONTINUE_SERVICE "The service is currently paused. No tasks will run unless the service is continued. Do you want to continue the service now?"
|
|
IDS_START_PENDING "The service is starting. Please wait."
|
|
END
|
|
|
|
STRINGTABLE
|
|
BEGIN
|
|
IERR_EXT_NOT_VALID "%s is not a valid task/queue object extension"
|
|
IERR_INVALID_DATA "%s has invalid data"
|
|
|
|
IERR_CANT_FIND_VIEWER "Can not find log viewer %s. Please ensure the viewer name and path are correct."
|
|
|
|
IERR_GETSVCSTATE "Unable to query service status."
|
|
IERR_STOPSVC "Unable to stop the service."
|
|
IERR_PAUSESVC "Unable to pause the service."
|
|
IERR_CONTINUESVC "Unable to continue the service"
|
|
IERR_SCHEDSVC "The Schedule service seems to be hung. Do you want to retry?"
|
|
IERR_STARTSVC "Unable to start the service"
|
|
IERR_GETATACCOUNT "Unable to determine AT Service account information"
|
|
END
|