kaveQBRestoreObject

Restores a file from the backup storage to a location on the drive. The restored file is retained in the backup storage.

The current KAV SDK version does not contain implementation of this function for Linux-based solutions.

Syntax

HRESULT kaveQBRestoreObject (

ULONGLONG qwObjectId,

const char *pRestorePath,

BOOL bOverwrite);

Parameters

The kaveQBRestoreObject function has the following parameters.

kaveQBRestoreObject function parameters

Name

Type

Description

qwObjectID

in

The identifier of an object in the backup storage to be restored.

pRestorePath

in

A pointer to a null-terminated string that contains the full path for restoring the object.

If pRestorePath is NULL, the E_INVALIDARG code is returned.

If the application does not have enough rights to write in the specified location, the KAV_E_ACCESS_DENIED code is returned.

bOverwrite

in

If this variable is set to TRUE, KAV SDK will overwrite the existing object with the object from the backup storage.

If a file already exists at the specified location and overwriting is prohibited, the KAV_E_WRITE_ERROR code is returned.

Return value

If the kaveQBRestoreObject function succeeds, its return value is S_OK.

In other cases an error code is returned. For more information about return codes, see section "Return codes".

Page top