Applies to: desktop apps only
Provides the methods to get information from and control a running task.
Members
The IRunningTask interface inherits from the IUnknown interface. IRunningTask also has these types of members:
Methods
The IRunningTask interface has these methods.
| Method | Description |
|
Refresh
|
Refreshes all of the local instance variables of the task.
|
|
Stop
|
Stops this instance of the task.
|
Properties
The IRunningTask interface has these properties.
| Property | Access type | Description |
|
CurrentAction
| Read-only |
Gets the name of the current action that the running task is performing.
|
|
EnginePID
| Read-only |
Gets the process ID for the engine (process) which is running the task.
|
|
InstanceGuid
| Read-only |
Gets the GUID identifier for this instance of the task.
|
|
Name
| Read-only |
Gets the name of the task.
|
|
Path
| Read-only |
Gets the path to where the task is stored.
|
|
State
| Read-only |
Gets the state of the running task.
|
Requirements
|
Minimum supported client
| Windows Vista |
|
Minimum supported server
| Windows Server 2008 |
|
Header
|
- Taskschd.h
|
|
Library
|
- Taskschd.lib
|
|
DLL
|
- Taskschd.dll
|
See also
- Task Scheduler Interfaces
-
Task Scheduler
-
IRunningTaskCollection
-
IRegisteredTask::Run
-
IRegisteredTask::RunEx
Send comments about this topic to Microsoft
Build date: 2/7/2012