This section describes what happens in the situation when the scanning function is called with the KAV_REQUEST cleaning mode and the infected object is detected.
For any of the cleaning modes the EVENT_PREDETECT callback event always arises before the detection event. It enables to cancel further scanning of the object by using the corresponding callback function return code.
If infected object is detected, the corresponding callback function (there can be several callback functions) is automatically called with the first parameter set to EVENT_REQUEST; the information on the infected object and the name of found malware are passed as other callback function parameters.
The diagram below demonstrates the sequence of callback function calls.

Detection of infected objects in KAV_REQUEST cleaning mode
Page top