win32u: Move NtUserRealChildWindowFromPoint implementation from user32.

This commit is contained in:
Jacek Caban 2022-12-08 01:01:05 +01:00 committed by Alexandre Julliard
parent fab6c2d687
commit 026700027e
7 changed files with 22 additions and 3 deletions

View file

@ -107,8 +107,7 @@ HWND WINAPI ChildWindowFromPoint( HWND parent, POINT pt )
*/
HWND WINAPI RealChildWindowFromPoint( HWND parent, POINT pt )
{
return NtUserChildWindowFromPointEx( parent, pt.x, pt.y,
CWP_SKIPTRANSPARENT | CWP_SKIPINVISIBLE );
return NtUserRealChildWindowFromPoint( parent, pt.x, pt.y );
}
/*******************************************************************

View file

@ -239,6 +239,7 @@ static void * const syscalls[] =
NtUserPostThreadMessage,
NtUserPrintWindow,
NtUserQueryInputContext,
NtUserRealChildWindowFromPoint,
NtUserRedrawWindow,
NtUserRegisterClassExWOW,
NtUserRegisterHotKey,

View file

@ -1117,7 +1117,7 @@
@ stdcall -syscall NtUserQueryInputContext(long long)
@ stub NtUserQuerySendMessage
@ stub NtUserQueryWindow
@ stub NtUserRealChildWindowFromPoint
@ stdcall -syscall NtUserRealChildWindowFromPoint(long long long)
@ stub NtUserRealInternalGetMessage
@ stub NtUserRealWaitMessageEx
@ stdcall -syscall NtUserRedrawWindow(long ptr long long)

View file

@ -2296,6 +2296,14 @@ HWND WINAPI NtUserChildWindowFromPointEx( HWND parent, LONG x, LONG y, UINT flag
return ret;
}
/*******************************************************************
* NtUserRealChildWindowFromPoint (win32u.@)
*/
HWND WINAPI NtUserRealChildWindowFromPoint( HWND parent, LONG x, LONG y )
{
return NtUserChildWindowFromPointEx( parent, x, y, CWP_SKIPTRANSPARENT | CWP_SKIPINVISIBLE );
}
/*******************************************************************
* get_work_rect
*

View file

@ -225,6 +225,7 @@
SYSCALL_ENTRY( NtUserPostThreadMessage ) \
SYSCALL_ENTRY( NtUserPrintWindow ) \
SYSCALL_ENTRY( NtUserQueryInputContext ) \
SYSCALL_ENTRY( NtUserRealChildWindowFromPoint ) \
SYSCALL_ENTRY( NtUserRedrawWindow ) \
SYSCALL_ENTRY( NtUserRegisterClassExWOW ) \
SYSCALL_ENTRY( NtUserRegisterHotKey ) \

View file

@ -2423,6 +2423,15 @@ NTSTATUS WINAPI wow64_NtUserGetRawInputDeviceList( UINT *args )
}
}
NTSTATUS WINAPI wow64_NtUserRealChildWindowFromPoint( UINT *args )
{
HWND parent = get_handle( &args );
LONG x = get_ulong( &args );
LONG y = get_ulong( &args );
return HandleToUlong( NtUserRealChildWindowFromPoint( parent, x, y ));
}
NTSTATUS WINAPI wow64_NtUserRegisterClassExWOW( UINT *args )
{
const WNDCLASSEXW32 *wc32 = get_ptr( &args );

View file

@ -812,6 +812,7 @@ BOOL WINAPI NtUserPostMessage( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lpa
BOOL WINAPI NtUserPostThreadMessage( DWORD thread, UINT msg, WPARAM wparam, LPARAM lparam );
BOOL WINAPI NtUserPrintWindow( HWND hwnd, HDC hdc, UINT flags );
UINT_PTR WINAPI NtUserQueryInputContext( HIMC handle, UINT attr );
HWND WINAPI NtUserRealChildWindowFromPoint( HWND parent, LONG x, LONG y );
BOOL WINAPI NtUserRedrawWindow( HWND hwnd, const RECT *rect, HRGN hrgn, UINT flags );
ATOM WINAPI NtUserRegisterClassExWOW( const WNDCLASSEXW *wc, UNICODE_STRING *name, UNICODE_STRING *version,
struct client_menu_name *client_menu_name, DWORD fnid, DWORD flags,