Turns on or off the Self Defense feature.
Syntax
HRESULT kaveEnableSelfDefense (
BOOL bEnable
);
Parameters
The kaveEnableSelfDefense function has the following parameters.
kaveEnableSelfDefense function parameters
Name |
Type |
Description |
|---|---|---|
|
In |
|
Return value
The table below contains possible values that the kaveEnableSelfDefense function can return.
kaveEnableSelfDefense function return codes
Return code |
Description |
|---|---|
|
The function succeeds. |
|
You are attempting to turn on or off Self Defense when it is already initialized or turned off. |
|
An attempt has been made to call the |
|
An attempt has been made to call the |
|
An error occurred while turning Self Defense on or off. |