Turns on monitoring of objects.
This function is not available in native builds of KAV SDK for x64 Windows platform.
When the Cloud Protection is enabled, the monitoring functions perform additional reputation checking via KSN.
Load different traffic monitors such as Mail Monitor or Web Monitor in the same process. These monitors use the kneps driver that allows single-point connections only. If you try to load different traffic monitors in different processes, kneps will not start, but will return the E_FAIL (0x80004005) system error.
When Proactive Defense Monitor (PDM) is already started by the time you start a traffic monitor, load the traffic monitor into the process with the PDM component.
The best practice is when you always share the same process for all monitoring components and load every monitor you need into the address space of the same shared process. To do that call the kaveLoadMonitor function from the same process.
The function is supported on Windows platforms only, because it requires driver stack to be loaded. To use the function on 64-bit Windows platform you need a x86 build of KAV SDK and a 32-bit flavor of your application. The native 64-bit build of KAV SDK for 64-bit Windows platform does not include drivers and does not support the kaveLoadMonitor function. Using monitoring features from a native 64-bit code is not supported. To use them, build a 32-bit application. The user mode part of this application will run in a WoW64 subsystem as a 32-bit code, the kernel mode part, the drivers, will run in a native 64-bit space.
When invoking kaveLoadMonitor on a 64-bit platform from a fresh installed KAV SDK, download the malware definition database files anew using features supplied with Updater SDK, the standalone product allowing you to build custom update facilities for your application that is based on KAV SDK components. The definition files from the malware database shipped with a 32-bit build of KAV SDK include 32-bit version of kernel mode components and need to be updated to 64-bit flavor to operate on a 64-bit Windows Platform.
Syntax
HRESULT kaveLoadMonitor (
MONITOR_TYPE enMonitorType,
const KAV_MONITOR_SETTINGS *pSettings,
PFNCALLBACK pfnUserCallback);
Parameters
The kaveLoadMonitor function has the following parameters.
kaveLoadMonitor function parameters
Name |
Type |
Description |
|---|---|---|
|
in |
Monitor type that indicates the objects to monitor. For more information, see section "Monitor types". |
|
in |
A pointer (casted to
|
|
in |
A pointer to the callback function that will process events of malware detection and other events raised while this monitor is on. When loading another monitor, for example, of different type, another callback function can be specified. This parameter can also be |
Return value
If the kaveLoadMonitor function succeeds, the return code is S_OK.
For information on other codes, see section "Return codes".
Page top