Processing scan results

There are two ways for the application to obtain scanning results and process them. The first way is applicable only for the scanning functions called synchronously—the scanning result is written to the special variable and can be achieved by addressing this variable. For more details on possible scan results, see section "Scan results".

The second way is universal. There are several events (also referred to as callback events) that make the KAV SDK call a special function—the callback function. This function is developed basing on the prototype (see section "Callback function prototype") described in this document.

In the course of the KAV SDK operation, the callback function is called by the SDK with various argument values when there is an event (see section "Event notification codes") occurred at the run time of the KAV Engine. The callback function receives the callback event and other important parameters like the current object and its scan result as argument values. Then it handles the situation and returns one of the predefined callback return values that could be used by the KAV scanning or monitoring functions. In this way you can, for example, cancel scanning of the current object, or delete it if this object is infected. Basing on the scan results you can also put the scanned object in the backup storage. For more details on backup functionality, see section "About backup storage".

It is your responsibility to implement function’s behavior depending on the passed arguments.

The callback function to use is indicated during the SDK initialization.

For more information about the callback function, callback events and return values, see section "Callback function" in the API Reference.

Page top