WEEKLYWEEKLY*
*Contents  *Index  *Topic Contents
*Previous Topic: TASK_TRIGGER
*Next Topic: Unions

WEEKLY

typedef struct _WEEKLY {
    WORD WeeksInterval;
    WORD rgfDaysOfTheWeek;
} WEEKLY;

Defines the interval, in weeks, between invocations of a task. The TRIGGER_TYPE_UNION union uses an instance of this structure as part of the TASK_TRIGGER structure definition.

WeeksInterval
Number of weeks between invocations of a task.
rgfDaysOfTheWeek
Value that describes the days of the week the task runs. This value is a bit field and 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.

The following code fragment provides an example of how you can combine these flags. This example would run a task on every other Sunday, Wednesday, and Friday.

WEEKLY example;
example.WeeksInterval = 2;
example.rgfDaysOfTheWeek = TASK_SUNDAY | TASK_WEDNESDAY | TASK_FRIDAY;

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