Export (0) Print
Expand All

ISchedulerJobEvents::OnJobState method

Is called when the state of the job changes.

Syntax


HRESULT OnJobState(
  [in]  VARIANT Sender,
  [in]  IJobStateEventArg *pArgs
);

Parameters

Sender [in]

A variant that contains the Scheduler object.

pArgs [in]

An IJobStateEventArg interface that provides information related to the state of the job.

Return value

You must return S_OK.

Remarks

To get the job, query the pdispVal member of Sender for the IScheduler interface. Then, pass the IJobStateEventArg.JobId property to the IScheduler::OpenJob method.

The dispatch identifier for this method is 0x60020000.

Examples

For an example, see Implementing the Event Handlers for Job Events in C++.

Requirements

Product

HPC Pack 2008 R2 Client Utilities, HPC Pack 2008 Client Utilities

Type library

Microsoft.Hpc.Scheduler.tlb

See also

ISchedulerJobEvents
ISchedulerJobEvents::OnTaskState

 

 

Show:
© 2014 Microsoft