TASK_TRIGGER_TYPE2 Enumeration

Defines the type of triggers that can be used by tasks.

Syntax

typedef enum _TASK_TRIGGER_TYPE2 {
  TASK_TRIGGER_EVENT,
  TASK_TRIGGER_TIME,
  TASK_TRIGGER_DAILY,
  TASK_TRIGGER_WEEKLY,
  TASK_TRIGGER_MONTHLY,
  TASK_TRIGGER_MONTHLYDOW,
  TASK_TRIGGER_IDLE,
  TASK_TRIGGER_REGISTRATION,
  TASK_TRIGGER_BOOT,
  TASK_TRIGGER_LOGON,
  TASK_TRIGGER_SESSION_STATE_CHANGE,
  TASK_TRIGGER_CUSTOM_TRIGGER_01
} TASK_TRIGGER_TYPE2;

Constants

TASK_TRIGGER_EVENT Triggers the task when a specific event occurs. For more information about event triggers, see IEventTrigger.
TASK_TRIGGER_TIME Triggers the task at a specific time of day. For more information about time triggers, see ITimeTrigger.
TASK_TRIGGER_DAILY Triggers the task on a daily schedule. For example, the task starts at a specific time every day, every other day, or every third day. For more information about daily triggers, see IDailyTrigger.
TASK_TRIGGER_WEEKLY Triggers the task on a weekly schedule. For example, the task starts at 8:00 AM on a specific day every week or other week. For more information about weekly triggers, see IWeeklyTrigger.
TASK_TRIGGER_MONTHLY Triggers the task on a monthly schedule. For example, the task starts on specific days of specific months. For more information about monthly triggers, see IMonthlyTrigger.
TASK_TRIGGER_MONTHLYDOW Triggers the task on a monthly day-of-week schedule. For example, the task starts on a specific days of the week, weeks of the month, and months of the year. For more information about monthly day-of-week triggers, see IMonthlyDOWTrigger.
TASK_TRIGGER_IDLE Triggers the task when the computer goes into an idle state. For more information about idle triggers, see IIdleTrigger.
TASK_TRIGGER_REGISTRATION Triggers the task when the task is registered. For more information about registration triggers, see IRegistrationTrigger.
TASK_TRIGGER_BOOT Triggers the task when the computer boots. For more information about boot triggers, see IBootTrigger.
TASK_TRIGGER_LOGON Triggers the task when a specific user logs on. For more information about logon triggers, see ILogonTrigger.
TASK_TRIGGER_SESSION_STATE_CHANGE Triggers the task when a specific user session state changes. For more information about session state change triggers, see ISessionStateChangeTrigger.
TASK_TRIGGER_CUSTOM_TRIGGER_01

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Header taskschd.h

See Also

Task Scheduler

Task Scheduler Enumerated Types