Results 1 to 3 of 3

Thread: [RESOLVED] Please explain GetSystemDefaultLangID() API

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2006
    Location
    Paris
    Posts
    301

    Resolved [RESOLVED] Please explain GetSystemDefaultLangID() API

    Hi
    With ref to API (GetSystemDefaultLangID()) I'd like to know:

    1) Can it be used as a solid way to "regionalize" your app,
    does it work with all Win OS ? From 98 to Seven ? Is it reliable ?

    2) The value returned can be "hacked" ? Can the user change this info, I mean the average user can easely do it or does it take an hacker on steroids to modify it ?

    3) There are codes for even the smallest countries, for example Uruguay, Luxembourg, Panama, Israel.... This means that manufacturers produce the OS marketed exactly for these countries ?? Please explain, thanks.

    Regards

  2. #2
    PowerPoster RhinoBull's Avatar
    Join Date
    Mar 2004
    Location
    New Amsterdam
    Posts
    24,132

    Re: Please explain GetSystemDefaultLangID() API

    1) a - Can it be used as a solid way to "regionalize" your app?
    I don't think so, it only returns local system's language identifier. Based on returned value you will have to assign appropriate language (if that's what you want) but you will have to develop that all by yourself.

    1) b - does it work with all Win OS ? From 98 to Seven ? Is it reliable?
    It has to be at least Windows 2000 Professional or Windows 2000 Server.

    2) The value returned can be "hacked" ? Can the user change this info, I mean the average user can easely do it or does it take an hacker on steroids to modify it ?
    It's an OS level system info so if someone actually did hack it then you better restore it.

    3) There are codes for even the smallest countries...
    Yes, of course. Many contries may have English as national language but dialects are all different.
    That's basically why there is a constant for Primary Language and the Sublanguage:
    LANG_ENGLISH / SUBLANG_ENGLISH_AUS
    LANG_ENGLISH / SUBLANG_ENGLISH_CAN
    LANG_ENGLISH / SUBLANG_ENGLISH_INDIA
    LANG_ENGLISH / SUBLANG_ENGLISH_UK
    LANG_ENGLISH / SUBLANG_ENGLISH_US

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Nov 2006
    Location
    Paris
    Posts
    301

    Re: Please explain GetSystemDefaultLangID() API

    thank's !

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