Clears the canceled object cache created by driver.
This function is deprecated and is no longer supported in KAV SDK 8.3 and later versions. This leads to a situation when the choice to return CLBK_CANCEL_OBJECT return code to cancel further scanning of a file when EVENT_PREDETECT event is raised is not remembered. As a result, KAV Engine will raise the EVENT_PREDETECT event when this file is scanned in the future within the same KAV SDK work session even if you call kaveClearPredetectCache function to clear the driver cache of prediction events.
The work session is the time between subsequent calls of the kaveInitializeEx function that is the time between re-initializing the KAV SDK.
This function is implemented for Windows platform only.
Canceled objects—those for which the CLBK_CANCEL_OBJECT return code is returned from a callback function when the function is invoked with EVENT_PREDETECT event, are cached by one of the drivers. When an object such as a file is cached by the driver, the EVENT_PREDETECT does not get raised for this object anymore should you scan it using one of the following functions:
kaveScanFilekaveScanCriticalAreakaveScanForRootkitsInFolderkaveLoadMonitor operating as a File Monitor.Clearing the cache by restarting the operating system or calling the kaveClearPredectedCache function makes the EVENT_PREDETECT to get raised for the file again, once you scan it.
The kaveClearPredetectCache function allows you to clear the driver's cache effectively making the KAV driver to forget files that have been once canceled from scanning. Next time you scan these canceled files, KAV SDK will generate the EVENT_PREDETECT event as if they have never been canceled before.
Syntax
HRESULT kaveClearPredetectCache ();
Return value
The table below contains possible values that the kaveClearPredetectCache function can return.
kaveSetScanningThreadsCount function return codes
Return code |
Description |
|---|---|
|
The function succeeds. |
|
The function is invoked on a Linux-based platform. |