kaveReloadDatabases

Reloads malware definition database.

Syntax

HRESULT kaveReloadDatabases ();

Return value

If the kaveReloadDatabases function succeeds, its return value is S_OK.

For other return codes, see section "Return codes".

Remarks

The function can be called, for example, when malware definition database files are updated without using Updater SDK. Please note that this function always reloads the anti-virus database regardless of the update status. The database will be reloaded even if it has not been changed with the recent update because there was nothing to update.

It is recommended to reload the definition database no more frequently than once per minute.

The function is only supported in out-of-process and in-process modes of KAV SDK integration. Attempting to call the function when KAV SDK is integrated using service mode results in the E_NOTIMPL error.

There is no need to call this function if Updater SDK is used for performing anti-virus database updates. Updater SDK and its documentation is delivered in a separate package but can be used together with KAV SDK.

Before you call kaveReloadDatabases make sure to remove currently used malware definition database files from the location specified in kaveInitializeEx. Place the updated definition files and components downloaded using Updater SDK to the prepared location to ensure updated files are in the location referenced in pDatabasesPath, then call kaveReloadDatabases.

When reloading the KAV SDK's anti-virus database on a Windows platform, installation of the klbg boot guard driver is validated and, if necessary, the driver registration within the operating system gets automatically updated. Re-registering of the klbg driver is performed by updating the system registry. After the updated anti-virus database is retrieved, KAV SDK compares the key value in the system registry with the data in the database. If the current registry value does not match the driver dump value in the database, KAV SDK overwrites the registry key with the new value contained in anti-virus database.

The driver update is performed only if you have an already installed copy of the klbg driver. The driver can be installed using the udinstaller32(64) utility (see section "Drivers"). If the driver has not been installed using this utility prior to updating the anti-virus database, the update is not performed even if the newer version of this driver has been retrieved by KAV SDK along with the updated database.

While this function is running, the objects scanning process continues. New objects sent to the scanning queue will be scanned using the newly loaded anti-virus database. Scanning of already loaded objects will continue with the previous database.

The kaveReloadDatabases function does not verify validity of used license key file. If your license for the used copy of KAV SDK expires, KAV SDK does not return KAV_E_LICENSE_EXPIRED_OR_MISSING on attempts to call kaveReloadDatabases. However, any attempt to call functions that employ malware definitions database when using an expired license key will result in KAV_E_LICENSE_EXPIRED_OR_MISSING. Examples of such functions are kaveScanFile, kaveScanMemory, kaveLoadMonitor and similar.

Page top