ISyncChange::GetChangeVersion method (winsync.h)

Gets the version that is associated with this change.

Syntax

HRESULT GetChangeVersion(
  [in]  const BYTE   *pbCurrentReplicaId,
  [out] SYNC_VERSION *pVersion
);

Parameters

[in] pbCurrentReplicaId

The ID of the replica that owns this change. The ID format must match the format that is specified by the ID_PARAMETERS property of the provider.

[out] pVersion

Returns the change version of the item.

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
Invalid pointer.
E_INVALIDARG
pbCurrentReplicaId is not the correct replica ID.
SYNC_E_ITEM_HAS_NO_VERSION_DATA
The item has been forgotten.
SYNC_E_ID_FORMAT_MISMATCH
pbCurrentReplicaId is not in the format that is specified by the ID format schema of the provider.
SYNC_E_ITEM_HAS_CHANGE_UNITS
The item has change units.

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

SYNC VERSION Structure