IScheduler::OpenJob method

Retrieves the specified job from the scheduler.

Syntax

HRESULT OpenJob(
  [in]  long          id,
  [out] ISchedulerJob **job
);

Parameters

  • id [in]
    The job to retrieve.

  • job [out]
    An ISchedulerJob interface that you can use to access the properties of the job.

Return value

If the method succeeds, the return value is S_OK. Otherwise, the return value is an error code.

Remarks

The scheduler assigns the identifier when you call the IScheduler::AddJob or IScheduler::SubmitJob method to add the job to the scheduler. To get the identifier, access the ISchedulerJob.Id property.

Examples

For an example, see Getting a Getting a List of Jobs.

Requirements

Product

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

Type library

Microsoft.Hpc.Scheduler.tlb

See also

IScheduler

IScheduler::AddJob

IScheduler::CreateJob

IScheduler::CancelJob

IScheduler::GetJobIdList

IScheduler::GetJobList

IScheduler::SubmitJob