Task Scheduler 1.0 Examples

The examples in this section use the API introduced in Task Scheduler 1.0.

Note

For a Windows Server 2003, Windows XP, or Windows 2000 computer to create, monitor, or control tasks on a Windows Vista computer, certain operations must be completed on the Windows Vista computer. For more information, see Tasks.

 

The following topics provide examples that show how to use the functions introduced in Task Scheduler 1.0.

Example Description
Creating a Task Using NewWorkItem Example Creates a new task.
Enumerating Tasks Example Enumerates all the tasks on the local computer.
Starting a Task Example Starts a known task.
Editing a Work Item using Property Pages Displays the property pages of a task for editing.
Retrieving Work Item Property Examples A set of examples that show how to retrieve properties that apply to all types of work items.
Setting Work Item Property Examples A set of examples that show how to set properties that apply to all types of work items.
Retrieving Task Property Examples A set of examples that show how to retrieve properties unique to tasks.
Setting Task Property Examples A set of examples that show how to set properties unique to tasks.
Retrieving a Task Page Example Retrieves and displays the general task page of a known task.
Creating a New Trigger Creates a new trigger for a known task.
Creating an Idle Trigger Example Creates an event-based idle trigger for a known task.
Retrieving Trigger Strings Example Retrieves the trigger string of all triggers associated with a known task.

 

Using the Task Scheduler