TASK_TRIGGER_TYPE2 enumeration (taskschd.h)

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

Syntax

typedef enum _TASK_TRIGGER_TYPE2 {
  TASK_TRIGGER_EVENT = 0,
  TASK_TRIGGER_TIME = 1,
  TASK_TRIGGER_DAILY = 2,
  TASK_TRIGGER_WEEKLY = 3,
  TASK_TRIGGER_MONTHLY = 4,
  TASK_TRIGGER_MONTHLYDOW = 5,
  TASK_TRIGGER_IDLE = 6,
  TASK_TRIGGER_REGISTRATION = 7,
  TASK_TRIGGER_BOOT = 8,
  TASK_TRIGGER_LOGON = 9,
  TASK_TRIGGER_SESSION_STATE_CHANGE = 11,
  TASK_TRIGGER_CUSTOM_TRIGGER_01 = 12
} TASK_TRIGGER_TYPE2;

Constants

 
TASK_TRIGGER_EVENT
Value: 0
Triggers the task when a specific event occurs. For more information about event triggers, see IEventTrigger.
TASK_TRIGGER_TIME
Value: 1
Triggers the task at a specific time of day. For more information about time triggers, see ITimeTrigger.
TASK_TRIGGER_DAILY
Value: 2
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
Value: 3
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
Value: 4
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
Value: 5
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
Value: 6
Triggers the task when the computer goes into an idle state. For more information about idle triggers, see IIdleTrigger.
TASK_TRIGGER_REGISTRATION
Value: 7
Triggers the task when the task is registered. For more information about registration triggers, see IRegistrationTrigger.
TASK_TRIGGER_BOOT
Value: 8
Triggers the task when the computer boots. For more information about boot triggers, see IBootTrigger.
TASK_TRIGGER_LOGON
Value: 9
Triggers the task when a specific user logs on. For more information about logon triggers, see ILogonTrigger.
TASK_TRIGGER_SESSION_STATE_CHANGE
Value: 11
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
Value: 12

Requirements

Requirement Value
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