Skip to content

Latest commit

 

History

History
59 lines (41 loc) · 1.09 KB

LCIDToLocaleName.md

File metadata and controls

59 lines (41 loc) · 1.09 KB

Home

Function name : LCIDToLocaleName

Group: National Language Support - Library: kernel32


Converts a locale identifier to a locale name.


Declaration:

int LCIDToLocaleName(
  _In_       LCID Locale,
  _Out_opt_  LPWSTR lpName,
  _In_       int cchName,
  _In_       DWORD dwFlags
);  

FoxPro declaration:

DECLARE INTEGER LCIDToLocaleName IN kernel32;
	INTEGER nLocale,;
	STRING @lpName,;
	INTEGER cchName,;
	INTEGER dwFlags  

Parameters:

Locale [in] Locale identifier to translate.

lpName [out, optional] Pointer to a buffer in which this function retrieves the locale name, or one of predefined values.

cchName [in] Size, in characters, of the locale name buffer.

dwFlags [in] Before Windows 7: Reserved; should always be 0.


Return value:

Returns the count of characters, including the terminating null character, in the locale name if successful.


Comments:

See also: LocaleNameToLCID, GetUserDefaultLCID