Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IResultOwnerData::FindItem method

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

pFindinfo [in]

A pointer to the RESULTFINDINFO structure.

pnFoundIndex [out]

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.

S_OK

The item was found.

S_FALSE

The item was not found.

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

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

Header

Mmc.h

See also

RESULTFINDINFO

 

 

Show: