The values returned by the callback function are used by the scanning or monitor function that has called it. For example, if the scanning function has the KAV_REQUEST cleaning mode, then, if malware is detected, the callback function asks the user for a decision. If the user wants to delete the infected object, the return value of the callback function should be CLBK_DELETE_OBJECT, and the KAV SDK will delete the indicated object if this is possible.
The possible callback function return values are listed in the table below.
Callback function return values
Return code |
Description |
|---|---|
|
Continue processing of the current object. When Proactive Defense Monitor (PDM) is active, the started application will be allowed to run if the user application returns the If the scanning function is called with the If the function is called with the |
|
Cancel processing of the current object which is a part of a compound object (for example, the file from an archive) in case the function has been called with one of the following events:
|
|
Cancel processing of an object which is the parent of the current object (for example, the whole archive). Skip deleting infected compound object when the Do not add current object to the backup storage if the function is called with the |
|
Disinfect the current object, delete if disinfection is impossible. There is a sense to return this value only when the scanning function is called with the |
|
Disinfect the current object. There is a sense to return this value only when the scanning function is called with the |
|
Delete the current object. There is a sense to return this value only when the scanning function is called with the |
|
Obtain process ID data. Web Monitor will obtain identifier of the process that requested a malicious URL. This code can be returned to Web Monitor when this component detects a malicious web address in the scanned traffic. |
|
This value is used only in case the function was called with the The specified number of next bytes will be written to the |
|
The Proactive Defense Monitor should block the suspicious action. There is a sense to return this value only for the Proactive Defense Monitor events. For more information about such events, see section "Proactive Defense events". |
|
The Proactive Defense Monitor should terminate the suspicious process. There is a sense to return this value only for the Proactive Defense Monitor events. For more information about such events, see section "Proactive Defense events". |
|
The Proactive Defense Monitor should roll malware activity back cleaning all the malware activity traces. There is a sense to return this value only for the Proactive Defense Monitor events. For more information about such events, see section "Proactive Defense events". |
|
The KAV Engine should forcibly restart the operating system and reboot the computer. This code may be returned upon the completion of the Advanced Disinfection procedure when the |
|
KAV SDK should establish connection to the Cloud using proxy server and the specified connection settings. |
|
Return MD5 hash sum for the This code must be used when you want KAV SDK to obtain a MD5 footprint for the scanned object with detected threat, see section "Obtaining MD5 hash sums". The MD5 hash is returned in an instance of |
|
Accept the expired or not-yet-valid digital certificate and allow the application to connect to the remote host. |