cwbUP_GetTargetPath

Purpose

Gets the target path of the update entry.

Syntax

 
unsigned int CWB_ENTRY cwbUP_GetTargetPath(
                             cwbUP_EntryHandle entryHandle,
                             char *entryTarget,
                             unsigned long bufferLength,
                             unsigned long *actualLength);

Parameters

cwbUP_EntryHandle entryHandle - input
Handle that was returned by a previous call to cwbUP_CreateUpdateEntryHandle, cwbUP_GetUpdateEntryHandle, or to cwbUP_FindEntry.
char * entryTarget - input/output
Pointer to a buffer that will receive the target path of the update entry.
unsigned long bufferLength - input
Length of the buffer. An extra byte should be included for the null termination character. If the buffer is not large enough to hold the entire target path, an error will be returned and the actualLength parameter will be set to the number of bytes the entryTarget buffer needs to be to contain the data.
unsigned long * actualLength - input/output
Pointer to a length variable that will be set to the size of the buffer needed to contain the target path.

Return Codes

The following list shows common return values.

CWB_OK
Successful completion.
CWB_INVALID_HANDLE
Update entry handle is not valid.
CWB_INVALID_POINTER
NULL passed as an address parameter.
CWB_BUFFER_OVERFLOW
Buffer is too small to hold return data.

Usage

None