Export (0) Print
Expand All

IBitsPeerCacheAdministration::GetConfigurationFlags method

Gets the configuration flags that determine if the computer serves content to peers and can download content from peers.

Syntax


HRESULT GetConfigurationFlags(
  [out]  DWORD *pFlags
);

Parameters

pFlags [out]

Flags that determine if the computer serves content to peers and can download content from peers. The following flags can be set:

ValueMeaning
BG_ENABLE_PEERCACHING_CLIENT
0x0001

The computer can download content from peers.

BG_ENABLE_PEERCACHING_SERVER
0x0002

The computer can serve content to peers.

 

Return value

The method returns the following return values.

Return codeDescription
S_OK

Success

 

Remarks

BITS can download from peers only if peercaching is enabled both at the computer level and at the job level; this API affects only the computer level. For details, see IBitsPeerCacheAdministration::SetConfigurationFlags.

Peer caching could have been enabled by Group Policy or by calling the IBitsPeerCacheAdministration::SetConfigurationFlags method.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Bits3_0.h (include Bits.h)

IDL

Bits3_0.idl

Library

Bits.lib

See also

IBitsPeerCacheAdministration
IBitsPeerCacheAdministration::SetConfigurationFlags

 

 

Community Additions

ADD
Show:
© 2014 Microsoft