|
-
Nov 7th, 2002, 03:58 AM
#1
Thread Starter
Lively Member
Windows Version Language
Hi!
How can I get the language version of Windows installed? (not the locale)
Thanks...
-
Nov 7th, 2002, 06:13 AM
#2
PowerPoster
check the API docs; I'm sure there's an API call for this, but I can't remember what it is
-
Nov 7th, 2002, 06:16 AM
#3
^:^...ANGEL...^:^
you might find that from registry...
Cheers...
-
Nov 7th, 2002, 08:42 AM
#4
Thread Starter
Lively Member
Thanks for your answers. I thought what you thought but which API or where in registry? I couldn't find... Thanks in advance...
-
Nov 7th, 2002, 08:56 AM
#5
Try this
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
-
Nov 7th, 2002, 10:31 AM
#6
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|