taskschd.h header

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

taskschd.h contains the following programming interfaces:

Interfaces

 
IAction

Provides the common properties inherited by all action objects.
IActionCollection

Contains the actions that are performed by the task.
IBootTrigger

Represents a trigger that starts a task when the system is started.
IComHandlerAction

Represents an action that fires a handler.
IDailyTrigger

Represents a trigger that starts a task based on a daily schedule.
IEmailAction

Represents an action that sends an email message.
IEventTrigger

Represents a trigger that starts a task when a system event occurs.
IExecAction

Represents an action that executes a command-line operation.
IIdleSettings

Specifies how the Task Scheduler performs tasks when the computer is in an idle condition.
IIdleTrigger

Represents a trigger that starts a task when the computer goes into an idle state.
ILogonTrigger

Represents a trigger that starts a task when a user logs on.
IMaintenanceSettings

Provides the settings that the Task Scheduler uses to perform task during Automatic maintenance.
IMonthlyDOWTrigger

Represents a trigger that starts a task on a monthly day-of-week schedule.
IMonthlyTrigger

Represents a trigger that starts a job based on a monthly schedule.
INetworkSettings

Provides the settings that the Task Scheduler service uses to obtain a network profile.
IPrincipal

Provides the security credentials for a principal.
IPrincipal2

Provides the extended settings applied to security credentials for a principal.
IRegisteredTask

Provides the methods that are used to run the task immediately, get any running instances of the task, get or set the credentials that are used to register the task, and the properties that describe the task.
IRegisteredTaskCollection

Contains all the tasks that are registered.
IRegistrationInfo

Provides the administrative information that can be used to describe the task.
IRegistrationTrigger

Represents a trigger that starts a task when the task is registered or updated.
IRepetitionPattern

Defines how often the task is run and how long the repetition pattern is repeated after the task is started.
IRunningTask

Provides the methods to get information from and control a running task.
IRunningTaskCollection

Provides a collection that is used to control running tasks.
ISessionStateChangeTrigger

Triggers tasks for console connect or disconnect, remote connect or disconnect, or workstation lock or unlock notifications.
IShowMessageAction

Represents an action that shows a message box when a task is activated.
ITaskDefinition

Defines all the components of a task, such as the task settings, triggers, actions, and registration information.
ITaskFolder

Provides the methods that are used to register (create) tasks in the folder, remove tasks from the folder, and create or remove subfolders from the folder.
ITaskFolderCollection

Provides information and control for a collection of folders that contain tasks.
ITaskHandler

Defines the methods that are called by the Task Scheduler service to manage a COM handler.
ITaskHandlerStatus

Provides the methods that are used by COM handlers to notify the Task Scheduler about the status of the handler.
ITaskNamedValueCollection

Contains a collection of ITaskNamedValuePair interface name-value pairs.
ITaskNamedValuePair

Creates a name-value pair in which the name is associated with the value.
ITaskService

Provides access to the Task Scheduler service for managing registered tasks.
ITaskSettings

Provides the settings that the Task Scheduler service uses to perform the task.
ITaskSettings2

Provides the extended settings that the Task Scheduler uses to run the task. (ITaskSettings2)
ITaskSettings3

Provides the extended settings that the Task Scheduler uses to run the task. (ITaskSettings3)
ITaskVariables

Defines task variables that can be passed as parameters to task handlers and external executables that are launched by tasks.
ITimeTrigger

Represents a trigger that starts a task at a specific date and time.
ITrigger

Provides the common properties that are inherited by all trigger objects.
ITriggerCollection

Provides the methods that are used to add to, remove from, and get the triggers of a task.
IWeeklyTrigger

Represents a trigger that starts a task based on a weekly schedule.

Enumerations

 
TASK_ACTION_TYPE

Defines the type of actions that a task can perform.
TASK_COMPATIBILITY

Defines what versions of Task Scheduler or the AT command that the task is compatible with.
TASK_CREATION

Defines how the Task Scheduler service creates, updates, or disables the task.
TASK_ENUM_FLAGS

Defines how the Task Scheduler enumerates through registered tasks.
TASK_INSTANCES_POLICY

Defines how the Task Scheduler handles existing instances of the task when it starts a new instance of the task.
TASK_LOGON_TYPE

Defines what logon technique is required to run a task.
TASK_PROCESSTOKENSID_TYPE

Defines the types of process security identifier (SID) that can be used by tasks.
TASK_RUN_FLAGS

Defines how a task is run.
TASK_RUNLEVEL_TYPE

Defines LUA elevation flags that specify with what privilege level the task will be run.
TASK_SESSION_STATE_CHANGE_TYPE

Defines what kind of Terminal Server session state change you can use to trigger a task to start.
TASK_STATE

Defines the different states that a registered task can be in.
TASK_TRIGGER_TYPE2

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