IDirectorySearch::GetPreviousRow

Gets the previous row of the search result.

HRESULT GetPreviousRow(
  ADS_SEARCH_HANDLE hSearchResult,  //Search result handle
);
 

Parameters

[in] hSearchResult
Handle to the search result.

Return Values

This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:

S_OK
The previous row was successfully obtained.
S_ADS_NOMORE_ROWS
The current row before the call was the first row in the search result. The current row was not changed.

See Also

Using Directory Service Queries