Home
Change View
Print
Directory Services
Steps to Setting up a VLV Search
To Set Up A VLV Search
Set a search preference in the
ADS_VLV
structure using either offset or target, and use the
dwBeforeCount
and
dwAfterCount
parameters to set the number of entries to return that appear before and after the target entry.
Execute the search using the
IDirectorySearch::ExecuteSearch
method.
Call the
IDirectorySearch::GetFirstRow
or
IDirectorySearch::GetNextRow
methods to retrieve the first row.
Call the
GetColumn
method to retrieve the
ADS_VLV
response.
Call the
IDirectorySearch::GetNextRow
and
IDirectorySearch::GetColumn
methods to continue retrieving results.
Call the
IDirectorySearch::CloseSearchHandle
method to end the search.