cwbUN_GetDisplayNameFromName

Purpose

Extracts the item name field from a fully-qualified Unity object name.

Syntax

CWBAPI unsigned int WINAPI cwbUN_GetDisplayNameFromName(
    const char * szObjectName,
    char * szItemName,
    UINT cchMax
    );

Parameters

const char * szObjectName - input
The Unity object name from which the item name will be extracted.
char * szItemName - output
Address of the buffer that will receive the null-terminated item name.
UINT cchMax - input
Size of the buffer that will receive the null-terminated item 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