KAV_FILE_MONITOR_SETTINGS2

The structure that defines extended File Monitor (see section "About File Monitor") settings.

This structure is not used for Linux-based solutions.

Syntax

struct KAV_FILE_MONITOR_SETTINGS2

{

KAV_MONITOR_SETTINGS s;

unsigned long dwScanningMode;

unsigned long dwCleaningMode;

unsigned long dwTimeout;

unsigned long dwSizeLimitMB;

char *pExcludeMask;

char *pIncludeMask;

char cReserved;

KAV_FM_WORKING_MODE enWorkingMode;

};

Members

KAV_FILE_MONITOR_SETTINGS2 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".

If the dwScanningMode parameter has the KAV_O_M_BLOCK_RISKWARE flag specified as one of its values, the File Monitor blocks access to file detected as a malware of KDT_RISKWARE detection type.

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. The exclude mask takes priority over the include mask specified by the pIncludeMask parameter. 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.

enWorkingMode

A File Monitor operating mode.

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

Page top