kaveSetScanningThreadsCount

Sets the number of scanning threads. This function allows you to redefine the number of tasks that are processed by KAV Engine simultaneously.

Syntax

HRESULT kaveSetScanningThreadsCount (

unsigned long dwScanningThreadsCount);

Parameters

The kaveSetScanningThreadsCount function has the following parameters.

kaveSetScanningThreadsCount function parameters

Name

Type

Description

dwScanningThreadsCount

in

The number of scanning threads.

For Linux-based solutions, this parameter defines the maximum number of scanning tasks that are processed simultaneously.

The maximum permissible number of scanning threads you can spawn is 32. This limit is only valid when working in in-process model (the dwScannerHostType parameter of the kaveInitializeEx function is set to KAV_SHT_IPROC).

Return value

The table below contains possible values that the kaveSetScanningThreadsCount function can return.

kaveSetScanningThreadsCount function return codes

Return code

Description

S_OK

The function succeeds.

E_INVALIDARG

dwScanningThreadsCount is greater than 32 and the SDK is initialized with the KAV_SHT_INPROC flag.

Page top