GetUserDefaultLangID function (winnls.h)
Returns the language identifier of the Region Format setting for the current user.
Syntax
LANGID GetUserDefaultLangID();
Return value
Returns the language identifier for the current user as set under Control Panel > Clock, Language, and Region > Change date, time, or number formats > Formats tab > Format dropdown.
For more information on language identifiers, see Language Identifier Constants and Strings.
Remarks
The return value is not necessarily the same as that returned by GetSystemDefaultLangID, even for a single-user computer.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps | UWP apps] |
Minimum supported server | Windows 2000 Server [desktop apps | UWP apps] |
Target Platform | Windows |
Header | winnls.h (include Windows.h) |
Library | Kernel32.lib |
DLL | Kernel32.dll |