IRunningTask interface

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.

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

PropertyAccess typeDescription

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 [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Taskschd.h

Library

Taskschd.lib

DLL

Taskschd.dll

See also

Task Scheduler Interfaces
Task Scheduler
IRunningTaskCollection
IRegisteredTask::Run
IRegisteredTask::RunEx

 

 

Show: