GetUserDefaultLangID function

Expand
1 out of 2 rated this helpful - Rate this topic

GetUserDefaultLangID function

Applies to: desktop apps only

Returns the language identifier for the current user locale.

Syntax

LANGID GetUserDefaultLangID(void);

Parameters

This function has no parameters.

Return value

Returns the language identifier for the current user locale. For more information, 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

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

Header

Winnls.h (include Windows.h)

Library

Kernel32.lib

DLL

Kernel32.dll

See also

National Language Support
National Language Support Functions
GetSystemDefaultLangID

 

 

Send comments about this topic to Microsoft

Build date: 5/5/2012

Did you find this helpful?
(1500 characters remaining)
Community Additions ADD
The explanation is misleading!
What this function actually returns is the Format settings (for date, time, currency, etc.) of current user in Regional and Language Options in Control Panel. Anyone could simply try it out since changing the format does not require a system restart. To read "Language for Non-Unicode programs", use GetSystemDefaultLangID().
2/10/2012