API Question: GetSystemDefaultUILanguage on NT 4.0

P

Peter Wyss

Hy,

I use the GetSystemDefaultUILanguage Function in the Kernel32.dll... but
this one is on Windows NT 4.0 not available...The Function is for
getting the following Information:

-> Use GetSystemDefaultUILanguage to get the original language of the system

On NT 4.0 are only the following Functions available:
- GetSystemDefaultLCID
- GetSystemDefaultLangID

but this one i can't use, because with this functions i can't get the
original language of the System:

- When i set the "Regional Settings Properties" to "Italian (Swiss)" on
a english Windows NT Workstation, the Functions returns 2064 (which
stands for Italien (Swiss)), but i want 1033 as return, which stands for
the original language of the OS (english).

How can i get the original language of the OS (on NT 4.0)?

Thanks,
Peter
 
J

Jon

You could perhaps take a look at the version information for a selected
operating system dll

eg using

GetFileVersionInfo
GetFileVersionInfoSize
VerQueryValue

Jon
 
J

Jon

Might be able to do something with WMI too, if installed

vbscript example.....


Set WMI = GetObject("WinMgmts://")

Set w1 = WMI.InstancesOf("WIN32_OPERATINGSYSTEM")
For each w2 in w1
msgbox w2.oslanguage
Next


Jon
 
T

Torgeir Bakken \(MVP\)

Peter said:
Hy,

I use the GetSystemDefaultUILanguage Function in the Kernel32.dll... but
this one is on Windows NT 4.0 not available...The Function is for
getting the following Information:

-> Use GetSystemDefaultUILanguage to get the original language of the
system
[snip]

How can i get the original language of the OS (on NT 4.0)?
Hi

A generic method that covers all OS versions seems to be to get the
language from the FileVersionInfo of User.exe, alternatively
Shell32.dll, more about this here:

HOWTO: Determine Default Language ID of Windows 95 or WinNT
http://support.microsoft.com/default.aspx?kbid=181604

Some hits from a Google newsgroup search as well:

http://groups.google.com/[email protected]

http://groups.google.com/groups?threadm=45db01c1e6d9$f070caa0$3aef2ecf@TKMSFTNGXA09

http://groups.google.com/groups?selm=p%[email protected]
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top