LcidToRfc1766 function
[LcidToRfc1766 is available for use in the operating systems specified in the Requirements section. It may be altered or unavailable in subsequent versions. Instead, use LCIDToLocaleName or DownlevelLCIDToLocaleName. ]
Translates a Windows locale identifier (LCID) to a human-readable name that conforms to RFC-1766.
Syntax
HRESULT LcidToRfc1766(
LCID Locale,
LPTSTR pszRfc1766,
int nChar
);
Parameters
Locale
The LCID for which the caller wants to retrieve the conforming RFC-1766 name.pszRfc1766
A pointer to a string that receives the conforming RFC-1766 name of the locale.nChar
An integer that contains the number of characters in the name.
Return value
If this function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Requirements
Minimum supported client |
Windows XP |
Minimum supported server |
Windows 2000 Server |
Header |
Mlang.h |
DLL |
Mlang.dll |
Unicode and ANSI names |
LcidToRfc1766W (Unicode) and LcidToRfc1766A (ANSI) |