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.

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