KAV_WEB_MONITOR_SETTINGS3

This structure is one of the structures that define Web Monitor settings.

Syntax

struct KAV_WEB_MONITOR_SETTINGS3

{

KAV_MONITOR_SETTINGS s;

unsigned long dwFlags;

unsigned long dwTimeout;

char cReserved;

char *pTemplateFolder;

unsigned long dwScanningMode;

unsigned long dwScanTimeout;

};

Members

KAV_WEB_MONITOR_SETTINGS3 structure members

Member name

Description

s

General monitor settings defined by the KAV_MONITOR_SETTINGS structure.

dwFlags

This parameter is ignored in the current KAV SDK version.

dwTimeout

Obsolete; not currently used.

cReserved

This parameter is reserved for future use; not currently used.

pTemplateFolder

A pointer to an absolute path to the folder storing template files for custom notification web pages.

The custom notification web pages are shown to the user instead of the malicious resource requested. The following web pages are supported:

  • templ.html

    A template file defining page design for the Access Denied page returned by Web Monitor component when a malicious resource is requested.

  • wmuf.html

    Defines the web page returned to notify about an attempt to follow a malicious URL address, as classified WMUF database of malicious URL addresses.

  • pup.html

    A template for the web page returned to notify about an attempt to download a malicious file containing a threat classified by one of the following detection types: KDT_ADWARE, KDT_PORNWARE, KDT_RISKWARE. For more details, see section "Detection types and severity".

    When using this field, ensure that the specified location exists and template files are present at the specified location.

Do not remove the default web page template files from the /bin/loc/common directory. Missing template files cause KAV SDK initialization process to fail with KAV_E_MOD_NOT_FOUND error.

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

dwScanningMode

Scanning mode. There are following flags of the dwScanningMode parameter:

  • KAV_O_M_ARCHIVED—archives
  • KAV_O_M_PACKED—packed objects
  • KAV_O_M_MAILPLAIN—email messages
  • KAV_O_M_MAILBASES—email databases
  • KAV_O_M_URL—enable filtering of malicious URL addresses by WMUF database
  • KAV_O_M_HEURISTIC_LEVEL_SHALLOW—shallow heuristic analysis; recommended for on-demand (scanning functions) and on-access (File Monitor) scanning
  • KAV_O_M_HEURISTIC_LEVEL_MEDIUM—medium, balanced heuristic analysis, provides for more rigorous analysis, not recommended for file monitoring
  • KAV_O_M_HEURISTIC_LEVEL_DETAIL—most detailed analysis; recommended for mail monitoring and not recommended for monitoring file system activity.

dwScanTimeout

The maximum time in milliseconds allotted for performing a scan task. After the specified timeout expires, the scanning is stopped and the function returns with the KAV_E_TIMEOUT error code.

To set no time limit for the scanning task, use the INFINITE value or set it to 0.

When specifying flags in dwScanningMode parameters, you can combine multiple flags to specify the desired set of file formats to be scanned by Web Monitor as files are accessed via network. The following flags are supported:

Example

The following example illustrates how you could initialize KAV_WEB_MONITOR_SETTINGS3 structure to enable Web Monitor scan files.

Example:

/* Initializing */

KAV_WEB_MONITOR_SETTINGS3 httpset = {0};

/* Defining monitor type */

httpset.s.enType = WEB_MONITOR;

/* Specifying structure size */

httpset.s.dwSettingsStructSize = sizeof(httpset);

/* Specifying scanning mode */

httpset.dwScanningMode = KAV_O_M_PACKED | KAV_O_M_ARCHIVED | KAV_O_M_MAILBASES | KAV_O_M_MAILPLAIN | KAV_O_M_URL | KAV_O_M_HEURISTIC_LEVEL_SHALLOW;

Here we start with initializing Web Monitor settings. Then we specify the type of monitor component you are going to use. Because we need Web Monitor the enType of the KAV_MONITOR_SETTINGS field must be set to WEB_MONITOR, the monitor type that indicates Web Monitor component. To allocate address space for the settings to be used in Web Monitor, we must set the dwSettingsStructSize field. The dwScanningMode field is a combination of flags each specifying a specific setting to tune scanning in Web Monitor. In this example we specify that the following data types must be scanned by Web Monitor:

Page top