Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
30aa9055
Commit
30aa9055
authored
Mar 02, 2023
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win32u: Move window query functions around.
parent
3a4859e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
40 deletions
+40
-40
input.c
dlls/win32u/input.c
+40
-40
No files found.
dlls/win32u/input.c
View file @
30aa9055
...
...
@@ -535,6 +535,46 @@ static WCHAR kbd_tables_vkey_to_wchar( const KBDTABLES *tables, UINT vkey, const
#undef NEXT_ENTRY
/*******************************************************************
* NtUserGetForegroundWindow (win32u.@)
*/
HWND
WINAPI
NtUserGetForegroundWindow
(
void
)
{
HWND
ret
=
0
;
SERVER_START_REQ
(
get_thread_input
)
{
req
->
tid
=
0
;
if
(
!
wine_server_call_err
(
req
))
ret
=
wine_server_ptr_handle
(
reply
->
foreground
);
}
SERVER_END_REQ
;
return
ret
;
}
/* see GetActiveWindow */
HWND
get_active_window
(
void
)
{
GUITHREADINFO
info
;
info
.
cbSize
=
sizeof
(
info
);
return
NtUserGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
info
)
?
info
.
hwndActive
:
0
;
}
/* see GetCapture */
HWND
get_capture
(
void
)
{
GUITHREADINFO
info
;
info
.
cbSize
=
sizeof
(
info
);
return
NtUserGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
info
)
?
info
.
hwndCapture
:
0
;
}
/* see GetFocus */
HWND
get_focus
(
void
)
{
GUITHREADINFO
info
;
info
.
cbSize
=
sizeof
(
info
);
return
NtUserGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
info
)
?
info
.
hwndFocus
:
0
;
}
/**********************************************************************
* NtUserAttachThreadInput (win32u.@)
*/
...
...
@@ -1712,46 +1752,6 @@ BOOL WINAPI release_capture(void)
return
ret
;
}
/*******************************************************************
* NtUserGetForegroundWindow (win32u.@)
*/
HWND
WINAPI
NtUserGetForegroundWindow
(
void
)
{
HWND
ret
=
0
;
SERVER_START_REQ
(
get_thread_input
)
{
req
->
tid
=
0
;
if
(
!
wine_server_call_err
(
req
))
ret
=
wine_server_ptr_handle
(
reply
->
foreground
);
}
SERVER_END_REQ
;
return
ret
;
}
/* see GetActiveWindow */
HWND
get_active_window
(
void
)
{
GUITHREADINFO
info
;
info
.
cbSize
=
sizeof
(
info
);
return
NtUserGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
info
)
?
info
.
hwndActive
:
0
;
}
/* see GetCapture */
HWND
get_capture
(
void
)
{
GUITHREADINFO
info
;
info
.
cbSize
=
sizeof
(
info
);
return
NtUserGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
info
)
?
info
.
hwndCapture
:
0
;
}
/* see GetFocus */
HWND
get_focus
(
void
)
{
GUITHREADINFO
info
;
info
.
cbSize
=
sizeof
(
info
);
return
NtUserGetGUIThreadInfo
(
GetCurrentThreadId
(),
&
info
)
?
info
.
hwndFocus
:
0
;
}
/*****************************************************************
* set_focus_window
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment