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.

262 lines
9.3 KiB

  1. #include <windows.h>
  2. #include <commctrl.h>
  3. #include <shlobj.h>
  4. #include "resource.h"
  5. #include "..\schedui\rc.h"
  6. /////////////////////////////////////////////////////////////////////////////
  7. //
  8. // Bitmaps & icons
  9. //
  10. BMP_JOBSTATES BITMAP "..\folderui\states.bmp"
  11. BMP_JOBSTATEL BITMAP "..\folderui\statel.bmp"
  12. IDI_GENERIC ICON DISCARDABLE "..\folderui\generic.ICO"
  13. IDI_TEMPLATE ICON DISCARDABLE "..\\folderui\\template.ico"
  14. /////////////////////////////////////////////////////////////////////////////
  15. //
  16. // Menus
  17. //
  18. POPUP_RBUTTON_MOVE MENU DISCARDABLE
  19. BEGIN
  20. POPUP ""
  21. BEGIN
  22. MENUITEM "&Move Here", DDIDM_MOVE
  23. MENUITEM "&Copy Here", DDIDM_COPY
  24. MENUITEM SEPARATOR
  25. MENUITEM "Cancel", 0
  26. END
  27. END
  28. POPUP_ADVANCED MENUEX DISCARDABLE
  29. BEGIN
  30. POPUP ""
  31. BEGIN
  32. POPUP "Adva&nced", FSIDM_MENU_ADVANCED
  33. BEGIN
  34. MENUITEM "&Stop Using Task Scheduler", FSIDM_STOP_SCHED
  35. MENUITEM "&Pause Task Scheduler", FSIDM_PAUSE_SCHED
  36. MENUITEM "&Notify Me of Missed Tasks", FSIDM_NOTIFY_MISSED
  37. #if !defined(_CHICAGO_)
  38. MENUITEM "A&T Service Account", FSIDM_AT_ACCOUNT
  39. #endif // !defined(_CHICAGO_)
  40. MENUITEM "&View Log", FSIDM_VIEW_LOG
  41. #if DBG==1
  42. MENUITEM "&About Task Scheduler", FSIDM_DBG_BUILD_NUM
  43. #endif
  44. END
  45. END
  46. END
  47. POPUP_JOB_TEMPLATE MENUEX DISCARDABLE
  48. BEGIN
  49. POPUP ""
  50. BEGIN
  51. MENUITEM "&Open", CMIDM_OPEN
  52. END
  53. END
  54. POPUP_JOB_VERBS_ONLY MENUEX DISCARDABLE
  55. BEGIN
  56. POPUP ""
  57. BEGIN
  58. MENUITEM "R&un", CMIDM_RUN
  59. MENUITEM "&End Scheduled Task", CMIDM_ABORT
  60. END
  61. END
  62. POPUP_JOB MENUEX DISCARDABLE
  63. BEGIN
  64. POPUP ""
  65. BEGIN
  66. MENUITEM "R&un", CMIDM_RUN
  67. MENUITEM "&End Task", CMIDM_ABORT
  68. MENUITEM "", -1, MFT_SEPARATOR
  69. MENUITEM "Cu&t", CMIDM_CUT
  70. MENUITEM "&Copy", CMIDM_COPY
  71. MENUITEM "", -1, MFT_SEPARATOR
  72. MENUITEM "&Delete", CMIDM_DELETE
  73. MENUITEM "Rena&me", CMIDM_RENAME
  74. MENUITEM "", -1, MFT_SEPARATOR
  75. MENUITEM "P&roperties", CMIDM_PROPERTIES
  76. END
  77. END
  78. POPUP_JOBSBG_MERGE MENUEX DISCARDABLE
  79. BEGIN
  80. POPUP "&File", FCIDM_MENU_FILE
  81. BEGIN
  82. POPUP "Ne&w", FSIDM_MENU_NEW
  83. BEGIN
  84. MENUITEM "&Scheduled Task", FSIDM_NEWJOB
  85. END
  86. END
  87. END
  88. POPUP_JOBSBG_POPUPMERGE MENUEX DISCARDABLE
  89. BEGIN
  90. POPUP "Arrange &Icons", SFVIDM_MENU_ARRANGE
  91. BEGIN
  92. MENUITEM "by &Name", FSIDM_SORTBYNAME
  93. MENUITEM "by Ne&xt Run Time", FSIDM_SORTBYNEXTRUNTIME
  94. MENUITEM "by &Last Run Time", FSIDM_SORTBYLASTRUNTIME
  95. MENUITEM "by Last &Result", FSIDM_SORTBYLASTEXITCODE
  96. MENUITEM "by &Schedule", FSIDM_SORTBYSCHEDULE
  97. MENUITEM "by &Creator", FSIDM_SORTBYCREATOR
  98. END
  99. MENUITEM "&Paste", CMIDM_PASTE
  100. END
  101. POPUP_JOBS_MAIN_POPUPMERGE MENUEX DISCARDABLE
  102. BEGIN
  103. POPUP "Arrange &Icons", SFVIDM_MENU_ARRANGE
  104. BEGIN
  105. MENUITEM "by &Name", FSIDM_SORTBYNAME
  106. MENUITEM "by Ne&xt Run Time", FSIDM_SORTBYNEXTRUNTIME
  107. MENUITEM "by &Last Run Time", FSIDM_SORTBYLASTRUNTIME
  108. MENUITEM "by Last &Result", FSIDM_SORTBYLASTEXITCODE
  109. MENUITEM "by &Schedule", FSIDM_SORTBYSCHEDULE
  110. MENUITEM "by &Creator", FSIDM_SORTBYCREATOR
  111. END
  112. MENUITEM "&Paste", CMIDM_PASTE
  113. END
  114. /////////////////////////////////////////////////////////////////////////////
  115. //
  116. // Dialogs
  117. //
  118. IDD_AT_ACCOUNT_DLG DIALOG DISCARDABLE 0, 0, 186, 111
  119. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  120. CAPTION "AT Service Account Configuration"
  121. FONT 8, "MS Shell Dlg"
  122. BEGIN
  123. CONTROL "&System Account",IDD_AT_USE_SYSTEM,"Button",
  124. BS_AUTORADIOBUTTON,10,30,68,10
  125. CONTROL "&This Account:",IDD_AT_USE_CUSTOM,"Button",
  126. BS_AUTORADIOBUTTON,10,51,60,10
  127. EDITTEXT IDD_AT_CUSTOM_ACCT_NAME,70,50,105,12,ES_AUTOHSCROLL
  128. LTEXT "&Password:",IDD_AT_PWD_TXT,21,68,40,8,NOT WS_GROUP
  129. EDITTEXT IDD_AT_PASSWORD,70,67,105,12,ES_PASSWORD |
  130. ES_AUTOHSCROLL
  131. LTEXT "&Confirm Password:",IDD_AT_CONFIRM_TXT,21,82,40,16,
  132. NOT WS_GROUP
  133. EDITTEXT IDD_AT_CONFIRM_PASSWORD,70,84,105,12,ES_PASSWORD |
  134. ES_AUTOHSCROLL
  135. DEFPUSHBUTTON "OK",IDOK,125,5,50,14
  136. PUSHBUTTON "Cancel",IDCANCEL,125,22,50,14
  137. END
  138. /////////////////////////////////////////////////////////////////////////////
  139. //
  140. // Strings
  141. //
  142. STRINGTABLE
  143. BEGIN
  144. IDS_NAME "Name"
  145. IDS_NEXTRUNTIME "Next Run Time"
  146. IDS_LASTRUNTIME "Last Run Time"
  147. IDS_LASTEXITCODE "Last Result"
  148. IDS_SCHEDULE "Schedule"
  149. IDS_STATUS "Status"
  150. IDS_CREATOR "Creator"
  151. IDS_MI_STOP "&Stop Using Task Scheduler"
  152. IDS_MI_START "&Start Using Task Scheduler"
  153. IDS_MI_PAUSE "&Pause Task Scheduler"
  154. IDS_MI_CONTINUE "&Continue Task Scheduler"
  155. END
  156. STRINGTABLE
  157. BEGIN
  158. IDS_MH_SORTBYNAME "Sorts items alphabetically by Name"
  159. IDS_MH_SORTBYNEXTRUNTIME "Sorts by Next Run Time"
  160. IDS_MH_SORTBYLASTRUNTIME "Sorts by Last Run Time"
  161. IDS_MH_SORTBYLASTEXITCODE "Sorts by Last Exit Code"
  162. IDS_MH_SORTBYSCHEDULE "Sorts items alphabetically by Schedule"
  163. IDS_MH_SORTBYCREATOR "Sorts items alphabetically by Creator"
  164. END
  165. STRINGTABLE
  166. BEGIN
  167. IDS_MH_MENU_NEW "Contains commands for creating new items"
  168. IDS_MH_NEWJOB "Creates a new empty task"
  169. IDS_MH_RUN "Activates the task "
  170. IDS_MH_ABORT "Terminates the task"
  171. IDS_MH_CUT "Removes the selected items and copies them onto the Clipboard"
  172. IDS_MH_COPY "Copies the selected items to the Clipboard. Use Paste to put them in the new location."
  173. IDS_MH_PASTE "Inserts the items you have copied or cut into the selected location."
  174. IDS_MH_DELETE "Deletes the selected items."
  175. IDS_MH_RENAME "Renames the selected item."
  176. IDS_MH_PROPERTIES "Displays the properties of the selected items."
  177. IDS_MH_OPEN "Opens the Create New Task Wizard."
  178. IDS_MH_MENU_ADVANCED "Displays advanced menu options for Task Scheduler."
  179. IDS_MH_STOP_SCHED "Quits the Task Scheduler service. None of the scheduled programs will be run."
  180. IDS_MH_START_SCHED "Starts the Task Scheduler service so that scheduled programs will be run."
  181. IDS_MH_PAUSE_SCHED "When paused, temporarily prevents Task Scheduler from running all scheduled programs."
  182. IDS_MH_CONTINUE_SCHED "When continued, Task Scheduler will run all scheduled programs."
  183. IDS_MH_NOTIFY_OF_MISSED "When checked, Task Scheduler will notify you of tasks that did not run."
  184. IDS_MH_AT_ACCOUNT "Sets account information for all AT Service tasks."
  185. IDS_MH_VIEW_LOG "Displays a log of the programs that Task Scheduler has run recently."
  186. IDS_MH_ABOUT "Displays Task Scheduler's version number."
  187. IDS_BUILD_NUM "Build version 1.00"
  188. END
  189. STRINGTABLE
  190. BEGIN
  191. IDS_JOB_PSH_CAPTION "Task"
  192. IDS_NOPAGE "The properties for this item are not available."
  193. IDS_JOBFOLDER "Task Folder"
  194. IDS_RUNNING "Running"
  195. IDS_MISSED "Missed"
  196. IDS_START_FAILED "Could not start"
  197. IDS_JOB_NOT_SCHEDULED "Task not scheduled"
  198. IDS_NEVER "Never"
  199. IDS_DISABLED "Disabled"
  200. IDS_ON_STARTUP "At system startup"
  201. IDS_ON_LOGON "At user logon"
  202. IDS_TRIGGER_DISABLED "Trigger disabled"
  203. IDS_MULTIPLE_TRIGGERS "Multiple schedule times"
  204. IDS_COPY_OF "Copy of "
  205. IDS_BAD_ACCT "The scheduled task did not run because an incorrect password or user name was entered."
  206. IDS_REST_ACCT "The scheduled task did not run because no user account password was entered."
  207. 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?"
  208. 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?"
  209. IDS_START_PENDING "The service is starting. Please wait."
  210. END
  211. STRINGTABLE
  212. BEGIN
  213. IERR_EXT_NOT_VALID "%s is not a valid task/queue object extension"
  214. IERR_INVALID_DATA "%s has invalid data"
  215. IERR_CANT_FIND_VIEWER "Can not find log viewer %s. Please ensure the viewer name and path are correct."
  216. IERR_GETSVCSTATE "Unable to query service status."
  217. IERR_STOPSVC "Unable to stop the service."
  218. IERR_PAUSESVC "Unable to pause the service."
  219. IERR_CONTINUESVC "Unable to continue the service"
  220. IERR_SCHEDSVC "The Schedule service seems to be hung. Do you want to retry?"
  221. IERR_STARTSVC "Unable to start the service"
  222. IERR_GETATACCOUNT "Unable to determine AT Service account information"
  223. END