IDirectorySearch::SetSearchPreference method (iads.h)

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


HRESULT SetSearchPreference(
  [in] PADS_SEARCHPREF_INFO pSearchPrefs,
  [in] DWORD                dwNumPrefs


[in] pSearchPrefs

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

[in] 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.


Requirement Value
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