Gets the first row of a search result.(
HRESULT GetFirstRow(
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