Directory Services

Steps to Setting up a VLV Search

To Set Up A VLV Search

  1. 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.
  2. Execute the search using the IDirectorySearch::ExecuteSearch method.
  3. Call the IDirectorySearch::GetFirstRow or IDirectorySearch::GetNextRow methods to retrieve the first row.
  4. Call the GetColumn method to retrieve the ADS_VLV response.
  5. Call the IDirectorySearch::GetNextRow and IDirectorySearch::GetColumn methods to continue retrieving results.
  6. Call the IDirectorySearch::CloseSearchHandle method to end the search.