Share via


ISyncKnowledge::ConvertVersion

Converts a version from another replica into one that is compatible with the replica that owns this knowledge.

Syntax

HRESULT ConvertVersion( 
  ISyncKnowledge *pKnowledgeIn,
  const BYTE *pbCurrentOwnerId,
  const SYNC_VERSION *pVersionIn,
  BYTE *pbNewOwnerId,
  DWORD *pcbIdSize,
  SYNC_VERSION *pVersionOut);

Parameters

  • pKnowledgeIn
    [in] A knowledge that is valid for pbCurrentOwnerId and that contains pVersionIn.

  • pbCurrentOwnerId
    [in] The ID of the replica that owns pVersionIn.

  • pVersionIn
    [in] The version to convert.

  • pbNewOwnerId
    [in, unique] Returns the ID of the replica that owns the converted version.

  • pcbIdSize
    [in, out] Specifies the number of bytes in pbNewOwnerId. Returns the number of bytes required to retrieve the ID when pbNewOwnerId is too small, or returns the number of bytes written.

  • pVersionOut
    [out] Returns the version. This is converted to be valid for the replica that owns this knowledge.

Return Value

  • S_OK

  • E_INVALIDARG

  • E_OUTOFMEMORY

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbNewOwnerId is too small. In this case, the required number of bytes is returned in pcbIdSize.

See Also

Reference

ISyncKnowledge Interface

SYNC_VERSION Structure