kaveSelfDefenseEnableLog

Turns on logging for the Self Defense technology.

Please turn logging before using Self Defense API.

KAV SDK creates a log file at the specified location upon the invocation of the function.

Syntax

/* ANSI version */

HRESULT kaveSelfDefenseEnableLogA (

const char * logPath

);

/* UNICODE version */

HRESULT kaveSelfDefenseEnableLogW (

const wchar * logPath

);

Parameters

The kaveSelfDefenseEnableLog function has the following parameters.

kaveSelfDefenseEnableLog function parameters

Name

Type

Description

logPath

In

Full path in UNICODE (for kaveSelfDefenseEnableLogW) or ANSI (for kaveSelfDefenseEnableLogA) to the log file.

Return value

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

kaveSelfDefenseEnableLog function return codes

Return code

Description

S_OK

The function succeeds.

E_INVALIDARG

logPath is NULL or an empty string.

E_NOTIMPL

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

E_FAIL

An error occurred when enabling logging for the Self Defense technology.

Page top