IDirectorySearch::SetSearchPreference method

The IDirectorySearch::SetSearchPreference method specifies a search preference for obtaining data in a subsequent search.

Syntax

HRESULT SetSearchPreference(
  PADS_SEARCHPREF_INFO pSearchPrefs,
  DWORD                dwNumPrefs
);

Parameters

pSearchPrefs

Provides a caller-allocated array of ADS_SEARCHPREF_INFO structures that contain the search preferences to be set.

dwNumPrefs

Provides the size of the pSearchPrefs array.

Return value

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

For more information and other return values, see ADSI Error Codes.

Requirements

   
Minimum supported client Windows Vista
Minimum supported server Windows Server 2008
Target Platform Windows
Header iads.h
DLL Activeds.dll; Adsldp.dll; Adsldpc.dll

See also

ADSI Error Codes

ADS_SEARCHPREF_INFO

IDirectorySearch