=Everything_GetRunCountFromFileName=
The '''Everything_GetRunCountFromFileName''' function gets the run count from a specified file in the Everything index by file name.

==Syntax==
<pre>
DWORD Everything_GetRunCountFromFileName(
    LPCTSTR lpFileName
);
</pre>

==Parameters==
<dl>
;''lpFileName'' [in]
Pointer to a null-terminated string that specifies a fully qualified file name in the Everything index. 
</dl>

==Return Value==
The function returns the number of times the file has been run from Everything.
The function returns 0 if an error occurred. To get extended error information, call [[support/everything/SDK/Everything_GetLastError|Everything_GetLastError]]

{|
! Error code
! Meaning
|-
| EVERYTHING_OK
| The run count is 0.
|-
| EVERYTHING_ERROR_IPC
| Please make sure the Everything search client is running in the background.
|}

==Remarks==

==Example==
<pre>
DWORD runCount;

// get the run count of a file.
runCount = Everything_GetRunCountFromFileName(TEXT("C:\\folder\\file.doc"));
</pre>

==See Also==
<ul>
*[[support/everything/SDK/Everything_SetRunCountFromFileName|Everything_SetRunCountFromFileName]]
*[[support/everything/SDK/Everything_IncRunCountFromFileName|Everything_IncRunCountFromFileName]]
</ul>

