kaveSetKsnSettings

Sets the settings of file or URL reputation requests performed by scanning or monitoring functions when the Cloud Protection is enabled. The settings will change on the fly, and the scanning and monitoring functions will continue working with the new settings.

Be sure to initialize the structSize field of the passed structure before invoking kaveGetKsnSettings.

The function is not supported on Linux platform when KAV SDK is integrated in service mode.

Syntax

HRESULT kaveSetKsnSettings (

const KAV_KSN_SETTINGS *settings);

Parameters

The kaveSetKsnSettings function has the following parameters.

kaveSetKsnSettings function parameters

Name

Type

Description

settings

in

A pointer to the cloud requests' settings defined by the members of the KAV_KSN_SETTINGS structure.

Return value

The table below contains possible values that the kaveSetKsnSettings function can return.

kaveSetKsnSettings function return codes

Return code

Description

S_OK

The function succeeds.

S_FALSE

The specified settings are applied partially. You can determine which settings are not applied by calling the kaveGetKsnSettings function.

E_UNEXPECTED

The KAV_SHT_ENGINE_KSN flag was not set on KAV SDK initialization.

Page top