Gets the information about an object in the backup storage.
The kaveQBGetObjectInfo function returns the information about an object in a special structure—KAV_QB_OBJECT_INFO. This structure contains the original object name and location, its original size, the time of adding the object to the backup storage and the name of malware which was the reason of placing this object to the storage.
When filling the KAV_QB_OBJECT_INFO structure with the data, KAV SDK allocates memory buffers for the pOrigName (original object path) and pVirus (detected malware) structure fields. It is your responsibility to release allocated memory by calling the kaveFreeBuffer function.
The current KAV SDK version does not contain implementation of this function for Linux-based solutions.
Syntax
HRESULT kaveQBGetObjectInfo (
ULONGLONG qwObjectId,
KAV_QB_OBJECT_INFO *pObjectInfo);
Parameters
The kaveQBGetObjectInfo function has the following parameters.
kaveQBGetObjectInfo function parameters
Name |
Type |
Description |
|---|---|---|
|
in |
Identifier of the object in the backup storage. |
|
out |
If the function succeeds, |
Return value
If the kaveQBGetObjectInfo function succeeds, its return value is S_OK.
If an attempt to allocate memory for the pOrigName or pVirusName members of the KAV_QB_OBJECT_INFO structure fails, the E_OUTOFMEMORY code is returned.
In other cases an error code is returned. For more information about return codes, see section "Return codes".
Page top