Trusted processes
To control how blocking affects your application, use the corresponding scanner host types. These types specify the hosting process for the KAV scanner. If the KAV SDK has been initialized with the dwScannerHostType parameter set to KAV_SHT_INPROC making the scanner to run under the current process, your application that started the KAV SDK, will not be affected by blocking. In this sense the KAV SDK considers your application as a trusted process.
Calls made from within your application to KAV SDK or any calls via callback functions will be allowed and Advanced Disinfection mechanism will not apply writing blocking to these calls.
If the SDK has been initialized to run the KAV scanner as a separate process or the scanner has been registered as a service, SDK will block any direct calls bypassing the SDK that are made from your application. However, if you have to perform direct calls to an outer process, you can force the SDK to allow such calls by adding the called process to the trusted process list. This can be done by invoking the kaveAddTrustedProcess function. Processes added to the trusted process list are not handled by KAV monitoring functions and will not be intercepted by advanced disinfection mechanism. This function supports for the flags that help control its behavior. For example, if you want to allow the trusted process file operations and network traffic, use the bitmask combining the KAV_TRUSTED_OPEN_FILES and KAV_TRUSTED_NET flags. Add the KAV_TRUSTED_BEHAVIOR flag to the latter two flags within the dwFlags parameter to allow the designated process creating a new process. For more information about the function, see kaveAddTrustedProcess in the API Reference.