Skip to content

Latest commit

 

History

History
101 lines (80 loc) · 3.16 KB

nf-iads-idirectorysearch-getpreviousrow.md

File metadata and controls

101 lines (80 loc) · 3.16 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:iads.IDirectorySearch.GetPreviousRow
IDirectorySearch::GetPreviousRow (iads.h)
The IDirectorySearch::GetPreviousRow method gets the previous row of the search result. If the provider does not provide cursor support, it should return E_NOTIMPL.
GetPreviousRow
GetPreviousRow method [ADSI]
GetPreviousRow method [ADSI]
IDirectorySearch interface
IDirectorySearch interface [ADSI]
GetPreviousRow method
IDirectorySearch.GetPreviousRow
IDirectorySearch::GetPreviousRow
_ds_idirectorysearch_getpreviousrow
adsi.idirectorysearch__getpreviousrow
adsi.idirectorysearch_getpreviousrow
iads/IDirectorySearch::GetPreviousRow
adsi\idirectorysearch_getpreviousrow.htm
adsi
fccc9763-c64d-474b-a0c0-9bc9d4e34d65
12/05/2018
GetPreviousRow, GetPreviousRow method [ADSI], GetPreviousRow method [ADSI],IDirectorySearch interface, IDirectorySearch interface [ADSI],GetPreviousRow method, IDirectorySearch.GetPreviousRow, IDirectorySearch::GetPreviousRow, _ds_idirectorysearch_getpreviousrow, adsi.idirectorysearch__getpreviousrow, adsi.idirectorysearch_getpreviousrow, iads/IDirectorySearch::GetPreviousRow
iads.h
Windows
Windows Vista
Windows Server 2008
Activeds.dll; Adsldp.dll; Adsldpc.dll
Windows
19H1
IDirectorySearch::GetPreviousRow
iads/IDirectorySearch::GetPreviousRow
c++
APIRef
kbSyntax
COM
Activeds.dll
Adsldp.dll
Adsldpc.dll
IDirectorySearch.GetPreviousRow

IDirectorySearch::GetPreviousRow

-description

The IDirectorySearch::GetPreviousRow method gets the previous row of the search result. If the provider does not provide cursor support, it should return E_NOTIMPL.

-parameters

-param hSearchResult [in]

Provides a handle to the search context.

-returns

This method returns the standard return values, as well as the following:

For other return values, see ADSI Error Codes.

-remarks

When the ADS_SEARCHPREF_CACHE_RESULTS flag is not set, only forward scrolling is permitted, because the client might not cache all the query results.

Examples

hr = m_pSearch->ExecuteSearch(L"(&(objectCategory=user)(st=WA))", pszAttr, dwCount, &hSearch );
if ( SUCCEEDED(hr) )
{
   while(  m_pSearch->GetNextRow(hSearch)  != S_ADS_NOMORE_ROWS )
   {
      /* Get the data */
   }
   // Print it backward
   hr = m_pSearch->GetPreviousRow( hSearch );
   while( hr != S_ADS_NOMORE_ROWS  &&  hr != E_NOTIMPL)
   {
      /* Get the data */
   }
   m_pSearch->CloseSearchHandle(hSearch);
}

-see-also

ADSI Error Codes

IDirectorySearch