Author: jimtabor
Date: Fri Jul 4 13:52:22 2008
New Revision: 34296
URL:
http://svn.reactos.org/svn/reactos?rev=34296&view=rev
Log:
Add two more query window types.
Modified:
trunk/reactos/include/reactos/win32k/ntuser.h
trunk/reactos/subsystems/win32/win32k/ntuser/window.c
Modified: trunk/reactos/include/reactos/win32k/ntuser.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/include/reactos/win32k/ntu…
==============================================================================
--- trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] (original)
+++ trunk/reactos/include/reactos/win32k/ntuser.h [iso-8859-1] Fri Jul 4 13:52:22 2008
@@ -1903,6 +1903,8 @@
#define QUERY_WINDOW_UNIQUE_PROCESS_ID 0x00
#define QUERY_WINDOW_UNIQUE_THREAD_ID 0x01
+#define QUERY_WINDOW_ACTIVE 0x02
+#define QUERY_WINDOW_FOCUS 0x03
#define QUERY_WINDOW_ISHUNG 0x04
DWORD
NTAPI
Modified: trunk/reactos/subsystems/win32/win32k/ntuser/window.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/subsystems/win32/win32k/nt…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] (original)
+++ trunk/reactos/subsystems/win32/win32k/ntuser/window.c [iso-8859-1] Fri Jul 4 13:52:22
2008
@@ -3952,12 +3952,14 @@
0 = QWUniqueProcessId
1 = QWUniqueThreadId
+ 2 = QWActiveWindow
+ 3 = QWFocusWindow
4 = QWIsHung Implements IsHungAppWindow found
by KJK::Hyperion.
- 9 = QWKillWindow When I called this with hWnd ==
- DesktopWindow, it shutdown the system
- and rebooted.
+ 9 = QWKillWindow When I called this with hWnd ==
+ DesktopWindow, it shutdown the system
+ and rebooted.
*/
/*
* @implemented
@@ -3985,6 +3987,14 @@
case QUERY_WINDOW_UNIQUE_THREAD_ID:
Result = (DWORD)IntGetWndThreadId(Window);
+ break;
+
+ case QUERY_WINDOW_ACTIVE:
+ Result = (DWORD)UserGetActiveWindow();
+ break;
+
+ case QUERY_WINDOW_FOCUS:
+ Result = (DWORD)IntGetFocusWindow();
break;
case QUERY_WINDOW_ISHUNG: