voidtools

Everything_GetResultAttributes

The Everything_GetResultAttributes function retrieves the attributes of a visible result.


Syntax

DWORD Everything_GetResultAttributes(
DWORD dwIndex,
);

Parameters

dwIndex

Zero based index of the visible result.


Return Value

The function returns zero or more of FILE_ATTRIBUTE_* flags.

The function returns INVALID_FILE_ATTRIBUTES if attribute information is unavailable. To get extended error information, call Everything_GetLastError


Error codeMeaning
EVERYTHING_ERROR_INVALIDCALLCall Everything_Query before calling Everything_GetResultAttributes.
EVERYTHING_ERROR_INVALIDREQUESTAttribute information was not requested or is unavailable, Call Everything_SetRequestFlags with EVERYTHING_REQUEST_ATTRIBUTES before calling Everything_Query.
EVERYTHING_ERROR_INVALIDINDEXindex must be greater than or equal to 0 and less than the visible number of results.

Remarks

dwIndex must be a valid visible result index. To determine if a result index is visible use the Everything_GetNumResults function.


Example

DWORD attributes;

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

// execute the query
Everything_Query(TRUE);

// Get the attributes of the first visible result.
attributes = Everything_GetResultAttributes(0);

Function Information

Requires Everything 1.4.1 or later.


See Also


© 2024 - Конфиденциальность