Export (0) Print
Expand All

ITaskScheduler interface

Provides the methods for scheduling tasks.

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

Members

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

Methods

The ITaskScheduler interface has these methods.

MethodDescription
Activate

Returns an active interface to the specified task.

AddWorkItem

Adds a task to the schedule of tasks.

Delete

Deletes a task.

Enum

Retrieves a pointer to an OLE enumerator object that enumerates the tasks in the current task folder.

GetTargetComputer

Returns the name of the computer on which ITaskScheduler is currently targeted.

IsOfType

Checks the object type.

NewWorkItem

Allocates space for a new task and retrieves its address.

SetTargetComputer

Selects the computer that the ITaskScheduler interface operates on.

 

Examples

For more information and example code for this interface, see C/C++ Code Example: Terminating a Task.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Redistributable

Internet Explorer 4.0 or later on Windows NT 4.0 and Windows 95

Header

Mstask.h

Library

Mstask.lib

DLL

Mstask.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft