kaveEnableSelfDefense

Turns on or off the Self Defense feature.

Syntax

HRESULT kaveEnableSelfDefense (

BOOL bEnable

);

Parameters

The kaveEnableSelfDefense function has the following parameters.

kaveEnableSelfDefense function parameters

Name

Type

Description

bEnable

In

  • TRUE—Turns on Self Defense.
  • FALSE—Turns off Self Defense.

Return value

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

kaveEnableSelfDefense function return codes

Return code

Description

S_OK

The function succeeds.

S_FALSE

You are attempting to turn on or off Self Defense when it is already initialized or turned off.

E_NOTIMPL

An attempt has been made to call the kaveEnableSelfDefense function in out-of-process or service modes of integration of KAV SDK. The Self Defense feature is only supported for the in-process integration mode of KAV SDK.

E_UNEXPECTED

An attempt has been made to call the kaveEnableSelfDefense function before initializing KAV SDK in in-process mode.

E_FAIL

An error occurred while turning Self Defense on or off.

Page top