kaveSelfDefenseSetInstallers

Specifies the identifiers of the installer processes to be protected by Self Defense and its protected data.

This API does not support protection inheritance. Child processes created by the protected processes will not be automatically protected by Self Defense. If you protect a process with Self Defense and want its child processes to be protected as well, these child processes must be specified separately. Self Defense protection applied to the parent process does not propagate to the child processes.

Syntax

HRESULT kaveSelfDefenseSetInstallers (

const unsigned int *pids,

unsigned int count

);

Parameters

The kaveSelfDefenseSetInstallers function has the following parameters.

kaveSelfDefenseSetInstallers function parameters

Name

Type

Description

pids

In

A list of process identifiers (PIDs) for installer processes that must be protected by Self Defense.

count

In

A number of installer processes.

Return value

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

kaveSelfDefenseSetInstallers function return codes

Return code

Description

S_OK

The function succeeds.

E_INVALIDARG

  • pids is NULL.
  • The list of PIDs is empty.

E_NOTIMPL

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

E_FAIL

An error occurred when specifying the PIDs of the processes to be protected by Self Defense rules.

Page top