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 |
|---|---|---|
|
In |
A list of process identifiers (PIDs) for installer processes that must be protected by Self Defense. |
|
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 |
|---|---|
|
The function succeeds. |
|
|
|
An attempt has been made to call the |
|
An error occurred when specifying the PIDs of the processes to be protected by Self Defense rules. |