kaveEnableInprogressEvents

Turns on or off the EVENT_INPROGRESS, EVENT_OBJECT_BEGIN, and EVENT_FIRSTBYTES callback events. For more information about these events, see section "Event notification codes".

When scanning critical areas, such as system memory, the KAV Engine does not return the EVENT_OBJECT_BEGIN event even if you have explicitly specified to return events that show progress of scanning by setting the bEnable parameter, which is passed to the kaveEnableInprogressEvents function, to TRUE. For more information about the function, see kaveScanCriticalArea. In other words, the EVENT_OBJECT_BEGIN event is not supported by kaveScanCriticalArea function.

To enable EVENT_FIRSTBYTES make sure to specify the amount of bytes to buffer by calling the kaveSetEventFirstBytesBufferSize function.

Syntax

HRESULT kaveEnableInprogressEvents (

BOOL bEnable);

Parameters

The kaveEnableInprogressEvents function has the following parameters.

kaveEnableInprogressEvents function parameters

Name

Type

Description

bEnable

in

If the variable is TRUE, the EVENT_INPROGRESS, EVENT_OBJECT_BEGIN and EVENT_FIRSTBYTES callback events occur.

Return value

If the kaveEnableInprogressEvents function succeeds, its return value is S_OK.

For other return codes, see section "Return codes".

Page top