Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
MSDN Library


Windows Mobile 6.5
A version of this page is also available for

This method retrieves the RFC1766-conforming name that corresponds to the given locale identifier (LCID).

HRESULT GetRfc1766FromLcid( 
  LCID Locale,
  BSTR* pbstrRfc1766


[in] LCID for which the caller wants to retrieve the RFC1766-conforming name.


[out] Pointer to the buffer where the caller receives the RFC1766-conforming name string.

The following table shows the possible return values for this method.

Value Description




The method could not get the information from the database or the system.


One or more of the arguments are invalid.

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.

Headermlang.h, mlang.idl
Windows Embedded CEWindows CE .NET 4.0 and later
Windows MobileWindows Mobile Version 5.0 and later

Community Additions

© 2015 Microsoft