Question whats the Globalization Equivalent of GetUserDefaultLangID?

Evan1993

Well-known member
Joined
Apr 2, 2008
Messages
47
Programming Experience
1-3
I can't find the equivalent of GetUserDefaultLangID.. if any knows it then please tell me. :)
 
VB.NET:
Dim no As CultureInfo = System.Globalization.CultureInfo.CurrentCulture
MessageBox.Show(no.ToString)
MessageBox.Show(GetUserDefaultLangID())
First Message box: en-us
Second Message box: 57279497

they are not the same thing :(
 
LCID property returns the ID. The number you quoted is not possible because GetUserDefaultLangID returns a 16bit integer value.
 
ahh..
heres my old declare:
VB.NET:
Public Declare Auto Function GetUserDefaultLangID Lib "kernel32" Alias "GetSystemDefaultLangID" () As Integer

heres my new one
VB.NET:
    Public Declare Auto Function GetUserDefaultLangID Lib "kernel32" Alias "GetSystemDefaultLangID" () As Short

So the real equivalent is CultureInfo.CurrentCulture.LCID

thanks guys.
 
Back
Top