kaveSelfDefenseSetConfig

Configures access rules for Self Defense.

Syntax

HRESULT kaveSelfDefenseSetConfig (

const char *resourceList

);

Parameters

The kaveSelfDefenseSetConfig function has the following parameters.

kaveSelfDefenseSetConfig function parameters

Name

Type

Description

resourceList

In

Access rules—a custom set of securable objects to be protected by Self Defense.

Here you pass a text with a set of access rules configured using the predefined access rule configuration format.

Please specify expanded paths; environment variables are not supported.

Return value

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

kaveSelfDefenseSetConfig function return codes

Return code

Description

S_OK

The function succeeds.

E_INVALIDARG

  • resourceList is NULL or an empty string.
  • Access rules are set incorrectly.

E_NOTIMPL

An attempt has been made to call the kaveSelfDefenseSetConfig function before loading KAV SDK in system memory.

E_FAIL

An error occurred when setting custom access rules.

Page top