mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 11:27:06 +00:00
Add two more query window types.
svn path=/trunk/; revision=34296
This commit is contained in:
parent
033f85022a
commit
b82fda4139
2 changed files with 15 additions and 3 deletions
|
@ -1903,6 +1903,8 @@ NtUserQueryUserCounters(
|
|||
|
||||
#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
|
||||
|
|
|
@ -3952,12 +3952,14 @@ NtUserMoveWindow(
|
|||
|
||||
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
|
||||
|
@ -3987,6 +3989,14 @@ NtUserQueryWindow(HWND hWnd, DWORD Index)
|
|||
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:
|
||||
Result = (DWORD)MsqIsHung(Window->MessageQueue);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue