kaveQBGetStoragePath

Gets the path to the current backup storage folder.

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

Syntax

HRESULT kaveQBGetStoragePath (

unsigned long dwBufLen,

char *pBuf,

unsigned long *pdwBufLen);

Parameters

The kaveQBGetStoragePath function has the following parameters.

kaveQBGetStoragePath function parameters

Name

Type

Description

dwBufLen

in

The size in symbols of the buffer where the path to the backup storage location will be written.

pBuf

out

A pointer to the memory buffer that will be filled with the path to the backup storage folder.

pdwBufLen

out

A pointer to the number of symbols actually copied to the buffer (without the terminating null character), when pBuf is not NULL and dwBuffLen value is sufficient to accept the returned string.

If the buffer size specified by the dwBufLen parameter is not sufficient to fit the data returned by kaveQBGetStoragePath, or pBuf is NULL, the pdwBufLen contains the size (in symbols) of the buffer necessary to accommodate the received data including the null terminating character. This value pointed by pdwBufLen tells you the needed buffer length. The returned size will be one character longer than the actual string size. When allocating the buffer, use the size returned in pdwBufLen. This size will suffice to accommodate the received data, the C-string value and the null terminating character.

If the function returns E_INVALIDARG and the allocated buffer size is insufficient, invoked the function for the second time with the dwBufLen parameter value set to the value of pdwBufLen returned after the first invoke.

Return value

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

For other return codes, see section "Return codes".

Page top