ICoreFragment::NextRange
Returns the next range that is contained in this knowledge fragment, and the clock vector that defines what is known about the items in the range.
S_OK
S_FALSE when there are no more ranges to enumerate.
E_POINTER when the item ID is a variable-length ID and pItemIdSize is NULL.
HRESULT_FROM_WIN32(ERROR_MORE_DATA) when pItemId is too small. In this situation, the required number of bytes is returned in pItemIdSize.
SYNC_E_INVALID_OPERATION if the knowledge object that is contained in this object has changed since this object was created.
The value that is returned in pItemId is the closed lower bound on the range of item IDs that are associated with the clock vector that is returned in piClockVector. The value of pItemId also defines the open upper bound of the previous range, so the open upper bound of the current range can be obtained by calling NextRange again. If there are no more ranges to enumerate, the range contains all items that have IDs greater than or equal to pItemId.