Expand Minimize

GetSystemDefaultLCID function

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(void);

Parameters

This function has no parameters.

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

Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

Header

Winnls.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

National Language Support
National Language Support Functions
ConvertDefaultLocale
GetLocaleInfo
GetSystemDefaultLocaleName
GetUserDefaultLCID

 

 

Community Additions

ADD
Show:
© 2014 Microsoft