IBackgroundCopyJob::GetId method (bits.h)

Retrieves the identifier used to identify the job in the queue.

Syntax

HRESULT GetId(
  [out] GUID *pVal
);

Parameters

[out] pVal

GUID that identifies the job within the BITS queue.

Return value

This method returns S_OK on success or one of the standard COM HRESULT values on error.

Remarks

The service generates the identifier when you create the job. To use the identifier to retrieve an IBackgroundCopyJob interface pointer for the job, call the IBackgroundCopyManager::GetJob method.

Requirements

Requirement Value
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

IBackgroundCopyManager::CreateJob

IBackgroundCopyManager::GetJob