Share via


IBackgroundCopyJob4::GetPeerCachingFlags method

Retrieves flags that determine if the files of the job can be cached and served to peers and if DO can download content for the job from peers.

Syntax

HRESULT GetPeerCachingFlags(
  [out] DWORD *pFlags
);

Parameters

  • pFlags [out]
    Flags that determine if the files of the job can be cached and served to peers and if DO can download content for the job from peers. The following flags can be set:

    Value Meaning
    BG_JOB_ENABLE_PEERCACHING_CLIENT 0x0001

    The job can download content from peers.

    BG_JOB_ENABLE_PEERCACHING_SERVER 0x0002

    The files of the job can be cached and served to peers.

     

Return value

The method returns the following return values.

Return code Description
S_OK

Success

E_NOTIMPL

If other flag values are set.

 

Remarks

Delivery Optimization (DO) can download from peers only if peercaching is enabled both at the computer level and at the job level; this API affects only the job level. For details, see IBackgroundCopyJob4::SetPeerCachingFlags.

Requirements

Minimum supported client

Windows 10, version 1709 [desktop apps only]

Minimum supported server

Windows Server 2016 [desktop apps only]

Header

Deliveryoptimization.h

IDL

DeliveryOptimization.idl

Library

Dosvc.lib

DLL

Dosvc.dll

IID

IID_IBackgroundCopyJob4 is defined as 659cdeae-489e-11d9-a9cd-000d56965251

See also

IBackgroundCopyJob4

IBackgroundCopyJob4::SetPeerCachingFlags