Commit a23c1279 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

win32u: Use syscall interface for NtUserCallHwnd and NtUserCallHwndParam.

parent 47dd8a6a
......@@ -1136,8 +1136,6 @@ static struct unix_funcs unix_funcs =
NtGdiUnrealizeObject,
NtGdiUpdateColors,
NtGdiWidenPath,
NtUserCallHwnd,
NtUserCallHwndParam,
NtUserCallNextHookEx,
NtUserCallNoParam,
NtUserCallOneParam,
......
......@@ -106,6 +106,8 @@ static void * const syscalls[] =
NtUserAttachThreadInput,
NtUserBeginPaint,
NtUserBuildHwndList,
NtUserCallHwnd,
NtUserCallHwndParam,
NtUserCallMsgFilter,
NtUserCheckMenuItem,
NtUserChildWindowFromPointEx,
......
......@@ -768,11 +768,11 @@
@ stub NtUserBuildPropList
@ stub NtUserCalcMenuBar
@ stub NtUserCalculatePopupWindowPosition
@ stdcall NtUserCallHwnd(long long)
@ stdcall -syscall NtUserCallHwnd(long long)
@ stub NtUserCallHwndLock
@ stub NtUserCallHwndLockSafe
@ stub NtUserCallHwndOpt
@ stdcall NtUserCallHwndParam(long ptr long)
@ stdcall -syscall NtUserCallHwndParam(long ptr long)
@ stub NtUserCallHwndParamLock
@ stub NtUserCallHwndParamLockSafe
@ stub NtUserCallHwndSafe
......
......@@ -186,8 +186,6 @@ struct unix_funcs
BOOL (WINAPI *pNtGdiUnrealizeObject)( HGDIOBJ obj );
BOOL (WINAPI *pNtGdiUpdateColors)( HDC hdc );
BOOL (WINAPI *pNtGdiWidenPath)( HDC hdc );
ULONG_PTR (WINAPI *pNtUserCallHwnd)( HWND hwnd, DWORD code );
ULONG_PTR (WINAPI *pNtUserCallHwndParam)( HWND hwnd, DWORD_PTR param, DWORD code );
LRESULT (WINAPI *pNtUserCallNextHookEx)( HHOOK hhook, INT code, WPARAM wparam, LPARAM lparam );
ULONG_PTR (WINAPI *pNtUserCallNoParam)( ULONG code );
ULONG_PTR (WINAPI *pNtUserCallOneParam)( ULONG_PTR arg, ULONG code );
......
......@@ -749,18 +749,6 @@ ULONG_PTR WINAPI NtUserCallTwoParam( ULONG_PTR arg1, ULONG_PTR arg2, ULONG code
return unix_funcs->pNtUserCallTwoParam( arg1, arg2, code );
}
ULONG_PTR WINAPI NtUserCallHwnd( HWND hwnd, DWORD code )
{
if (!unix_funcs) return 0;
return unix_funcs->pNtUserCallHwnd( hwnd, code );
}
ULONG_PTR WINAPI NtUserCallHwndParam( HWND hwnd, DWORD_PTR param, DWORD code )
{
if (!unix_funcs) return 0;
return unix_funcs->pNtUserCallHwndParam( hwnd, param, code );
}
BOOL WINAPI NtUserCloseClipboard(void)
{
if (!unix_funcs) return FALSE;
......
......@@ -93,6 +93,8 @@
SYSCALL_ENTRY( NtUserAttachThreadInput ) \
SYSCALL_ENTRY( NtUserBeginPaint ) \
SYSCALL_ENTRY( NtUserBuildHwndList ) \
SYSCALL_ENTRY( NtUserCallHwnd ) \
SYSCALL_ENTRY( NtUserCallHwndParam ) \
SYSCALL_ENTRY( NtUserCallMsgFilter ) \
SYSCALL_ENTRY( NtUserCheckMenuItem ) \
SYSCALL_ENTRY( NtUserChildWindowFromPointEx ) \
......
......@@ -220,6 +220,24 @@ NTSTATUS WINAPI wow64_NtUserBuildHwndList( UINT *args )
return status;
}
NTSTATUS WINAPI wow64_NtUserCallHwnd( UINT *args )
{
HWND hwnd = get_handle( &args );
DWORD code = get_ulong( &args );
return NtUserCallHwnd( hwnd, code );
}
NTSTATUS WINAPI wow64_NtUserCallHwndParam( UINT *args )
{
HWND hwnd = get_handle( &args );
DWORD_PTR param = get_ulong( &args );
DWORD code = get_ulong( &args );
FIXME( "%p %Ix %lu\n", hwnd, param, code );
return 0;
}
NTSTATUS WINAPI wow64_NtUserCallMsgFilter( UINT *args )
{
MSG32 *msg32 = get_ptr( &args );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment