DrtGetSearchResult function

The DrtGetSearchResult function allows the caller to retrieve the search result(s).

Syntax


HRESULT WINAPI DrtGetSearchResult(
  _In_   HDRT_SEARCH_CONTEXT hSearchContext,
  _Out_  DRT_SEARCH_RESULT *ppSearchResult
);

Parameters

hSearchContext [in]

Handle to the search context to close. This parameter is returned by the DrtStartSearch function.

ppSearchResult [out]

Pointer to the DRT_SEARCH_RESULT structure containing the search result.

Return value

This function returns S_OK on success. Other possible values include:

Return codeDescription
E_INVALIDARG

ulSearchPathSize is less than the size of DRT_SEARCH_RESULT.

E_HANDLE

hSearchContext is an invalid handle.

DRT_E_FAULTED

the DRT cloud is in the faulted state.

DRT_E_INSUFFICIENT_BUFFER

The provided buffer is insufficient in size to contain the search result.

DRT_E_NO_MORE

There are no more results to return.

DRT_E_TIMEOUT

The search failed because it timed out.

DRT_E_SEARCH_IN_PROGRESS

The search is currently in progress.

 

Requirements

Minimum supported client

Windows 7 Professional [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

Header

Drt.h

Library

Drt.lib

DLL

Drt.dll

See also

DrtStartSearch

 

 

Community Additions

ADD
Show:
© 2014 Microsoft