kaveIsProcessInvisible

Checks visibility bit of a process.

Visible processes have their visibility bit turned on and are protected by Self Defense, invisible processes are not monitored by Self Defense and are allowed for access from any other process; their visibility bit is set off.

Syntax

HRESULT kaveIsProcessInvisible (

unsigned long PID

BOOL *pbInvisible

);

Parameters

The kaveIsProcessInvisible function has the following parameters.

kaveIsProcessInvisible function parameters

Name

Type

Description

PID

In

Process identifier for the process for which you want your want to check visibility bit.

pbInvisible

Out

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

One of the following bits can be returned:

  • FALSE

    Specified process is visible.

  • TRUE

    Specified process is invisible.

Return value

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

kaveIsProcessInvisible function return codes

Return code

Description

S_OK

The function succeeds.

E_INVALIDARG

pbInvisible is NULL.

E_NOTIMPL

An attempt has been made to call the kaveIsProcessInvisible 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_FAIL

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

Page top