Author: jimtabor
Date: Wed Jul  4 22:51:16 2012
New Revision: 56831

URL: http://svn.reactos.org/svn/reactos?rev=56831&view=rev
Log:
[Win32k]
- Add zap active and focus call. Fix comments.

Modified:
    trunk/reactos/win32ss/user/ntuser/event.c
    trunk/reactos/win32ss/user/ntuser/simplecall.c

Modified: trunk/reactos/win32ss/user/ntuser/event.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/event.c?rev=56831&r1=56830&r2=56831&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/event.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/event.c [iso-8859-1] Wed Jul  4 22:51:16 
2012
@@ -246,8 +246,8 @@
      // 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)) &&

Modified: trunk/reactos/win32ss/user/ntuser/simplecall.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/win32ss/user/ntuser/simplecall.c?rev=56831&r1=56830&r2=56831&view=diff
==============================================================================
--- trunk/reactos/win32ss/user/ntuser/simplecall.c [iso-8859-1] (original)
+++ trunk/reactos/win32ss/user/ntuser/simplecall.c [iso-8859-1] Wed Jul  4 
22:51:16 2012
@@ -118,7 +118,16 @@
          RETURN( (DWORD_PTR)IntReleaseCapture());
 
       case NOPARAM_ROUTINE_LOADUSERAPIHOOK:
-          RETURN(UserLoadApiHook());
+         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);


Reply via email to