IRemoteCommandEvents::OnCommandJobState method

Is called when the job that contains the command changes.

Syntax

void OnCommandJobState(
  [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 command.

Return value

This method does not return a value.

Remarks

To get the job that contains the command, query the pdispVal member of Sender for the IScheduler interface. Then, use the IJobStateEventArg.JobId property to call the IScheduler::OpenJob method to get the job. The first task in the job is the task that contains the command.

The dispatch identifier for this method is 0x60020003.

Examples

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

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

IRemoteCommandEvents

IRemoteCommandEvents::OnCommandTaskState