IResultOwnerData::FindItem method (mmc.h)

The IResultOwnerData::FindItem method finds the next item in a virtual list matching a specified string.

Syntax

HRESULT FindItem(
  [in]  LPRESULTFINDINFO pFindInfo,
  [out] int              *pnFoundIndex
);

Parameters

[in] pFindInfo

A pointer to the RESULTFINDINFO structure.

[out] pnFoundIndex

A pointer to the returned index of the item found. The value is –1 if no items are found.

Return value

This method can return one of these values.

Remarks

Because the snap-in maintains all the item data for a virtual list, the snap-in must implement FindItem to allow navigation by partial name typing. The console calls FindItem to find the next match each time the user types a printable character. The console handles the character accumulation and timing functions, passing the snap-in the current partial name in each FindItem call.

Requirements

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

See also

RESULTFINDINFO