Everything

Everything_GetResultSize

The Everything_GetResultSize function retrieves the size of a visible result.

Syntax

BOOL Everything_GetResultSize(
    DWORD dwIndex,
    LARGE_INTEGER *lpSize
);

Parameters

dwIndex

Zero based index of the visible result.

lpSize

Pointer to a LARGE_INTEGER to hold the size of the result.

Return Value

The function returns non-zero if successful.

The function returns 0 if size information is unavailable. To get extended error information, call Everything_GetLastError


Error code Meaning
EVERYTHING_ERROR_INVALIDCALL Call Everything_Query before calling Everything_GetResultSize.
EVERYTHING_ERROR_INVALIDREQUEST Size was not requested or is unavailable, Call Everything_SetRequestFlags with EVERYTHING_REQUEST_SIZE before calling Everything_Query.
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 Everything_Query.

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

Example

LARGE_INTEGER Size;

// set the search text to abc AND 123
Everything_SetSearch("abc 123");

// execute the query
Everything_Query(TRUE);

// Get the size of the first visible result.
Everything_GetResultSize(0,&size);

See Also


© 2016 voidtools