Everything_GetResultExtension

The Everything_GetResultExtension function retrieves the extension part of a visible result.

Syntax

LPCTSTR Everything_GetResultExtension(
DWORD dwIndex
);

Parameters


dwIndex

Zero based index of the visible result.


Return Value

The function returns a pointer to a null terminated string of TCHARs.

If the function fails the return value is NULL. To get extended error information, call .

Error code Meaning
EVERYTHING_ERROR_INVALIDCALL Call before calling Everything_GetResultExtension.
EVERYTHING_ERROR_INVALIDREQUEST Extension was not requested or is unavailable, Call with EVERYTHING_REQUEST_EXTENSION before calling .
EVERYTHING_ERROR_INVALIDINDEX index must be greater than or equal to 0 and less than the visible number of results.

Remarks

The ANSI / Unicode version of this function must match the ANSI / Unicode version of the call to .

The function returns a pointer to an internal structure that is only valid until the next call to , or .

You can only call this function for a visible result. To determine if a result is visible use the function.

Example

// set the search text to abc AND 123
Everything_SetSearch("abc 123");
// execute the query
Everything_Query(TRUE);
// Get the extension part of the first visible result.
LPCTSTR lpExtension = Everything_GetResultExtension(0);

See Also