UniQueryLocaleObject

Get the locale name.

Syntax
UniQueryLocaleObject(localeObj, category, localeSpecType, localeName);

Parameters

 * localeObj - LocaleObject - input : The locale object created from UniCreateLocaleObject.
 * category - integer - input : The locale category identifier. Values can be:
 * LC_ALL
 * LC_COLLATE
 * LC_CTYPE
 * LC_MESSAGES
 * LC_MONETARY
 * LC_NUMERIC
 * LC_TIME
 * localeSpecType - integer - input : Values can be:
 * UNI_MBS_STRING_POINTER
 * UNI_TOKEN_POINTER
 * UNI_UCS_STRING_POINTER
 * localeName - VOID - output : Buffer for the locale name.

Returns
An integer with values of:
 * ULS_BADOBJECT
 * ULS_NOMEMORY
 * ULS_NOTOKEN
 * ULS_SUCCESS
 * ULS_UNSUPPORTED

Calling Convention
Cdecl32

Example Code
LocaleObject localeObj; integer     category; integer     localeSpecType; VOID        localeName; integer     rc; ... rc = UniQueryLocaleObject(localeObj, category, localeSpecType, localeName); ...

Related Functions

 * UniCreateLocaleObject
 * UniFreeLocaleObject

OS Version Introduced
OS/2 Warp