Hello back! Long time no see... [img]/ubbthreads/images/icons/wink.gif[/img]
Could anyone assist me with my problem. I describe... Working on an international (3xlanguage) autorun menu. Need to get user input locale information - which languages user could type/view. As I know Windows 2000/XP stores that information in registry at:
"HKEY_CURRENT_USER\Keyboard Layout\Preload" in form of plain strings:
"1"="40c"
"2"="409"
"3"="419"
in alphabetical order (ie. 1=Albanian, 2=English, 3=Russian Japanese if added will be placed as 3 and russian will be replaced as 4)
On the other hand Windows 95/98 stores it not exactly the same:
"HKEY_CURRENT_USER\Keyboard Layout\Preload\1\"
"Default"="40c"
"HKEY_CURRENT_USER\Keyboard Layout\Preload\2\"
"Default"="409"
"HKEY_CURRENT_USER\Keyboard Layout\Preload\3\"
"Default"="419"
Now what I need... As I see wildcards method using "*" with Registry.GetValueData "HKEY_CURRENT_USER\Keyboard Layout\Preload\*\" procedure fails to get those 40c, 409, 419... [img]/ubbthreads/images/icons/frown.gif[/img] And I think it's not quite bright to make a program to check for like 100 of the bogus keys - like check if "HKEY_CURRENT_USER\Keyboard Layout\Preload\3\" got a "Default" value=409 as 409 could be "HKEY_CURRENT_USER\Keyboard Layout\Preload\4\" or even "\11" as it uses alphabetical order. How it could be done better? Any ideas? Btw, if anyone here uses Win Me, I'm quite interested if it uses the same method as Win 2000/XP or Win 95/98... Leave me a note, please.
Could anyone assist me with my problem. I describe... Working on an international (3xlanguage) autorun menu. Need to get user input locale information - which languages user could type/view. As I know Windows 2000/XP stores that information in registry at:
"HKEY_CURRENT_USER\Keyboard Layout\Preload" in form of plain strings:
"1"="40c"
"2"="409"
"3"="419"
in alphabetical order (ie. 1=Albanian, 2=English, 3=Russian Japanese if added will be placed as 3 and russian will be replaced as 4)
On the other hand Windows 95/98 stores it not exactly the same:
"HKEY_CURRENT_USER\Keyboard Layout\Preload\1\"
"Default"="40c"
"HKEY_CURRENT_USER\Keyboard Layout\Preload\2\"
"Default"="409"
"HKEY_CURRENT_USER\Keyboard Layout\Preload\3\"
"Default"="419"
Now what I need... As I see wildcards method using "*" with Registry.GetValueData "HKEY_CURRENT_USER\Keyboard Layout\Preload\*\" procedure fails to get those 40c, 409, 419... [img]/ubbthreads/images/icons/frown.gif[/img] And I think it's not quite bright to make a program to check for like 100 of the bogus keys - like check if "HKEY_CURRENT_USER\Keyboard Layout\Preload\3\" got a "Default" value=409 as 409 could be "HKEY_CURRENT_USER\Keyboard Layout\Preload\4\" or even "\11" as it uses alphabetical order. How it could be done better? Any ideas? Btw, if anyone here uses Win Me, I'm quite interested if it uses the same method as Win 2000/XP or Win 95/98... Leave me a note, please.
Comment