IResultData::GetNextItem method (mmc.h)

The IResultData::GetNextItem method gets the next item in the result view with the specified state flags set.

Syntax

HRESULT GetNextItem(
  [in, out] LPRESULTDATAITEM item
);

Parameters

[in, out] item

A pointer to a RESULTDATAITEM structure that contains information about the item to be obtained. The nIndex member should be set to the index at which to start the search, or to –1 to start at the first item. The specified index is excluded from the search. The nState member should specify which state flags must be set on the returned item.

The nIndex member will be updated to the index of the found item (or –1, if none is found). The bScopeItem and lParam members will be set according to the found item.

Return value

This method can return one of these values.

Remarks

When applied to virtual lists, only the LVIS_FOCUSED and LVIS_SELECTED state flags can specified. The lParam member is always set to 0 (zero).

Requirements

Requirement Value
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header mmc.h
DLL Mmcndmgr.dll

See also

IResultData

IResultData2