UniCreateLocaleObject

This function creates a locale object.

Syntax
UniCreateLocaleObject(localeSpecType, localeSpec, result) ;

Parameters

 * localeSpecType - integer - input : Specifies the type of value of localeSpec.
 * localeSpec - PVOID - input : The specific type or locale token as defined by localeSpecType.
 * result - LocaleObject - output : The locale object for use.

Constants
The constants for use for localeSpecType:
 * UNI_TOKEN_POINTER
 * UNI_MBS_STRING_POINTER
 * UNI_UCS_STRING_POINTER

Returns
An integer with values of:
 * ULS_INVALID
 * ULS_NOMEMORY
 * ULS_SUCCESS
 * ULS_UNSUPPORTED

Calling Convention
Cdecl32

Example Code
integer     localeSpecType; PVOID       localeSpec; LocaleObject localeObj; integer     rc; ... rc = UniCreateLocaleObject(localeSpecType, localeSpec, localeObj); ...

Related Functions

 * UniFreeLocaleObject

OS Version Introduced
OS/2 Warp