get LCID from string

1.3k views Asked by At

How to get LCID from string like "en-US"?

I know about GetLocaleInfoEx function, but it doesn't work on windows XP.

Can I get LCID from CRT locale?

UPD: Can I convert between LCID and CRT locale (created by _create_locale function)? CRT locale may be created by _create_locale and string - Locale name.

1

There are 1 answers

0
MushyMiddle On BEST ANSWER

http://msdn.microsoft.com/en-us/library/aa741018%28v=vs.85%29.aspx

Seems to go back as far as IE 4.0, so you should be OK on XP.