Is called when the state of a task in the job changes.
- Sender [in]
A variant that contains the Scheduler object.
- pArgs [in]
An ITaskStateEventArg interface that provides information related to the state of the job.
You must return S_OK.
To get the job, query the pdispVal member of Sender for the IScheduler interface. Then, pass the ITaskStateEventArg.JobId property to the IScheduler::OpenJob method. To get the task, pass the ITaskStateEventArg.TaskId property to the ISchedulerJob::OpenTask method.
The dispatch identifier for this method is 0x60020001.
For an example, see Implementing the Event Handlers for Job Events in C++.
|HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities|