The LocaleObject data type acts as a logical instance of a specific locale. A LocaleObject parameter is passed to a number of functions in order to identify the locale whose information is being requested.

The UniCreateLocaleObject function is used to initialize a LocaleObject which refers to the specified locale. The locale can be identified in one of the following ways:

Note: Note that, in the event that a specified locale name applies to both a user locale and a system locale, ULS will always give precedence to the user locale.

If the desired locale name and/or LocaleToken is unknown, one or the other may be obtained in various ways:

In addition, once you have the LocaleObject for a locale, you can retrieve its corresponding locale name or LocaleToken at any subsequent time using UniQueryLocaleObject.

A LocaleObject should be freed using UniFreeLocaleObject once it is no longer needed.


[Back] [Next]