mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 12:24:48 +00:00
[Win32k]
- Add zap active and focus call. Fix comments. svn path=/trunk/; revision=56831
This commit is contained in:
parent
cab33b0688
commit
03578273c3
2 changed files with 12 additions and 3 deletions
|
@ -246,8 +246,8 @@ IntNotifyWinEvent(
|
|||
// Must be inside the event window.
|
||||
if ( (pEH->eventMin <= Event) && (pEH->eventMax >= Event))
|
||||
{
|
||||
// If all process || all thread || other thread same process
|
||||
// If ^skip own thread && ((Pid && CPid == Pid && ^skip own process) || all process)
|
||||
// if all process || all thread || other thread same process
|
||||
// if ^skip own thread && ((Pid && CPid == Pid && ^skip own process) || all process)
|
||||
if ( (!pEH->idProcess || pEH->idProcess == PtrToUint(pti->pEThread->Cid.UniqueProcess)) &&
|
||||
(!(pEH->Flags & WINEVENT_SKIPOWNPROCESS) || pEH->head.pti->ppi != pti->ppi) &&
|
||||
(!pEH->idThread || pEH->idThread == PtrToUint(pti->pEThread->Cid.UniqueThread)) &&
|
||||
|
|
|
@ -120,6 +120,15 @@ NtUserCallNoParam(DWORD Routine)
|
|||
case NOPARAM_ROUTINE_LOADUSERAPIHOOK:
|
||||
RETURN(UserLoadApiHook());
|
||||
|
||||
case NOPARAM_ROUTINE_ZAPACTIVEANDFOUS:
|
||||
{
|
||||
PTHREADINFO pti = PsGetCurrentThreadWin32Thread();
|
||||
ERR("Zapping the Active and Focus window out of the Queue!\n");
|
||||
pti->MessageQueue->spwndFocus = NULL;
|
||||
pti->MessageQueue->spwndActive = NULL;
|
||||
RETURN(0);
|
||||
}
|
||||
|
||||
default:
|
||||
ERR("Calling invalid routine number 0x%x in NtUserCallNoParam\n", Routine);
|
||||
EngSetLastError(ERROR_INVALID_PARAMETER);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue