voidtools

Everything_IncRunCountFromFileName

The Everything_IncRunCountFromFileName function increments the run count by one for a specified file in the Everything by file name.


Syntax

DWORD Everything_IncRunCountFromFileName(
LPCTSTR lpFileName
);

Parameters

lpFileName [in]

Pointer to a null-terminated string that specifies a fully qualified file name in the Everything index.


Return Value

The function returns the new run count for the specifed file.

The function returns 0 if an error occurred. To get extended error information, call Everything_GetLastError


Error codeMeaning
EVERYTHING_ERROR_IPCPlease make sure the Everything search client is running in the background.

Remarks

The file does not have to exist. When the file is created it will have the correct run history.

Run history information is preserved between file deletion and creation.

Calling this function will update the date run to the current time for the specified file.

Incrementing a file with a run count of 4294967295 (0xffffffff) will do nothing.


Example

// run a file
system("C:\\folder\\file.doc");

// increment the run count in Everything.
Everything_IncRunCountFromFileName(TEXT("C:\\folder\\file.doc"));

See Also



© 2024 - 隐私策略