ISyncKnowledge2::GetKnowledgeCookie method (winsync.h)

Gets a lightweight, read-only representation of this knowledge object that can be used for fast comparisons.

Syntax

HRESULT GetKnowledgeCookie(
  [out] IUnknown **ppKnowledgeCookie
);

Parameters

[out] ppKnowledgeCookie

A lightweight, read-only representation of this knowledge object that can be used for fast comparisons.

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.

Remarks

A knowledge cookie can be used for fast comparisons with other knowledge objects by using ISyncKnowledge2::CompareToKnowledgeCookie when the performance of the comparison operation is especially important.

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

ISyncKnowledge Interface

ISyncKnowledge2 Interface