KAV_KSN_SETTINGS

The structure that defines Cloud Protection usage settings. The parameters are used by scanning and monitoring functions when requesting the file or URL reputation from the cloud.

Syntax

struct KAV_KSN_SETTINGS

{

unsigned long structSize;

unsigned long urlCheckTimeoutMs;

BOOL objectCheckOnDemandDelayed;

unsigned long objectCheckOnDemandTimeoutMs;

BOOL objectCheckOnAccessDelayed;

unsigned long objectCheckOnAccessTimeoutMs;

unsigned long cacheSizeKb;

};

Members

KAV_KSN_SETTINGS structure members

Member name

Default value

Description

structSize

–

The size of the passed structure.

urlCheckTimeoutMs

20000

The maximum time (in milliseconds) of waiting for response from cloud during on-demand URL reputation checking in synchronous mode.

objectCheckOnDemandDelayed

FALSE

Enables or disables usage of delayed verdicts for the on-demand scanning of a file.

  • If the field is set to TRUE, the usage of delayed verdicts is enabled. All the file reputation requests to the cloud will be performed in asynchronous mode. The value of the objectCheckOnDemandTimeoutMs field will be ignored.
  • If the field is set to FALSE, the usage of delayed verdicts is disabled. All the file reputation requests to the cloud will be performed in synchronous mode. In this case it is necessary to set the timeout of response waiting, specifying the objectCheckOnDemandTimeoutMs field.

At the moment delayed verdicts are not supported. The file reputation requests are always performed in synchronous mode. The TRUE value of the objectCheckOnDemandDelayed will lead the kaveSetKsnSettings function to return E_INVALIDARG value.

objectCheckOnDemandTimeoutMs

10000

The maximum time (in milliseconds) of waiting for response from cloud during on-demand file reputation checking in synchronous mode.

It is recommended to specify the timeout value according to percentage relationship between succeeded and failed requests.

objectCheckOnAccessDelayed

FALSE

Enables or disables usage of delayed verdicts for the on-access scanning of a file.

  • If the field is set to TRUE, the usage of delayed verdicts is enabled. All the file reputation requests to the cloud will be performed in asynchronous mode. The value of the objectCheckOnAccessTimeoutMs field will be ignored.
  • If the field is set to FALSE, the usage of delayed verdicts is disabled. All the file reputation requests to the cloud will be performed in synchronous mode. In this case it is necessary to set the timeout of response waiting, specifying the objectCheckOnAccessTimeoutMs field.

At the moment delayed verdicts are not supported. The file reputation requests are always performed in synchronous mode. The TRUE value of the objectCheckOnAccessDelayed will lead the kaveSetKsnSettings function to return E_INVALIDARG value.

objectCheckOnAccessTimeoutMs

10000

The maximum time (in milliseconds) of waiting for response from cloud during on-access file reputation checking in synchronous mode.

It is recommended to specify the timeout value according to percentage relationship between succeeded and failed requests.

cacheSizeKb

30720

The maximal size of verdicts cache (in KB).

The 0 value stands that cache is not used.

The value greater than 3FFFFh is invalid.

Page top