IEnumSearchRoots::Next method (searchapi.h)

Retrieves the specified number of ISearchRoot elements.

Syntax

HRESULT Next(
  [in]      ULONG       celt,
  [out]     ISearchRoot **rgelt,
  [in, out] ULONG       *pceltFetched
);

Parameters

[in] celt

Type: ULONG

The number of elements to retrieve.

[out] rgelt

Type: ISearchRoot**

Retrieves a pointer to an array of ISearchRoot elements.

[in, out] pceltFetched

Type: ULONG*

Retrieves a pointer to the actual number of elements retrieved. Can be NULL if celt == 1; otherwise it must not be NULL.

Return value

Type: HRESULT

Returns S_OK if successful, S_FALSE if there were not enough items left in the enumeration to be returned, or an error value otherwise.

Remarks

Windows 7 and later: Check out the CrawlScopeCommandLine code sample to see how to define command line options for Crawl Scope Manager (CSM) indexing operations.

Requirements

Requirement Value
Minimum supported client Windows XP with SP2, Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 with SP1 [desktop apps only]
Target Platform Windows
Header searchapi.h
Redistributable Windows Desktop Search (WDS) 3.0