GetSystemDefaultLCID function (winnls.h)
Returns the locale identifier for the system locale.
Note Any application that runs only on Windows Vista and later should use GetSystemDefaultLocaleName in preference to this function.
Syntax
LCID GetSystemDefaultLCID();
Return value
Returns the locale identifier for the system default locale, identified by LOCALE_SYSTEM_DEFAULT.
Remarks
This function can retrieve data from custom locales. Data is not guaranteed to be the same from computer to computer or between runs of an application. If your application must persist or transmit data, see Using Persistent Locale Data.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | winnls.h (include Windows.h) |
Library | Kernel32.lib |
DLL | Kernel32.dll |