Specifies the location of the backup storage folder.
Syntax
HRESULT kaveQBSetStoragePath (
const char *path);
Parameters
The kaveQBSetStoragePath function has the following parameters.
kaveQBSetStoragePath function parameters
Name |
Type |
Description |
|---|---|---|
path |
in |
A pointer to the variable containing the full path to the backup storage folder. If you pass |
Return value
If the kaveQBSetStoragePath function succeeds, its return value is S_OK. For other return codes, see section "Return codes".
Requirements
This function is only supported on Windows platforms.
Remarks
If the specified storage folder does not exist, it is necessary that the scanning engine hosted by the process has enough privileges to create the destination folder and write to it. If the storage location is present, make sure the GENERIC_WRITE flag is set in the access mask for the backup storage folder, so that KAV Engine can write data to it. The storage folder must reside on the computer local to the KAV scanning engine.
It is recommended to set a backup storage location before the first call of a scanning function with the KAV_O_M_BACKUP scanning option. If the backup location is not defined, the default %Temp%\SDK8\QB folder will be used instead, where %TEMP% is a system environment variable. You can define a custom temporary folder path using the kaveSetTempFolder function.
If the kaveQBSetStoragePath function is called another time with a different path, KAV SDK switches to the new backup location and does not have access to the previous storage.
You can always get the path to the currently selected backup storage folder by using the kaveQBGetStoragePath function.