ISyncChangeBatch::AddLoggedConflict method (winsync.h)

Adds metadata that represents a conflict to the change batch.

Syntax

HRESULT AddLoggedConflict(
  [in]  const BYTE         *pbOwnerReplicaId,
  [in]  const BYTE         *pbItemId,
  [in]  const SYNC_VERSION *pChangeVersion,
  [in]  const SYNC_VERSION *pCreationVersion,
  [in]  DWORD              dwFlags,
  [in]  DWORD              dwWorkForChange,
  [in]  ISyncKnowledge     *pConflictKnowledge,
  [out] ISyncChangeBuilder **ppChangeBuilder
);

Parameters

[in] pbOwnerReplicaId

The ID of the replica that made the change in conflict.

[in] pbItemId

The ID of the item.

[in] pChangeVersion

The version of the change.

[in] pCreationVersion

The creation version of the item.

[in] dwFlags

Flags that specify the state of the item change. For the SYNC_CHANGE_FLAG values, see the Remarks section of the ISyncChange::GetFlags method.

[in] dwWorkForChange

The work estimate for the change. This value is used during change application to report completed work to the application.

[in] pConflictKnowledge

The conflict knowledge that was saved when the conflict was logged.

[out] ppChangeBuilder

Returns an object that can be used to add change unit information to the change.

Return value

The possible return codes include, but are not limited to, the values shown in the following table.

Return code Description
S_OK
The method succeeded.
E_POINTER
SYNC_E_CHANGE_BATCH_IS_READ_ONLY

Remarks

Conflicts that are added to the change batch are not added to a group. A group does not have to be opened to add conflicts to the change batch.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header winsync.h

See also

ISyncChange Interface

ISyncChangeBatch Interface

ISyncChangeBuilder Interface

ISyncKnowledge Interface