=Everything_GetResultDateAccessed=
The '''Everything_GetResultDateAccessed''' function retrieves the accessed date of a visible result.

==Syntax==
<pre>
BOOL Everything_GetResultDateAccessed(
    DWORD dwIndex,
    FILETIME *lpDateAccessed
);
</pre>

==Parameters==
<dl>
;''dwIndex''
Zero based index of the visible result.
;''lpDateAccessed''
Pointer to a FILETIME to hold the accessed date of the result.
</dl>

==Return Value==
The function returns non-zero if successful.
The function returns 0 if the accessed date information is unavailable. To get extended error information, call [[support/everything/SDK/Everything_GetLastError|Everything_GetLastError]]

{|
! Error code
! Meaning
|-
| EVERYTHING_ERROR_INVALIDCALL
| Call [[support/everything/SDK/Everything_Query|Everything_Query]] before calling Everything_GetResultDateAccessed.
|-
| EVERYTHING_ERROR_INVALIDREQUEST
| Accessed date was not requested or is unavailable, Call [[support/everything/SDK/Everything_SetRequestFlags|Everything_SetRequestFlags]] with EVERYTHING_REQUEST_DATE_ACCESSED before calling [[support/everything/SDK/Everything_Query|Everything_Query]].
|-
| EVERYTHING_ERROR_INVALIDINDEX
| index 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 [[support/everything/SDK/Everything_GetNumResults|Everything_GetNumResults]] function.

==Example==
<pre>
FILETIME dateAccessed;

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

// execute the query
Everything_Query(TRUE);

// Get the accessed date of the first visible result.
Everything_GetResultDateAccessed(0,&dateAccessed);
</pre>

==Function Information==
Requires Everything 1.4.1 or later.

==See Also==
<ul>
*[[support/everything/SDK/Everything_Query|Everything_Query]]
*[[support/everything/SDK/Everything_Reset|Everything_Reset]]
*[[support/everything/SDK/Everything_SetRequestFlags|Everything_SetRequestFlags]]
</ul>
