Abandons search initiated with earlier call to ExecuteSearch.
HRESULT AbandonSearch(
ADS_SEARCH_HANDLE hSearchResult, //Search result handle
);
This method returns the standard values E_INVALIDARG, E_OUTOFMEMORY, E_UNEXPECTED, and E_FAIL, as well as the following:
Using Directory Service Queries