IMultiLanguage::GetNumber...     IMultiLanguage::GetRfc176...     IMultiLanguage Interface    
Web Workshop (Miscellaneous)

IMultiLanguage::GetRfc1766FromLcid Method


Retrieves the RFC1766-conforming name that corresponds to the given locale identifier (LCID).

Syntax

HRESULT GetRfc1766FromLcid(
    LCID Locale,
    BSTR *pbstrRfc1766
);

Parameters

Locale
[in] LCID for which the caller wants to retrieve the RFC1766-conforming name.
pbstrRfc1766
[out] Address of the buffer where the caller receives the RFC1766-conforming name string.

Return Value

Returns one of the following values:

S_OK Success.
E_FAIL The method could not get the information from the database or the system.
E_INVALIDARG One or more of the arguments are invalid.

Remarks

A client uses this method to retrieve a human-readable name for the specified LCID. For example, this method could be used to build an acceptable-language header for Internet applications. The method retrieves the information from the MIME database character set extension if it exists; otherwise, it uses National Language Support (NLS) functions to build two-letter names on the fly.

Windows CE

Windows CE Use version 2.12 and later
Minimum availability Internet Explorer 4.0

See Also

IMultiLanguage::GetLcidFromRfc1766, IMultiLanguage::GetRfc1766Info, RFC1766INFO



Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.