--- Saveliy Tretiakov <saveliyt(a)gmail.com> a écrit :
You are wrong.
NtQueryDefaultLocale returns _default_ locale, not current thread's
locale. Same with NtSetDefaultLocale.
This value is stored in registry! And it is the same for all threads in
the system. Current locale may differ for different threads.
One thread may have US locale activated and another may have RU locale
at the same time, while default locale may be set to DE, no matter.
Default thread's locale != current thread's locale.
so do not change my implement of
NtUserGetKeyboardLayoutName
it is correct test in Windows and in ReactOS.
Your implementation of NtUserGetKeyboardLayoutName is a HACK. My code is
correct.
... and returns US when its configured as FR.
beeing a hack or nope, his implementation works.
Kind regards,
Sylvain Petreolle (aka Usurp)
--- --- --- --- --- --- --- --- --- --- --- --- ---
Run your favorite Windows apps with free ReactOS :
http://www.reactos.org
Listen to non-DRMised Music:
http://www.jamendo.com