mstask.h header

This header is used by Task Scheduler. For more information, see:

mstask.h contains the following programming interfaces:

Interfaces

 
IEnumWorkItems

Provides the methods for enumerating the tasks in the Scheduled Tasks folder.
IProvideTaskPage

Provides the methods to access the property sheet settings of a task.
IScheduledWorkItem

Provides the methods for managing specific work items.
ITask

Provides the methods for running tasks, getting or setting task information, and terminating tasks. It is derived from the IScheduledWorkItem interface and inherits all the methods of that interface.
ITaskScheduler

Provides the methods for scheduling tasks.
ITaskTrigger

Provides the methods for accessing and setting triggers for a task. Triggers specify task start times, repetition criteria, and other parameters that control when a task is run.

Structures

 
DAILY

Defines the interval, in days, at which a task is run.
MONTHLYDATE

Defines the day of the month the task will run.
MONTHLYDOW

Defines the date(s) that the task runs by month, week, and day of the week.
TASK_TRIGGER

Defines the times to run a scheduled work item.
TRIGGER_TYPE_UNION

Defines the invocation schedule of the trigger within the Type member of a TASK_TRIGGER structure.
WEEKLY

Defines the interval, in weeks, between invocations of a task.

Enumerations

 
TASK_TRIGGER_TYPE

Defines the types of triggers associated with a task.
TASKPAGE

Defines the type of task page to be retrieved.