kaveIsEnabledSelfDefense

Checks the status of the Self Defense feature.

Syntax

HRESULT kaveIsEnabledSelfDefense (

BOOL *pbEnable

);

Parameters

The kaveIsEnabledSelfDefense function has the following parameters.

kaveIsEnabledSelfDefense function parameters

Name

Type

Description

pbEnable

Out

Upon the function returns, *pbEnabled can contain one of the following values:

  • TRUE—Self Defense is turned on
  • FALSE—Self Defense is turned off

Return value

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

kaveIsEnabledSelfDefense function return codes

Return code

Description

S_OK

The function succeeds.

E_INVALIDARG

pbEnable is NULL.

E_NOTIMPL

An attempt has been made to call the kaveIsEnabledSelfDefense 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 kaveIsEnabledSelfDefense function before initializing KAV SDK in in-process mode.

E_FAIL

An error occurred when checking the status of Self Defense.

Page top