IRegisteredTask interface (taskschd.h)
Provides the methods that are used to run the task immediately, get any running instances of the task, get or set the credentials that are used to register the task, and the properties that describe the task.
The IRegisteredTask interface inherits from the IUnknown interface. IRegisteredTask also has these types of members:
The IRegisteredTask interface has these methods.
Gets the definition of the task.
Gets or sets a Boolean value that indicates if the registered task is enabled. (Get)
Gets the time the registered task was last run.
Gets the results that were returned the last time the registered task was run.
Gets the name of the registered task.
Gets the time when the registered task is next scheduled to run.
Gets the number of times the registered task has missed a scheduled run.
Gets the path to where the registered task is stored.
Gets the operational state of the registered task.
Gets the XML-formatted registration information for the registered task.
Returns all instances of the currently running registered task.
Gets the times that the registered task is scheduled to run during a specified time.
Gets the security descriptor that is used as credentials for the registered task.
Gets or sets a Boolean value that indicates if the registered task is enabled. (Put)
Runs the registered task immediately.
Runs the registered task immediately using specified flags and a session identifier.
Sets the security descriptor that is used as credentials for the registered task.
Stops the registered task immediately.
|Minimum supported client||Windows Vista [desktop apps only]|
|Minimum supported server||Windows Server 2008 [desktop apps only]|