Windows Dev Center

TASK_TRIGGER_TYPE2 enumeration

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

Syntax


typedef enum  { 
  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_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.

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 Enumerated Types
Task Scheduler

 

 

Community Additions

ADD
Show:
© 2015 Microsoft