Results 1 to 6 of 6

Thread: Windows Version Language

  1. #1

    Thread Starter
    Lively Member bumbala's Avatar
    Join Date
    Sep 2002
    Posts
    111

    Question Windows Version Language

    Hi!

    How can I get the language version of Windows installed? (not the locale)

    Thanks...

  2. #2
    PowerPoster
    Join Date
    Aug 2001
    Location
    new jersey
    Posts
    2,904
    check the API docs; I'm sure there's an API call for this, but I can't remember what it is

  3. #3
    ^:^...ANGEL...^:^ wrack's Avatar
    Join Date
    Mar 2002
    Location
    Melbourne, AUSTRALIA
    Posts
    2,695
    you might find that from registry...

    Cheers...

  4. #4

    Thread Starter
    Lively Member bumbala's Avatar
    Join Date
    Sep 2002
    Posts
    111
    Thanks for your answers. I thought what you thought but which API or where in registry? I couldn't find... Thanks in advance...

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Try this

    VB Code:
    1. Private Const LOCALE_USER_DEFAULT = &H400
    2. Private Const LOCALE_SNATIVELANGNAME = &H4
    3.  
    4. 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
    5.  
    6. Private Function GetInfo(ByVal lInfo As Long) As String
    7.     Dim Buffer As String, Ret As String
    8.     Buffer = String$(256, 0)
    9.     Ret = GetLocaleInfo(LOCALE_USER_DEFAULT, lInfo, Buffer, Len(Buffer))
    10.     If Ret > 0 Then
    11.         GetInfo = Left$(Buffer, Ret - 1)
    12.     Else
    13.         GetInfo = ""
    14.     End If
    15. End Function
    16.  
    17. Private Sub Command1_Click()
    18. MsgBox GetInfo(LOCALE_SNATIVELANGNAME)
    19. End Sub

  6. #6

    Thread Starter
    Lively Member bumbala's Avatar
    Join Date
    Sep 2002
    Posts
    111
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width