ISyncChange::GetCreationVersion method (winsync.h)

Gets the creation version of the changed item.

Syntax

HRESULT GetCreationVersion(
  [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 creation 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_ID_FORMAT_MISMATCH
pbCurrentReplicaId is not in the format that is specified by the ID format schema of the provider.

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