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.

373 lines
18 KiB

  1. #include "..\inc\resource.h"
  2. #include "rc.h"
  3. LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
  4. /////////////////////////////////////////////////////////////////////////////
  5. //
  6. // Dialogs
  7. //
  8. general_page DIALOG DISCARDABLE 0, 0, 253, 218
  9. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  10. CAPTION "Task"
  11. FONT 8, "MS Shell Dlg"
  12. BEGIN
  13. ICON "",idc_icon,7,7,18,20
  14. LTEXT "task name",lbl_job_name,37,11,178,9
  15. CONTROL "",-1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,34,239,1
  16. LTEXT "&Run:",lbl_app_name,7,45,44,9
  17. EDITTEXT txt_app_name,61,42,186,14,ES_AUTOHSCROLL
  18. PUSHBUTTON "&Browse...",btn_browse,193,60,53,14
  19. LTEXT "S&tart in:",lbl_workingdir,7,86,41,9
  20. EDITTEXT txt_workingdir,61,82,186,14,ES_AUTOHSCROLL
  21. LTEXT "&Comments:",lbl_comments,7,102,36,8
  22. EDITTEXT txt_comments,61,100,186,32,ES_MULTILINE | ES_AUTOHSCROLL |
  23. ES_WANTRETURN
  24. CONTROL "",-1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,139,239,1
  25. LTEXT "R&un as:",lbl_run_as,7,150,45,9
  26. EDITTEXT txt_run_as,61,147,93,14,ES_AUTOHSCROLL
  27. PUSHBUTTON "&Set password...",btn_passwd,163,147,83,14,WS_DISABLED
  28. CONTROL "&Enabled (scheduled task runs at specified time)",
  29. chk_enable_job,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,7,
  30. 203,190,9
  31. END
  32. set_passwd_dlg DIALOG DISCARDABLE 0, 0, 219, 82
  33. STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  34. CAPTION "Set Password"
  35. FONT 8, "MS Shell Dlg"
  36. BEGIN
  37. LTEXT "&Password:",lbl_sp_passwd,9,16,49,8
  38. EDITTEXT edt_sp_passwd,94,10,111,15,ES_PASSWORD | ES_AUTOHSCROLL |
  39. WS_GROUP | WS_TABSTOP
  40. LTEXT "&Confirm password:",lbl_sp_cfrmpasswd,9,34,58,8
  41. EDITTEXT edt_sp_cfrmpasswd,94,30,111,14,ES_PASSWORD |
  42. ES_AUTOHSCROLL
  43. DEFPUSHBUTTON "OK",IDOK,47,58,50,14
  44. PUSHBUTTON "Cancel",IDCANCEL,122,58,50,14
  45. END
  46. set_account_info_dlg DIALOG DISCARDABLE 0, 0, 236, 98
  47. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
  48. CAPTION "Set Account Information"
  49. FONT 8, "MS Shell Dlg"
  50. BEGIN
  51. LTEXT "R&un as:",lbl_sa_run_as,9,13,45,9
  52. EDITTEXT txt_sa_run_as,113,10,110,14,ES_AUTOHSCROLL
  53. LTEXT "&Password:",lbl_sa_passwd,9,36,49,8
  54. EDITTEXT edt_sa_passwd,113,32,111,15,ES_PASSWORD | ES_AUTOHSCROLL |
  55. WS_GROUP | WS_TABSTOP
  56. LTEXT "&Confirm password:",lbl_sa_cfrmpasswd,9,53,58,8
  57. EDITTEXT edt_sa_cfrmpasswd,113,50,111,14,ES_PASSWORD |
  58. ES_AUTOHSCROLL
  59. DEFPUSHBUTTON "OK",IDOK,52,75,50,14
  60. PUSHBUTTON "Cancel",IDCANCEL,133,75,50,14
  61. END
  62. schedule_page DIALOG DISCARDABLE 0, 0, 253, 218
  63. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  64. CAPTION "Schedule"
  65. FONT 8, "MS Shell Dlg"
  66. BEGIN
  67. ICON "",idc_icon,7,7,20,20
  68. LTEXT "Text",txt_trigger,37,11,205,33
  69. COMBOBOX cbx_triggers,7,9,239,66,CBS_DROPDOWNLIST |
  70. WS_VSCROLL | WS_TABSTOP
  71. PUSHBUTTON "&New",btn_new,140,26,50,14
  72. PUSHBUTTON "&Delete",btn_delete,195,26,50,14
  73. CONTROL "",-1,"Static",SS_BLACKFRAME | SS_SUNKEN,7,49,239,1
  74. LTEXT "&Schedule Task:",-1,7,58,65,10
  75. COMBOBOX cbx_trigger_type,7,69,76,70,CBS_DROPDOWNLIST |
  76. WS_VSCROLL | WS_TABSTOP
  77. LTEXT "S&tart time:",-1,88,58,57,10
  78. CONTROL "",dp_start_time,DATETIMEPICK_CLASS,WS_TABSTOP |
  79. WS_VISIBLE | WS_CHILD | DTS_TIMEFORMAT,88,69,68,14
  80. PUSHBUTTON "Ad&vanced...",btn_advanced,161,68,52,14
  81. GROUPBOX "Schedule Task Daily",grp_daily,7,89,239,39
  82. LTEXT "&Every",daily_lbl_every,17,106,22,9
  83. EDITTEXT daily_txt_every,42,104,44,14,ES_AUTOHSCROLL|ES_NUMBER
  84. CONTROL "",daily_spin_every,"msctls_updown32",UDS_SETBUDDYINT |
  85. UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
  86. UDS_NOTHOUSANDS,77,104,11,14
  87. LTEXT "day(s)",daily_lbl_days,92,106,22,9
  88. GROUPBOX "Schedule Task Weekly",grp_weekly,257,89,239,84
  89. LTEXT "&Every",weekly_lbl_every,263,106,22,9
  90. EDITTEXT weekly_txt_every,287,104,42,14,ES_AUTOHSCROLL |
  91. ES_NUMBER
  92. CONTROL "Spin1",weekly_spin_every,"msctls_updown32",
  93. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  94. UDS_ARROWKEYS | UDS_NOTHOUSANDS,318,103,11,14
  95. LTEXT "week(s) on:",weekly_lbl_weeks_on,337,106,44,9
  96. CONTROL "Mon",chk_mon,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  97. 106,48,9
  98. CONTROL "Tue",chk_tue,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  99. 118,48,9
  100. CONTROL "Wed",chk_wed,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  101. 130,48,9
  102. CONTROL "Thu",chk_thu,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  103. 142,48,9
  104. CONTROL "Fri",chk_fri,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,384,
  105. 154,48,9
  106. CONTROL "Sat",chk_sat,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,438,
  107. 106,48,9
  108. CONTROL "Sun",chk_sun,"Button",BS_AUTOCHECKBOX | WS_TABSTOP,438,
  109. 118,48,9
  110. GROUPBOX "Schedule Task Monthly ",grp_monthly,507,89,239,81
  111. CONTROL "Da&y",md_rb,"Button",BS_AUTORADIOBUTTON | WS_TABSTOP |
  112. WS_GROUP, 513,106,28,10
  113. CONTROL "Th&e",dow_rb,"Button",BS_AUTORADIOBUTTON, 513,124,28,10
  114. EDITTEXT md_txt,547,104,30,14,ES_AUTOHSCROLL | ES_NUMBER | WS_GROUP
  115. CONTROL "Spin1",md_spin,"msctls_updown32",UDS_SETBUDDYINT |
  116. UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
  117. UDS_NOTHOUSANDS,569,104,11,12
  118. LTEXT "of the month(s)",md_lbl,580,107,70,10
  119. COMBOBOX dow_cbx_week,547,123,52,66,CBS_DROPDOWNLIST | WS_VSCROLL |
  120. WS_TABSTOP
  121. COMBOBOX dow_cbx_day,604,123,69,88,CBS_DROPDOWNLIST | WS_VSCROLL |
  122. WS_TABSTOP
  123. LTEXT "of the month(s)",dow_lbl,676,125,54,10
  124. PUSHBUTTON "Select &Months",btn_sel_months,513,147,60,14
  125. GROUPBOX "Schedule Task Once",grp_once,757,89,239,41
  126. LTEXT "&Run on:",once_lbl_run_on,769,105,45,9
  127. CONTROL "",once_dp_date,DATETIMEPICK_CLASS,WS_TABSTOP |
  128. WS_VISIBLE | WS_CHILD | DTS_LONGDATEFORMAT,849,104,130,14
  129. GROUPBOX "Schedule Task When Idle",grp_idle,1007,89,239,39
  130. LTEXT "&When the computer has been idle for:",idle_lbl_when,1017,106,122,9
  131. EDITTEXT sch_txt_idle_min,1146,104,30,14,ES_AUTOHSCROLL|ES_NUMBER
  132. CONTROL "",sch_spin_idle_min,"msctls_updown32",UDS_SETBUDDYINT |
  133. UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
  134. UDS_NOTHOUSANDS,1144,104,11,14
  135. LTEXT "minute(s)",idle_lbl_mins,1184,106,34,9
  136. CONTROL "Show m&ultiple schedules.",
  137. chk_show_multiple_scheds,"Button",BS_AUTOCHECKBOX |
  138. BS_TOP | BS_MULTILINE | WS_GROUP | WS_TABSTOP,7,203,
  139. 231,18
  140. END
  141. select_month_dlg DIALOG DISCARDABLE 0, 0, 251, 153
  142. STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
  143. CAPTION "Select Months"
  144. FONT 8, "MS Shell Dlg"
  145. BEGIN
  146. CONTROL "&January",chk_jan,"Button",BS_AUTOCHECKBOX |
  147. WS_GROUP | WS_TABSTOP,21,26,41,10
  148. CONTROL "&February",chk_feb,"Button",BS_AUTOCHECKBOX |
  149. WS_TABSTOP,21,43,43,10
  150. CONTROL "&March",chk_mar,"Button",BS_AUTOCHECKBOX |
  151. WS_TABSTOP,21,60,36,10
  152. CONTROL "&April",chk_apr,"Button",BS_AUTOCHECKBOX |
  153. WS_TABSTOP,21,77,29,10
  154. CONTROL "Ma&y",chk_may,"Button",BS_AUTOCHECKBOX |
  155. WS_TABSTOP,21,94,29,10
  156. CONTROL "J&une",chk_jun,"Button",BS_AUTOCHECKBOX |
  157. WS_TABSTOP,21,111,31,10
  158. CONTROL "Ju&ly",chk_jul,"Button",BS_AUTOCHECKBOX |
  159. WS_TABSTOP,149,26,28,10
  160. CONTROL "Au&gust",chk_aug,"Button",BS_AUTOCHECKBOX |
  161. WS_TABSTOP,149,43,38,10
  162. CONTROL "&September",chk_sep,"Button",BS_AUTOCHECKBOX |
  163. WS_TABSTOP,149,60,50,10
  164. CONTROL "&October",chk_oct,"Button",BS_AUTOCHECKBOX |
  165. WS_TABSTOP,149,77,41,10
  166. CONTROL "&November",chk_nov,"Button",BS_AUTOCHECKBOX |
  167. WS_TABSTOP,149,94,49,10
  168. CONTROL "&December",chk_dec,"Button",BS_AUTOCHECKBOX |
  169. WS_TABSTOP,149,111,49,10
  170. DEFPUSHBUTTON "OK",IDOK,57,132,50,14,WS_GROUP
  171. PUSHBUTTON "Cancel",IDCANCEL,129,132,50,14
  172. LTEXT "Please select the months you would like the task to run.",
  173. lbl_sel_months,7,8,176,8
  174. END
  175. settings_page DIALOG DISCARDABLE 0, 0, 253, 218
  176. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  177. CAPTION "Settings"
  178. FONT 8, "MS Shell Dlg"
  179. BEGIN
  180. GROUPBOX "Scheduled Task Completed",grp_task_completed,8,6,238,44
  181. CONTROL "&Delete the task if it is not scheduled to run again.",
  182. chk_delete_when_done,"Button",BS_AUTOCHECKBOX | WS_GROUP |
  183. WS_TABSTOP,16,17,224,9
  184. CONTROL "S&top the task if it runs for:",chk_stop_after,"Button",
  185. BS_AUTOCHECKBOX | WS_TABSTOP,16,33,91,10
  186. LTEXT "&hour(s)",lbl_hours,149,33,24,9
  187. EDITTEXT txt_stop_after_hr,109,31,37,13,ES_AUTOHSCROLL |
  188. ES_NUMBER
  189. CONTROL "Spin1",spin_stop_after_hr,"msctls_updown32",
  190. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  191. UDS_ARROWKEYS | UDS_NOTHOUSANDS,135,32,11,11
  192. LTEXT "&minute(s).",lbl_min,212,33,30,9
  193. EDITTEXT txt_stop_after_min,172,31,37,13,ES_AUTOHSCROLL |
  194. ES_NUMBER
  195. CONTROL "Spin1",spin_stop_after_min,"msctls_updown32",
  196. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  197. UDS_ARROWKEYS | UDS_NOTHOUSANDS,198,32,11,11
  198. GROUPBOX "Idle Time",grp_idle_time,8,56,238,89
  199. CONTROL "&Only start the task if the computer has been idle for at least:",
  200. chk_start_on_idle,"Button",BS_AUTOCHECKBOX | WS_GROUP |
  201. WS_TABSTOP,16,66,207,9
  202. LTEXT "m&inute(s)",txt_idle_minutes,72,82,34,9
  203. EDITTEXT txt_idle_min,31,81,37,13,ES_AUTOHSCROLL | ES_NUMBER
  204. CONTROL "Spin1",spin_idle_min,"msctls_updown32",UDS_SETBUDDYINT |
  205. UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS |
  206. UDS_NOTHOUSANDS,57,82,11,11
  207. LTEXT "If the computer has not been idle that long, retry for up to:",
  208. lbl_idle_deadline1,31,99,211,8
  209. LTEXT "mi&nute(s)",lbl_idle_deadline2,72,111,34,9
  210. EDITTEXT txt_idle_deadline,31,111,37,13,ES_AUTOHSCROLL |
  211. ES_NUMBER
  212. CONTROL "Spin2",spin_idle_deadline,"msctls_updown32",
  213. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  214. UDS_ARROWKEYS | UDS_NOTHOUSANDS,57,111,11,11
  215. CONTROL "Stop the task if the computer &ceases to be idle.",
  216. chk_stop_if_not_idle,"Button",BS_AUTOCHECKBOX |
  217. WS_TABSTOP,16,127,207,9
  218. GROUPBOX "Power Management",grp_power_management,8,151,238,62
  219. CONTROL "Don't start the task if the computer is running on &batteries.",
  220. chk_dont_start_if_on_batteries,"Button",BS_AUTOCHECKBOX |
  221. WS_GROUP | WS_TABSTOP,16,163,220,9
  222. CONTROL "Stop the task if batter&y mode begins.",
  223. chk_kill_if_going_on_batteries,"Button",BS_AUTOCHECKBOX |
  224. WS_TABSTOP,16,179,220,9
  225. CONTROL "&Wake the computer to run this task.",
  226. chk_system_required,"Button",BS_AUTOCHECKBOX |
  227. WS_TABSTOP,16,195,220,9
  228. END
  229. dlg_advanced DIALOG DISCARDABLE 0, 0, 241, 165
  230. STYLE DS_MODALFRAME | DS_CONTEXTHELP | WS_POPUP | WS_CAPTION | WS_SYSMENU
  231. CAPTION "Advanced Schedule Options"
  232. FONT 8, "MS Shell Dlg"
  233. BEGIN
  234. LTEXT "&Start Date:",lbl_start_date,21,11,51,10
  235. CONTROL "",dp_start_date,DATETIMEPICK_CLASS,WS_TABSTOP |
  236. WS_VISIBLE | WS_CHILD | DTS_LONGDATEFORMAT,102,10,130,14
  237. CONTROL "&End Date:",chk_end_date,"Button",BS_AUTOCHECKBOX |
  238. WS_TABSTOP,9,28,51,10
  239. CONTROL "",dp_end_date,DATETIMEPICK_CLASS,WS_TABSTOP |
  240. WS_VISIBLE | WS_CHILD | DTS_LONGDATEFORMAT,102,28,130,14
  241. GROUPBOX "",grp_repeat_until,9,51,223,86
  242. CONTROL "&Repeat task",chk_repeat_task,"Button",BS_AUTOCHECKBOX |
  243. WS_TABSTOP,17,50,56,11
  244. LTEXT "E&very:",lbl_every,19,66,21,8
  245. EDITTEXT txt_repeat_task,45,63,43,13,ES_AUTOHSCROLL | ES_NUMBER
  246. CONTROL "Spin1",spin_repeat_task,"msctls_updown32",
  247. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  248. UDS_ARROWKEYS | UDS_NOTHOUSANDS,77,63,11,11
  249. COMBOBOX cbx_time_unit,94,63,63,41,CBS_DROPDOWNLIST | WS_VSCROLL |
  250. WS_TABSTOP
  251. LTEXT "Until:",lbl_until,19,85,17,8
  252. CONTROL "&Time:",rb_end_time,"Button",BS_AUTORADIOBUTTON |
  253. WS_GROUP | WS_TABSTOP,45,84,41,11
  254. CONTROL "&Duration:",rb_end_duration,"Button",BS_AUTORADIOBUTTON,
  255. 45,101,42,11
  256. CONTROL "",dp_end_time,"SysDateTimePick32",DTS_UPDOWN | WS_GROUP |
  257. WS_TABSTOP | 0x8,94,82,65,13
  258. LTEXT "&hour(s)",lbl_hours,136,103,22,8
  259. EDITTEXT txt_end_duration_hr,94,100,39,13,ES_AUTOHSCROLL |
  260. ES_NUMBER
  261. CONTROL "Spin1",spin_end_duration_hr,"msctls_updown32",
  262. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  263. UDS_ARROWKEYS | UDS_NOTHOUSANDS,122,101,11,11
  264. LTEXT "&minute(s)",lbl_min,199,103,29,8
  265. EDITTEXT txt_end_duration_min,160,101,36,13,ES_AUTOHSCROLL |
  266. ES_NUMBER
  267. CONTROL "Spin1",spin_end_duration_min,"msctls_updown32",
  268. UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY |
  269. UDS_ARROWKEYS | UDS_NOTHOUSANDS,185,102,11,11
  270. CONTROL "If the task is still running, st&op it at this time.",
  271. chk_terminate_at_end,"Button",BS_AUTOCHECKBOX |
  272. WS_TABSTOP,45,119,169,10
  273. DEFPUSHBUTTON "OK",IDOK,130,144,50,14
  274. PUSHBUTTON "Cancel",IDCANCEL,183,144,50,14
  275. END
  276. STRINGTABLE
  277. BEGIN
  278. IDS_ONCE "Once"
  279. IDS_SUNDAY "Sunday"
  280. IDS_MONDAY "Monday"
  281. IDS_TUESDAY "Tuesday"
  282. IDS_WEDNESDAY "Wednesday"
  283. IDS_THURSDAY "Thursday"
  284. IDS_FRIDAY "Friday"
  285. IDS_SATURDAY "Saturday"
  286. IDS_EXE "exe"
  287. IDS_PROGRAMSFILTER "Programs\0*.exe;*.pif;*.com;*.bat;*.cmd\0All Files (*.*)\0*.*\0"
  288. IDS_BROWSE "Browse"
  289. IDS_AT_STARTUP "At System Startup"
  290. IDS_AT_LOGON "At Logon"
  291. IDS_NO_TRIGGERS "<Task not scheduled>"
  292. END
  293. // ** Important **
  294. //
  295. // Ensure error strings defined here do not exceed the buffer size manifest,
  296. // ERROR_STRING_BUFFER_SIZE, defined in errhdlr.cxx.
  297. //
  298. // Also, be sure to double the string size in anticipation of localization.
  299. //
  300. STRINGTABLE
  301. BEGIN
  302. IERR_ENDDATE_LT_STARTDATE "The end date must be later than the start date"
  303. IERR_DURATION_LT_INTERVAL "The duration must be greater than the repetition interval"
  304. IERR_PASSWORD "The passwords do not match. Please try again"
  305. IERR_OUT_OF_MEMORY "Insufficient memory to continue. Please close some applications and try again"
  306. IERR_INTERNAL_ERROR "An unrecoverable error has occured. Unable to continue"
  307. IERR_GENERAL_PAGE_INIT "General page initialization failed"
  308. IERR_SCHEDULE_PAGE_INIT "Schedule page initialization failed"
  309. IERR_SETTINGS_PAGE_INIT "Settings page initialization failed"
  310. IERR_INVALID_DAYILY_EVERY "The number in 'Every _ day(s)' must be at least 1"
  311. IERR_INVALID_WEEKLY_EVERY "The number in 'Every _ week(s)' must be at least 1"
  312. IERR_MONTHLY_DATE_LT0 "The day of the month cannot be less than 1"
  313. IERR_MONTHLY_DATE_GT31 "The day of the month cannot be greater than 31"
  314. IERR_MONTHLY_DATE_INVALID "The day of the month specified does not occur in any of the months specified"
  315. IERR_INVALID_WEEKLY_TASK "Invalid weekly task. Ensure one or more days are checked"
  316. IERR_INVALID_MONTHLY_TASK "Invalid monthly task. Ensure one or more months are checked"
  317. IERR_FILE_NOT_FOUND "The system cannot find the file specified"
  318. IERR_APP_NOT_FOUND "Cannot find a file named '%s'. Try using the Browse button on the Tasks page to locate the application. Application parameters may only appear in the 'Parameters' control."
  319. IERR_ACCESS_DENIED "Access is denied"
  320. // This message should match the wording of the chk_stop_after control above
  321. IERR_MAXRUNTIME "The time in 'Stop the task if it runs for _' should be greater than zero"
  322. IERR_SECURITY_READ_ERROR "An error has occurred attempting to retrieve task account information. You may continue editing the task object, but will be unable to change task account information"
  323. IERR_ACCOUNTNAME "No account name specified. Please specify an account name"
  324. IERR_REPETITION_LT1 "The repetition interval cannot be less than 1"
  325. END