MONTHLYDOW
typedef struct _MONTHLYDOW {
WORD wWhichWeek;
WORD rgfDaysOfTheWeek;
WORD rgfMonths;
} MONTHLYDOW;
(MONTHLY Day Of the Week) Defines the date(s) that the task runs by month, week, and day of week. The TRIGGER_TYPE_UNION union uses an instance of this structure as part of the TASK_TRIGGER structure definition.
- wWhichWeek
- Value that describes the week of the month when the task runs. This value is exclusive and is one of the following flags:
TASK_FIRST_WEEK | Task will run during the first week of the month. |
TASK_SECOND_WEEK | Task will run during the second week of the month. |
TASK_THIRD_WEEK | Task will run during the third week of the month. |
TASK_FOURTH_WEEK | Task will run during the fourth week of the month. |
TASK_LAST_WEEK | Task will run during the last week of the month. |
- rgfDaysOfTheWeek
- Value that describes the day(s) of the week specified in wWhichWeek when the task runs. This value is a combination of the following flags:
TASK_SUNDAY | Task will run on Sunday. |
TASK_MONDAY | Task will run on Monday. |
TASK_TUESDAY | Task will run on Tuesday. |
TASK_WEDNESDAY | Task will run on Wednesday. |
TASK_THURSDAY | Task will run on Thursday. |
TASK_FRIDAY | Task will run on Friday. |
TASK_SATURDAY | Task will run on Saturday. |
- rgfMonths
- Value that describes the month(s) when the task runs. This value is a combination of the following flags:
TASK_JANUARY | Task will run in January. |
TASK_FEBRUARY | Task will run in February. |
TASK_MARCH | Task will run in March. |
TASK_APRIL | Task will run in April. |
TASK_MAY | Task will run in May. |
TASK_JUNE | Task will run in June. |
TASK_JULY | Task will run in July. |
TASK_AUGUST | Task will run in August. |
TASK_SEPTEMBER | Task will run in September. |
TASK_OCTOBER | Task will run in October. |
TASK_NOVEMBER | Task will run in November. |
TASK_DECEMBER | Task will run in December. |
The following code fragment provides an example of how you can combine these flags. This example would run a task on Monday and Friday of the third week of every third month.
MONTHLYDOW example;
example.wWhichWeek = TASK_THIRD_WEEK;
example.rgfDaysOfTheWeek = TASK_FRIDAY | TASK_MONDAY;
example.rgfMonths = TASK_JANUARY | TASK_APRIL | TASK_JULY | TASK_OCTOBER;
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.