MONTHLYDATEMONTHLYDATE*
*Contents  *Index  *Topic Contents
*Previous Topic: DAILY
*Next Topic: MONTHLYDOW

MONTHLYDATE

typedef struct _MONTHLYDATE {
    DWORD rgfDays;
    WORD rgfMonths;
} MONTHLYDATE;

Defines the day of the month the task will run. The TRIGGER_TYPE_UNION union uses an instance of this structure as part of the TASK_TRIGGER structure definition.

rgfDays
Value that describes the day of the month a task runs. This value is a bit field that specifies the day(s) the task will run. Bit 0 corresponds to the first of the month, bit 1 to the second, and so forth.
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 quarterly.

MONTHLYDATE example;
example.rgfDays = 1;
example.rgfMonths = TASK_JANUARY | TASK_APRIL | TASK_JULY | TASK_OCTOBER;

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.