mirror of
https://github.com/reactos/reactos.git
synced 2025-04-30 19:19:00 +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,
|
UINT uElapse,
|
||||||
TIMERPROC lpTimerFunc);
|
TIMERPROC lpTimerFunc);
|
||||||
|
|
||||||
DWORD
|
VOID
|
||||||
NTAPI
|
NTAPI
|
||||||
NtUserSetThreadLayoutHandles(HKL hNewKL, HKL hOldKL);
|
NtUserSetThreadLayoutHandles(HKL hNewKL, HKL hOldKL);
|
||||||
|
|
||||||
|
|
|
@ -1023,12 +1023,31 @@ Quit:
|
||||||
return Status;
|
return Status;
|
||||||
}
|
}
|
||||||
|
|
||||||
DWORD
|
VOID
|
||||||
APIENTRY
|
APIENTRY
|
||||||
NtUserSetThreadLayoutHandles(HKL hNewKL, HKL hOldKL)
|
NtUserSetThreadLayoutHandles(HKL hNewKL, HKL hOldKL)
|
||||||
{
|
{
|
||||||
STUB;
|
PTHREADINFO pti;
|
||||||
return 0;
|
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
|
BOOL
|
||||||
|
|
Loading…
Reference in a new issue