Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

IEnumWorkItems interface

[[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.

Members

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

Methods

The IEnumWorkItems interface has these methods.

MethodDescription
Clone

Creates a new enumeration object in the same state as the current enumeration object: the new object points to the same place in the enumeration sequence.

Next

Retrieves the next set of tasks in the enumeration sequence.

Reset

Resets the enumeration sequence to the beginning.

Skip

Skips the next set of tasks in the enumeration sequence.

 

Examples

For more information and example code for this interface, see C/C++ Code Example: Enumerating Tasks.

Requirements

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

End of client support

Windows XPWindows 2000 Professional

End of server support

Windows Server 2003

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:
© 2015 Microsoft