What function can be invoked to check what Windows localized version is running?

This is a discussion on What function can be invoked to check what Windows localized version is running? within the Windows Programming forums, part of the Platform Specific Boards category; We use GetVersionEx to get Windows version. There are 24 localized versions of Windows 2000, Windows XP Home and Professional ...

  1. #1
    wow
    wow is offline
    Registered User
    Join Date
    Oct 2005
    Posts
    42

    What function can be invoked to check what Windows localized version is running?

    We use GetVersionEx to get Windows version.

    There are 24 localized versions of Windows 2000, Windows XP Home and Professional editions: English, German, Japanese, Chinese (Traditional), Chinese (Simplified), Korean, Arabic, Hebrew, Spanish, French, Italian, Swedish, Dutch, Brazilian, Norwegian, Danish, Finnish, Czech, Polish, Hungarian, Russian, Portuguese, Greek, Turkish.

    What function or APi can be invoked to check what Windows localized version is running?

    Thanks,

  2. #2
    Registered User
    Join Date
    May 2006
    Posts
    34
    GetLocaleInfoEx (or GetLocaleInfo) might work...but not sure since I never tried it:

    http://msdn.microsoft.com/library/de...caleInfoEx.asp

    or something more modern might be to use WMI with the Win32_OperatingSystem class.

    http://msdn.microsoft.com/library/de...tingsystem.asp

    Here's some example code that gives those OS name, but you can easily change it to print out the OSLanguage integer instead of the Name string in the example.

    http://msdn.microsoft.com/library/de...l_computer.asp

    on my system it returns the integer 1033, which translates to "English United States".
    Last edited by veecee; 05-29-2006 at 05:36 PM.

  3. #3
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    There are also multi-language versions of Windows. If you are looking for the user interface language to use, you should call the GetUserDefaultUILanguage function. Also, see MSDN: Developing Multilingual Applications.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 05-13-2011, 09:28 AM
  2. doubt in c parser coding
    By akshara.sinha in forum C Programming
    Replies: 4
    Last Post: 12-23-2007, 01:49 PM
  3. Problem with Visual C++ Object-Oriented Programming Book.
    By GameGenie in forum C++ Programming
    Replies: 9
    Last Post: 08-30-2005, 12:21 AM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 02:27 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21