In addition to on demand scanning, the KAV SDK has several monitoring functions so the application can provide real time user protection.
The current KAV SDK version supports monitoring only for the Windows-based solutions. In Windows, monitoring functionality requires drivers to be installed. For more information, see section "Drivers".
After the SDK is initialized, one or more monitors of different types can be loaded and unloaded. When a monitor is loaded—it works, after it is unloaded—it does not monitor anymore. There are four types of monitoring functions:
For more information about monitoring, see section "Introducing Real Time Protection".
To load a certain monitor, the kaveLoadMonitor function should be called with the corresponding parameters. One of the parameters is monitor type, other include scanning and cleaning modes and scan timeout described in section "Common parameters of scanning functions".
Like for the scanning functions, the scanning results obtained by a monitor can be obtained and processed by using the callback function. For on demand scanning functions, the callback function is defined on the initialization stage. For monitoring functions, this can be the same function, or you can indicate another one when loading the monitor. There can be different callback functions for each monitor type. For more information, see section "Callback function".
When there is no need to monitor certain objects, the real time scanning can be turned off by calling the kaveUnloadMonitor function.
It is recommended to use Web Monitor, POP3 Monitor and PDM Monitor in the same process. At the moment, kneps driver used by monitoring components supports only single-point connections. When the second monitoring process is trying to connect to the monitoring driver, such attempts are refused by the kneps driver and the second monitor fail to start. For more information about real time scanning functions, see section "Monitoring functions" in the API Reference.
Avoiding false positive detections
If you implement monitoring features, follow the procedure:
Any file objects used by your application, including files located in the program folder of the application.
Processes started or used by your application at scanning.
Doing so will help you avoid having false positives at scanning.
Page top