IEnumWorkItems 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 enumerating the tasks in the Scheduled Tasks folder.

IEnumWorkItems is the primary interface of the enumeration object. To create the enumeration, call ITaskScheduler::Enum.

Inheritance

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

Methods

The IEnumWorkItems interface has these methods.

 
IEnumWorkItems::Clone

Creates a new enumeration object that contains the same enumeration state as the current enumeration.
IEnumWorkItems::Next

Retrieves the next specified number of tasks in the enumeration sequence.
IEnumWorkItems::Reset

Resets the enumeration sequence to the beginning. (IEnumWorkItems.Reset)
IEnumWorkItems::Skip

Skips the next specified number of tasks in the enumeration sequence.

Requirements

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