mirror of
https://github.com/reactos/reactos.git
synced 2025-04-29 10:39:07 +00:00
[NTUSER] Implement NtUserSetThreadLayoutHandles (#4277)
- Modify NtUserSetThreadLayoutHandles prototype. - Implement NtUserSetThreadLayoutHandles function. CORE-11700
This commit is contained in:
parent
28959a2dfd
commit
ea1353e4be
2 changed files with 23 additions and 4 deletions
|
@ -3313,7 +3313,7 @@ NtUserSetSystemTimer(
|
|||
UINT uElapse,
|
||||
TIMERPROC lpTimerFunc);
|
||||
|
||||
DWORD
|
||||
VOID
|
||||
NTAPI
|
||||
NtUserSetThreadLayoutHandles(HKL hNewKL, HKL hOldKL);
|
||||
|
||||
|
|
|
@ -1023,12 +1023,31 @@ Quit:
|
|||
return Status;
|
||||
}
|
||||
|
||||
DWORD
|
||||
VOID
|
||||
APIENTRY
|
||||
NtUserSetThreadLayoutHandles(HKL hNewKL, HKL hOldKL)
|
||||
{
|
||||
STUB;
|
||||
return 0;
|
||||
PTHREADINFO pti;
|
||||
PKL pOldKL, pNewKL;
|
||||
|
||||
UserEnterExclusive();
|
||||
|
||||
pti = GetW32ThreadInfo();
|
||||
pOldKL = pti->KeyboardLayout;
|
||||
if (pOldKL && pOldKL->hkl != hOldKL)
|
||||
goto Quit;
|
||||
|
||||
pNewKL = UserHklToKbl(hNewKL);
|
||||
if (!pNewKL)
|
||||
goto Quit;
|
||||
|
||||
if (IS_IME_HKL(hNewKL) != IS_IME_HKL(hOldKL))
|
||||
pti->hklPrev = hOldKL;
|
||||
|
||||
pti->KeyboardLayout = pNewKL;
|
||||
|
||||
Quit:
|
||||
UserLeave();
|
||||
}
|
||||
|
||||
BOOL
|
||||
|
|
Loading…
Reference in a new issue