Share via


ISyncKnowledge2::GetLowestUncontainedId

Returns the lowest item ID that is not contained in this knowledge and that is contained in the specified knowledge.

HRESULT GetLowestUncontainedId(
  ISyncKnowledge2* piSyncKnowledge,
  BYTE* pbItemId,
  DWORD * pcbItemIdSize);

Parameters

  • piSyncKnowledge
    [in] The item ID that is returned in pbItemId is contained in piSyncKnowledge.
  • pbItemId
    [in, out, unique, size_is(*pcbItemIdSize)] The lowest item ID that is not contained in this knowledge, and that is contained in piSyncKnowledge.
  • pcbItemIdSize
    [in, out] Specifies the number of bytes in pbItemId. Returns either the number of bytes that are required to retrieve the ID when pbItemId is too small, or the number of bytes written.

Return Value

  • S_OK

  • S_FALSE when piSyncKnowledge is contained in this knowledge. In this situation, there is no uncontained item ID to return.

  • E_INVALIDARG when the ID format schema of piSyncKnowledge is not the same as the ID format schema of this knowledge.

  • E_POINTER

  • HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pbItemId is too small. In this situation, the required number of bytes is returned in pcbItemIdSize.

See Also

Reference

ISyncKnowledge2 Interface