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 |
|---|---|
|
General monitor settings defined by the |
|
This parameter is ignored in the current KAV SDK version. |
|
Obsolete; not currently used. |
|
This parameter is reserved for future use; not currently used. |
|
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:
Do not remove the default web page template files from the For more information, see section "Web monitor settings". |
|
Scanning mode. There are following flags of the
|
|
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 To set no time limit for the scanning task, use the |
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:
KAV_O_M_ARCHIVEDEnables scanning of archive files. When archives with passwords is scanned, a password request comes first, and then the file size is checked.
KAV_O_M_PACKED)KAV_O_M_MAILPLAIN)KAV_O_M_MAILBASES)KAV_O_M_URL)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:
Executable files compressed by means of executable compression that allows to reduce code of executables and obfuscate their code and implements decompression code within the compressed executable.
Files that were compressed using file archivers, data compression applications that allow to incorporate several files into a single file and perform data compression to reduce file size.
Files used by mail applications to store email data.
Email message files created by client email applications to keep individual electronic messages.
URL addresses accessed via web directly or contained on web pages.
Additionally, this example demonstrates how you turn on fast heuristic analysis performed against the scanned files and scripts. The following option is used:
Fast heuristic analysis of downloaded files and scripts. This type of analysis ensures effective protection against new malicious programs and is not resource consuming task.