IRunningTask interface (taskschd.h)

Provides the methods to get information from and control a running task.

Inheritance

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

Methods

The IRunningTask interface has these methods.

 
IRunningTask::get_CurrentAction

Gets the name of the current action that the running task is performing.
IRunningTask::get_EnginePID

Gets the process ID for the engine (process) which is running the task.
IRunningTask::get_InstanceGuid

Gets the GUID identifier for this instance of the task.
IRunningTask::get_Name

Gets the name of the task.
IRunningTask::get_Path

Gets the path to where the task is stored.
IRunningTask::get_State

Gets an identifier for the state of the running task.
IRunningTask::Refresh

Refreshes all of the local instance variables of the task.
IRunningTask::Stop

Stops this instance of the task.

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2008 [desktop apps only]
Target Platform Windows
Header taskschd.h

See also

IRegisteredTask::Run

IRegisteredTask::RunEx

IRunningTaskCollection

Task Scheduler

Task Scheduler Interfaces