MONTHLYDOW structure (mstask.h)
Defines the date(s) that the task runs by month, week, and day of the week.
Syntax
typedef struct _MONTHLYDOW {
WORD wWhichWeek;
WORD rgfDaysOfTheWeek;
WORD rgfMonths;
} MONTHLYDOW;
Members
wWhichWeek
Specifies the week of the month when the task runs. This value is exclusive and is one of the following flags.
rgfDaysOfTheWeek
Specifies the day(s) of the week (specified in wWhichWeek) when the task runs. This value is a combination of the following flags.
rgfMonths
Value that describes the month(s) when the task runs. This value is a combination of the following flags.
Remarks
The TRIGGER_TYPE_UNION union uses an instance of this structure as part of the Type member of the TASK_TRIGGER structure definition.
The following C++ example shows how to combine these flags. The example runs a task on the Monday and the 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;
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Header | mstask.h |