DrtGetSearchResult function (drt.h)
The DrtGetSearchResult function allows the caller to retrieve the search result(s).
Syntax
HRESULT DrtGetSearchResult(
[in] HDRT_SEARCH_CONTEXT hSearchContext,
[out] ULONG ulSearchResultSize,
DRT_SEARCH_RESULT *pSearchResult
);
Parameters
[in] hSearchContext
Handle to the search context to close. This parameter is returned by the DrtStartSearch function.
[out] ulSearchResultSize
Pointer to the DRT_SEARCH_RESULT structure containing the search result.
pSearchResult
Receives a pointer to a DRT_SEARCH_RESULT structure containing the search results.
Return value
This function returns S_OK on success. Other possible values include:
Return code | Description |
---|---|
|
ulSearchPathSize is less than the size of DRT_SEARCH_RESULT. |
|
hSearchContext is an invalid handle. |
|
the DRT cloud is in the faulted state. |
|
The provided buffer is insufficient in size to contain the search result. |
|
There are no more results to return. |
|
The search failed because it timed out. |
|
The search is currently in progress. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 7 Professional [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | drt.h |
Library | Drt.lib |
DLL | Drt.dll |