type
ADS_SEARCH_HANDLE = THandle;
PADS_SEARCH_HANDLE = ^ADS_SEARCH_HANDLE;
PADS_SEARCH_COLUMN = ^ads_search_column;
// *********************************************************************//
// Interface: IDirectorySearch
// Flags: (0)
// GUID: {109BA8EC-92F0-11D0-A790-00C04FD8D5A8}
// *********************************************************************//
IDirectorySearch =
interface(IUnknown)
['
{109BA8EC-92F0-11D0-A790-00C04FD8D5A8}']
function SetSearchPreference(
var pSearchPrefs: ads_searchpref_info; dwNumPrefs: LongWord): HResult;
stdcall;
function ExecuteSearch(pszSearchFilter: PWideChar; pAttributeNames: PWideChar;
dwNumberAttributes: LongWord;
var phSearchResult: ADS_SEARCH_HANDLE): HResult;
stdcall;
function AbandonSearch(phSearchResult: ADS_SEARCH_HANDLE): HResult;
stdcall;
function GetFirstRow(hSearchResult: ADS_SEARCH_HANDLE): HResult;
stdcall;
function GetNextRow(hSearchResult: ADS_SEARCH_HANDLE): HResult;
stdcall;
function GetPreviousRow(hSearchResult: ADS_SEARCH_HANDLE): HResult;
stdcall;
function GetNextColumnName(hSearchHandle: ADS_SEARCH_HANDLE;
out ppszColumnName: PWideChar): HResult;
stdcall;
function GetColumn(hSearchResult: ADS_SEARCH_HANDLE; szColumnName: PWideChar;
var pSearchColumn: ads_search_column): HResult;
stdcall;
function FreeColumn(
var pSearchColumn: ads_search_column): HResult;
stdcall;
function CloseSearchHandle(hSearchResult: ADS_SEARCH_HANDLE): HResult;
stdcall;
end;