Gets the next row of the search result.
HRESULT GetNextRow(
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