IBackgroundCopyManager::GetJob method

Retrieves a specified job from the transfer queue. Typically, your application persists the job identifier, so you can later retrieve the job from the queue.

Syntax

HRESULT GetJob(
  REFGUID            jobID,
  IBackgroundCopyJob **ppJob
);

Parameters

jobID

Identifies the job to retrieve from the transfer queue. The CreateJob method returns the job identifier.

ppJob

An IBackgroundCopyJob interface pointer to the job specified by JobID. When done, release ppJob.

Return Value

This method returns the following HRESULT values, as well as others.

Return code Description
S_OK
Job was successfully retrieved from the transfer queue.
BG_E_NOT_FOUND
The job was not found in the queue.
E_ACCESSDENIED
User does not have permission to retrieve the job.

Requirements

   
Minimum supported client Windows XP
Minimum supported server Windows Server 2003
Target Platform Windows
Header bits.h
Library Bits.lib
DLL QmgrPrxy.dll

See Also

IBackgroundCopyJob

IBackgroundCopyJob::GetId

IBackgroundCopyManager::CreateJob

IBackgroundCopyManager::EnumJobs