PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How do we get the locale of a device?

angedelamort · 24 Jul 2002, 14:32 UTC
I'm trying to find a regkey that return the current locale of the os. Anyone has a hint?

TIA
angedelamort · 24 Jul 2002, 14:36 UTC
What I mean by the locale is the current language :)
Hi,

I have not got any docs with me but it may be worth looking at SystemParametersInfo()

I know you can get the device name by doing the following:
Code:

TCHAR pdaname[100];
SystemParametersInfo(SPI_GETOEMINFO, 100, pdaname, SPIF_SENDCHANGE || SPIF_UPDATEINIFILE);


on my iPaq 3630 this returns "Compaq iPAQ H3600" into pdaname

I hope this is of some help, but like I said, I have no docs with me

Bad
angedelamort · 24 Jul 2002, 15:05 UTC
I'll have a look, thanks
angedelamort · 24 Jul 2002, 15:09 UTC
Thanks for the hint, I just found the function:

LANGID GetSystemDefaultLangID(void);