Platform SDK: Active Directory, ADSI, and Directory Services

Checking Search Preferences

The IDirectorySearch::SetSearchPreference method writes a status value to the dwStatus member of each ADS_SEARCHPREF_INFO structure specified in the method call to indicate whether the search preference was set. The ADS_STATUSENUM enumeration defines the possible status values.