ITaskScheduler interface (mstask.h)

[[This API may be altered or unavailable in subsequent versions of the operating system or product. Please use the Task Scheduler 2.0 Interfaces instead.] ]

Provides the methods for scheduling tasks.

It is the primary interface of the task scheduler object. To create a task scheduler object, call CoCreateInstance.


The ITaskScheduler interface inherits from the IUnknown interface. ITaskScheduler also has these types of members:


The ITaskScheduler interface has these methods.


The Activate method returns an active interface for a specified work item.

The AddWorkItem method adds a task to the schedule of tasks.

The Delete method deletes a task.

The Enum method retrieves a pointer to an OLE enumerator object that enumerates the tasks in the current task folder.

The GetTargetComputer method returns the name of the computer on which ITaskScheduler is currently targeted.

The IsOfType method checks the object's type to verify that it supports a particular interface.

The NewWorkItem method creates a new work item, allocating space for the work item and retrieving its address.

The SetTargetComputer method selects the computer that the ITaskScheduler interface operates on, allowing remote task management and enumeration.


Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header mstask.h
Redistributable Internet Explorer 4.0 or later on Windows NT 4.0 and Windows 95