kaveSetMonitorSettings

Sets the settings of the monitors of the specified type. For a running monitor of this type, the settings will change on the fly, and the monitor will continue working with the new settings.

This function is not available in native builds of KAV SDK for x64 Windows platform and on all types of Linux platforms.

Syntax

HRESULT kaveSetMonitorSettings (

  MONITOR_TYPE  enMonitorType,

  const KAV_MONITOR_SETTINGS *pSettings);

Parameters

The kaveSetMonitorSettings function has the following parameters.

kaveSetMonitorSettings function parameters

Name

Type

Description

enMonitorType

in

The type of the monitor settings of which are set.

For more information, see section "Monitor types".

pSettings

in

A pointer (casted to KAV_MONITOR_SETTINGS*) to the monitor settings defined by members of the corresponding structure.

  • For File Monitor, the settings are defined either by KAV_FILE_MONITOR_SETTINGS or by KAV_FILE_MONITOR_SETTINGS2 structure.

    For more details, see section "File monitor operating modes".

  • For Mail Monitor, its settings are stored in the KAV_POP3_MONITOR_SETTINGS structure.
  • For Web Monitor, the settings are defined either by the KAV_WEB_MONITOR_SETTINGS structure, or by the KAV_WEB_MONITOR_SETTINGS2 structure, or by the KAV_WEB_MONITOR_SETTINGS3 structure.

    For more details, see section "Web monitor settings".

  • For Proactive Defense Monitor, the settings are defined by KAV_PDM_MONITOR_SETTINGS3.

    For more details, see section "Proactive Defense Monitor settings".

Return value

If the kaveSetMonitorSettings function succeeds, the return code is S_OK. For other return codes, see section "Return codes".

Page top