IBitsPeerCacheAdministration::GetConfigurationFlags method (bits3_0.h)

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

[out] pFlags

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

Value Meaning
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 code Description
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

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header bits3_0.h (include Bits.h)
Library Bits.lib

See also

IBitsPeerCacheAdministration

IBitsPeerCacheAdministration::SetConfigurationFlags