Cleaning modes

A cleaning mode defines the action to be performed after the scanning or monitoring function detects a malware.

The cleaning mode to be used by the scanning or monitoring function is determined by a value of the dwCleaningMode variable. This value can be one of the options listed in the table below.

Cleaning mode options

Cleaning option

Description

KAV_SKIP

If a malware is detected while scanning an object, the KAV Engine will not do any attempt to disinfect or delete malicious object. The current scanning task will be skipped.

KAV_DELETE

If a malware is detected while scanning an object, the application will try to delete the infected object. If deletion is impossible, the current scan task will be skipped.

When working in this mode with the KAV_O_M_BLOCK_RISKWARE flag specified, you can stop the KAV Engine from automatically deleting files with detected malware of the KDT_RISKWARE type. To prevent the automatic removal of potentially dangerous software in the KAV_DELETE mode, return the CLBK_CANCEL_OBJECT code to the callback function as an answer to the EVENT_PREDETECT event.

KAV_CLEAN_DELETE

If a malware is detected while scanning an object, the application will try to disinfect the object. If disinfection attempt fails, or disinfection is not possible for a specific malware, the object will be deleted. If deletion is impossible, the current scan task will be skipped.

When working in this mode with the KAV_O_M_BLOCK_RISKWARE flag specified, you can stop the KAV Engine from automatically deleting files with detected malware of the KDT_RISKWARE type. To prevent the automatic removal of potentially dangerous software in the KAV_CLEAN_DELETE mode, return the CLBK_CANCEL_OBJECT code to the callback function as an answer to the EVENT_PREDETECT event.

KAV_CLEAN_SKIP

If a malware is detected while scanning an object, the application will try to disinfect the object. If disinfection attempt fails, the current scan task will be skipped.

KAV_REQUEST

If a malware is detected while scanning an object, the application requests the user about the action on the infected object by calling a callback function with the appropriate parameters.

For more information about the callback function, see section "Callback function". For more details on what happens when a malicious object is detected in this mode, see section "Detection of infected objects in KAV_REQUEST cleaning mode".

To use a certain cleaning mode in the scanning or monitoring function, indicate the corresponding option in the function parameters. Only one option can be specified.

Page top