kaveSetProcessInvisible

Marks a process as visible or invisible.

Visible processes are protected by Self Defense, invisible processes are not monitored by Self Defense and are allowed for access from any other process.

Syntax

HRESULT kaveSetProcessInvisible (

unsigned long PID

BOOL bInvisible

);

Parameters

The kaveSetProcessInvisible function has the following parameters.

kaveSetProcessInvisible function parameters

Name

Type

Description

PID

In

Process identifier for the process your want to exclude from protection by the Self Defense technology.

bInvisible

In

Visibility bit that defines if the process must be set as visible or invisible.

Depending on the bit in the boolean bInvisible parameter, a process can be marked as:

  • Visible

    Set bIniisible to FALSE.

  • Invisible

    Set bIniisible to TRUE.

Return value

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

kaveSetProcessInvisible function return codes

Return code

Description

S_OK

The function succeeds.

S_FALSE

The process with the specified PID is already marked as visible (bInvisible set to FALSE in the last call) or invisible (bInvisible set to TRUE in the last call).

E_NOTIMPL

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

E_INVALIDARG

The process with the specified PID is not found.

E_FAIL

An error occurred when setting visibility bit for the specified process.

Page top