Click to Rate and Give Feedback
MSDN
MSDN Library
Windows Development
Task Scheduler
IRunningTask
IRunningTask interface

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.

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

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

Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2012 Microsoft. All rights reserved. Terms of Use | Trademarks | Privacy Statement
Page view tracker