ITask 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 running tasks, getting or setting task information, and terminating tasks. It is derived from the IScheduledWorkItem interface and inherits all the methods of that interface.
The ITask interface inherits from IScheduledWorkItem. ITask also has these types of members:
The ITask interface has these methods.
This method retrieves the name of the application that the task is associated with.
This method retrieves the maximum length of time, in milliseconds, the task can run before terminating.
This method retrieves the task's command-line parameters.
This method retrieves the priority for the task.
This method returns the flags that modify the behavior of a task.
This method retrieves the task'sworking directory.
This method assigns a specific application to the current task.
This method sets the maximum time the task can run, in milliseconds, before terminating.
This method sets the command-line parameters for the task.
This method sets the priority for the task.
This method sets the flags that modify the behavior of a scheduled task.
This method sets the working directory for the task.
For more information and example code for this interface, see C/C++ Code Example: Terminating a Task.
|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|