Passes the password for the KAV Engine to extract files from a certain password-protected archive.
The function can be called only when the callback function processes the EVENT_ASK_PASSWORD event.
Windows
The following prototype should used on Windows platform.
Syntax
HRESULT kaveRegisterPassword (
unsigned long dwPwdId,
const char *pPassword);
Linux
The following prototype should be used on Linux platform.
Syntax
HRESULT kaveRegisterPassword (
unsigned long dwPwdId_tid,
unsigned long dwPwdId_pid,
const char *pPassword);
Parameters
The kaveRegisterPassword function has the following parameters.
kaveRegisterPassword function parameters
Name |
Type |
Description |
|---|---|---|
|
in |
Unique identifier of the password request on a Windows platform. This parameter is used on Windows platform only. It should match the value that is passed from the KAV Engine to your callback function in the |
|
in |
Unique identifier of the thread ID (TID) of the scanning process that sent password request. This parameter is used on Linux platform only. It should match the value that is passed from the KAV Engine to your callback function in the |
|
in |
Unique identifier of the process ID (PID) of the scanning process that sent password request. This parameter is used on Linux platform only. It should match the value that is passed from the KAV Engine to your callback function in the |
|
in |
A pointer to the string value containing the password to be passed from your application to the KAV Engine. |
Return value
If the kaveRegisterPassword function succeeds, its return value is S_OK.
For other return codes, see section "Return codes".
Page top