(0) exportieren Drucken
Alle erweitern
EN
Dieser Inhalt ist in Ihrer Sprache leider nicht verfügbar. Im Folgenden finden Sie die englische Version.

IBackgroundCopyJob::GetPriority method

Retrieves the priority level for the job. The priority level determines when the job is processed relative to other jobs in the transfer queue.

Syntax


HRESULT GetPriority(
  [out]  BG_JOB_PRIORITY *pPriority
);

Parameters

pPriority [out]

Priority of the job relative to other jobs in the transfer queue.

Return value

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

Return codeDescription
S_OK

Priority level was successfully retrieved.

E_INVALIDARG

The pPriority parameter cannot be NULL.

 

Examples

The following example shows how to retrieve the priority property value from the job. The example assumes the IBackgroundCopyJob interface pointer is valid.


HRESULT hr;
IBackgroundCopyJob* pJob;
BG_JOB_PRIORITY PriorityLevel;

hr = pJob->GetPriority(&PriorityLevel);
if (SUCCEEDED(hr))
{
  //Do something with PriorityLevel.
}

Requirements

Minimum supported client

Windows XP

Minimum supported server

Windows Server 2003

Header

Bits.h

IDL

Bits.idl

Library

Bits.lib

DLL

QmgrPrxy.dll

IID

IID_IBackgroundCopyJob is defined as 37668D37-507E-4160-9316-26306D150B12

See also

BG_JOB_PRIORITY
IBackgroundCopyJob::SetPriority

 

 

Community-Beiträge

HINZUFÜGEN
Anzeigen:
© 2014 Microsoft