cwbUN_GetParentFolderNameFromName

Purpose

Extracts the name of an object's parent folder from a fully-qualified Unity object name.

Syntax

CWBAPI unsigned int WINAPI cwbUN_GetParentFolderNameFromName(
    const char * szObjectName,
    char * szParentFolderName,
    UINT cchMax
    );

Parameters

const char * szObjectName - input
The Unity object name from which the parent folder name will be extracted.
char * szParentFolderPath - output
Address of the buffer that will receive the null-terminated parent folder name.
UINT cchMax - input
Size of the buffer that will receive the null-terminated parent folder name.

Return Codes

The following list shows common return values:

CWB_OK
Successful completion.
CWBUN_FORMAT_NOT_VALID
Specified object name is not valid.
CWB_BUFFER_OVERFLOW
The buffer is too small to contain the returned string.

Usage

None