KAV_FILE_MONITOR_SETTINGS

One of the structures that defines file monitor settings.

The new KAV_FILE_MONITOR_SETTINGS2 structure is available for configuring the File Monitor. This structure provides more settings that you can configure within the File Monitor to tailor it to your needs.

This structure is not used for Linux-based solutions. This structure is used for backward compatibility only.

Syntax

struct KAV_FILE_MONITOR_SETTINGS

{

KAV_MONITOR_SETTINGS s;

unsigned long dwScanningMode;

unsigned long dwSizeLimitMB;

unsigned long dwCleaningMode;

unsigned long dwTimeout;

char *pExcludeMask;

char *pIncludeMask;

char cReserved;

};

Members

KAV_FILE_MONITOR_SETTINGS structure members

Member name

Description

s

General monitor settings defined by the KAV_MONITOR_SETTINGS structure.

dwScanningMode

Scanning mode.

For more information, see section "Scanning modes".

dwCleaningMode

A cleaning mode.

For more information, see section "Cleaning modes".

dwTimeout

The maximum time in milliseconds allotted for performing a scan task.

dwSizeLimitMB

The maximum archive unpacking size in Mbytes.

pExcludeMask

A pointer to the string describing exclude mask.

The exclude mask defines the files that should NOT be monitored even if they are covered by the include mask. It consists of the substrings separated by spaces, commas or semicolons. The substring may contain values based on the following patterns:

  • DriveLetter:\*—skip files residing in the root of the indicated drive, for example the C drive.
  • DriveLetter:\—skip files and folders residing on the specified drive recursively including all the subfolders and the files within them.
  • *.FileExtension—skip files with the indicated extension.
  • DriveLetter:\Folder\*—skip files residing in the specified Folder folder located on the DriveLetter drive. No files stored in the subfolders, residing under the specified path, will be excluded from scanning.

Paths that do not have a terminating backslash at the end of the string are not supported. Please make sure to add the backslash to the specified path.

Incorrect notation: DriveLetter:\Folder

Proper notation: DriveLetter:\Folder\

DriveLetter:\Folder\—skip files residing in the specified Folder folder recursively including all the subfolders and the files within them.

Please notice the backslash terminating the string. This backslash enables recursion specifying that all the files and folders under the provided path will be excluded from scanning.

 

Make sure to always specify absolute paths.

For example:

C:\* *.dll D:\sample.txt

If the mask value is an empty string or NULL, the exclude mask is not used.

pIncludeMask

A pointer to the string describing include mask.

The include mask defines the files that should be monitored. It consists of the substrings separated by spaces, commas or semicolons. The substring may contain values based on the following patterns:

  • DriveLetter:\*—scan files residing in the root of the indicated drive, for example the C drive.
  • DriveLetter:\—scan files and folders residing on the specified drive recursively including all the subfolders and the files within them.
  • *.FileExtension—scan files with the indicated extension.
  • DriveLetter:\Folder\*—scan files residing in the specified Folder folder located on the DriveLetter drive. No files stored in the subfolders, residing under the specified path, will be added for scanning.

Paths that do not have a terminating backslash at the end of the string are not supported. Please make sure to add the backslash to the specified path.

Incorrect notation: DriveLetter:\Folder

Proper notation: DriveLetter:\Folder\

DriveLetter:\Folder\—scan files residing in the specified Folder folder recursively including all the subfolders and the files within them.

Please notice the backslash terminating the string. This backslash enables recursion specifying that all the files and folders under the provided path will be added for scanning.

 

Make sure to always specify absolute paths.

For example:

C:\* *.dll D:\sample.txt

If the mask value is an empty string or NULL, all files will be scanned except for those indicated in the exclude mask.

cReserved

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

Two different structures are defined in header files of KAV SDK API, each for a specific character encoding. If you define the UNICODE macro in your code, the Unicode version is used, otherwise ANSI version of the structure will be selected at compilation. Alternatively, you can manually specify what version of the structure you need, by adding the W (for Unicode) or A (for ANSI) postfixes to the structure name.

Page top