ITaskVariables interface (taskschd.h)

Defines task variables that can be passed as parameters to task handlers and external executables that are launched by tasks. Task handlers that need to input and output data to job variables should do a query interface on the services pointer for ITaskVariables.


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


The ITaskVariables interface has these methods.


Used to share the context between different steps and tasks that are in the same job instance.

Gets the input variables for a task.

Sets the output variables for a task.


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