Purpose
This function notifies KAV SDK that partner scan function detected a threat.
Syntax
typedef KAV_SC_RESULT (__cdecl *PFN_ONDETECT)(
KAV_SCAN_CONTEXT context,
const char* virusName,
KAV_DETECT_DANGER danger,
KAV_DETECT_TYPE type,
KAV_VERDICT_CURABILITY curability);
Parameters
The PFN_ONDETECT function type has the following parameters.
PFN_ONDETECT parameters
Name |
In/Out |
Type |
Description |
|---|---|---|---|
|
In |
|
Context of the scan task that was passed to the partner scan function. This parameter is a pointer to to |
|
In |
|
Name of the threat in ASCII encoding. |
|
In |
|
Severity level of the detected threat. |
|
In |
|
Threat type of the detected threat. |
|
In |
|
Curability verdict for the detected threat. If the partner scan function attempts to disinfect the threat, this value must be |
Return value
The return value of PFN_ONDETECT is one of the values of the KAV_SC_RESULT enumeration type. The following return values are possible.
PFN_ONDETECT return values
Return value |
Description |
|---|---|
|
Operation completed successfully. |
|
Partner scan function can modify the object. |
|
Partner scan function cannot modify the object. This may be a part of intentional behavior for file monitors. For more information, see Using partner scan function. |
|
An error occurred during the operation. See KAV SDK logs for more information. |
|
One or more arguments passed to the function are invalid. |