From: Zhiyi Zhang zzhang@codeweavers.com
React Native apps use user32.2561. --- dlls/user32/user32.spec | 1 + dlls/win32u/input.c | 10 ++++++++++ dlls/win32u/win32u.spec | 1 + dlls/wow64win/user.c | 5 +++++ include/ntuser.h | 1 + 5 files changed, 18 insertions(+)
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec index 222ba86f035..374830b3fc9 100644 --- a/dlls/user32/user32.spec +++ b/dlls/user32/user32.spec @@ -208,6 +208,7 @@ @ stdcall EmptyClipboard() NtUserEmptyClipboard @ stdcall EnableMenuItem(long long long) NtUserEnableMenuItem @ stdcall EnableMouseInPointer(long) NtUserEnableMouseInPointer +2561 stdcall EnableMouseInPointerForThread() NtUserEnableMouseInPointerForThread @ stdcall EnableNonClientDpiScaling(long) @ stdcall -import EnableScrollBar(long long long) NtUserEnableScrollBar @ stdcall EnableWindow(long long) diff --git a/dlls/win32u/input.c b/dlls/win32u/input.c index c976b57b39f..76260cbf1c5 100644 --- a/dlls/win32u/input.c +++ b/dlls/win32u/input.c @@ -2508,6 +2508,16 @@ BOOL WINAPI NtUserEnableMouseInPointer( BOOL enable ) return FALSE; }
+/********************************************************************** + * NtUserEnableMouseInPointerForThread (win32u.@) + */ +BOOL WINAPI NtUserEnableMouseInPointerForThread( void ) +{ + FIXME( "stub!\n" ); + RtlSetLastWin32Error( ERROR_CALL_NOT_IMPLEMENTED ); + return FALSE; +} + /********************************************************************** * NtUserIsMouseInPointerEnabled (win32u.@) */ diff --git a/dlls/win32u/win32u.spec b/dlls/win32u/win32u.spec index 572c0274c91..f8c98593b57 100644 --- a/dlls/win32u/win32u.spec +++ b/dlls/win32u/win32u.spec @@ -865,6 +865,7 @@ @ stub NtUserEnableIAMAccess @ stdcall -syscall NtUserEnableMenuItem(long long long) @ stdcall -syscall NtUserEnableMouseInPointer(long) +@ stdcall -syscall NtUserEnableMouseInPointerForThread() @ stub NtUserEnableMouseInPointerForWindow @ stub NtUserEnableMouseInputForCursorSuppression @ stub NtUserEnableNonClientDpiScaling diff --git a/dlls/wow64win/user.c b/dlls/wow64win/user.c index 3685ed73bd0..41676d03779 100644 --- a/dlls/wow64win/user.c +++ b/dlls/wow64win/user.c @@ -2122,6 +2122,11 @@ NTSTATUS WINAPI wow64_NtUserEnableMouseInPointer( UINT *args ) return NtUserEnableMouseInPointer( enable ); }
+NTSTATUS WINAPI wow64_NtUserEnableMouseInPointerForThread( UINT *args ) +{ + return NtUserEnableMouseInPointerForThread(); +} + NTSTATUS WINAPI wow64_NtUserEnableScrollBar( UINT *args ) { HWND hwnd = get_handle( &args ); diff --git a/include/ntuser.h b/include/ntuser.h index a82dead4ef4..239087586ea 100644 --- a/include/ntuser.h +++ b/include/ntuser.h @@ -690,6 +690,7 @@ W32KAPI DWORD WINAPI NtUserDrawMenuBarTemp( HWND hwnd, HDC hdc, RECT *rect, HM W32KAPI BOOL WINAPI NtUserEmptyClipboard(void); W32KAPI BOOL WINAPI NtUserEnableMenuItem( HMENU handle, UINT id, UINT flags ); W32KAPI BOOL WINAPI NtUserEnableMouseInPointer( BOOL ); +W32KAPI BOOL WINAPI NtUserEnableMouseInPointerForThread(void); W32KAPI BOOL WINAPI NtUserEnableScrollBar( HWND hwnd, UINT bar, UINT flags ); W32KAPI BOOL WINAPI NtUserEndDeferWindowPosEx( HDWP hdwp, BOOL async ); W32KAPI BOOL WINAPI NtUserEndMenu(void);