Hi!
How can I get the language version of Windows installed? (not the locale)
Thanks...
Printable View
Hi!
How can I get the language version of Windows installed? (not the locale)
Thanks...
check the API docs; I'm sure there's an API call for this, but I can't remember what it is
you might find that from registry...
Cheers...
Thanks for your answers. I thought what you thought but which API or where in registry? I couldn't find... Thanks in advance...
VB Code:
Private Const LOCALE_USER_DEFAULT = &H400 Private Const LOCALE_SNATIVELANGNAME = &H4 Private Declare Function GetLocaleInfo Lib "kernel32" Alias "GetLocaleInfoA" (ByVal Locale As Long, ByVal LCType As Long, ByVal lpLCData As String, ByVal cchData As Long) As Long Private Function GetInfo(ByVal lInfo As Long) As String Dim Buffer As String, Ret As String Buffer = String$(256, 0) Ret = GetLocaleInfo(LOCALE_USER_DEFAULT, lInfo, Buffer, Len(Buffer)) If Ret > 0 Then GetInfo = Left$(Buffer, Ret - 1) Else GetInfo = "" End If End Function Private Sub Command1_Click() MsgBox GetInfo(LOCALE_SNATIVELANGNAME) End Sub
I tried this. This returns the locale info which I do not want. It returns the language selected in the Regional Settings, therefore, it changes. I want the true installation language version of Windows.