Commit 1f2e7228 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u: Stub NtUserIsMouseInPointerEnabled syscall.

parent 73842518
......@@ -4844,17 +4844,15 @@ static void test_EnableMouseInPointer_process( const char *arg )
ok( !ret, "EnableMouseInPointer succeeded\n" );
todo_wine
ok( GetLastError() == ERROR_ACCESS_DENIED, "got error %lu\n", GetLastError() );
if (!pIsMouseInPointerEnabled) ret = !enable;
else ret = pIsMouseInPointerEnabled();
todo_wine_if(!pIsMouseInPointerEnabled)
ret = pIsMouseInPointerEnabled();
todo_wine_if(enable)
ok( ret == enable, "IsMouseInPointerEnabled returned %u, error %lu\n", ret, GetLastError() );
ret = pEnableMouseInPointer( enable );
todo_wine
ok( ret, "EnableMouseInPointer failed, error %lu\n", GetLastError() );
if (!pIsMouseInPointerEnabled) ret = !enable;
else ret = pIsMouseInPointerEnabled();
todo_wine_if(!pIsMouseInPointerEnabled)
ret = pIsMouseInPointerEnabled();
todo_wine_if(enable)
ok( ret == enable, "IsMouseInPointerEnabled returned %u, error %lu\n", ret, GetLastError() );
test_GetPointerInfo( enable );
......
......@@ -475,6 +475,7 @@
# @ stub IsHungThread
@ stdcall IsIconic(long)
@ stdcall IsMenu(long)
@ stdcall IsMouseInPointerEnabled() NtUserIsMouseInPointerEnabled
@ stdcall IsProcessDPIAware()
@ stdcall IsRectEmpty(ptr)
# @ stub IsServerSideWindow
......
......@@ -2164,6 +2164,16 @@ BOOL WINAPI NtUserEnableMouseInPointer( BOOL enable )
return FALSE;
}
/**********************************************************************
* NtUserIsMouseInPointerEnabled (win32u.@)
*/
BOOL WINAPI NtUserIsMouseInPointerEnabled(void)
{
FIXME( "stub!\n" );
RtlSetLastWin32Error( ERROR_CALL_NOT_IMPLEMENTED );
return FALSE;
}
HWND get_shell_window(void)
{
......
......@@ -222,6 +222,7 @@ static void * const syscalls[] =
NtUserInvalidateRect,
NtUserInvalidateRgn,
NtUserIsClipboardFormatAvailable,
NtUserIsMouseInPointerEnabled,
NtUserKillTimer,
NtUserLockWindowUpdate,
NtUserLogicalToPerMonitorDPIPhysicalPoint,
......
......@@ -1051,7 +1051,7 @@
@ stdcall -syscall NtUserInvalidateRgn(long long long)
@ stub NtUserIsChildWindowDpiMessageEnabled
@ stdcall -syscall NtUserIsClipboardFormatAvailable(long)
@ stub NtUserIsMouseInPointerEnabled
@ stdcall -syscall NtUserIsMouseInPointerEnabled()
@ stub NtUserIsMouseInputEnabled
@ stub NtUserIsNonClientDpiScalingEnabled
@ stub NtUserIsResizeLayoutSynchronizationEnabled
......
......@@ -208,6 +208,7 @@
SYSCALL_ENTRY( NtUserInvalidateRect ) \
SYSCALL_ENTRY( NtUserInvalidateRgn ) \
SYSCALL_ENTRY( NtUserIsClipboardFormatAvailable ) \
SYSCALL_ENTRY( NtUserIsMouseInPointerEnabled ) \
SYSCALL_ENTRY( NtUserKillTimer ) \
SYSCALL_ENTRY( NtUserLockWindowUpdate ) \
SYSCALL_ENTRY( NtUserLogicalToPerMonitorDPIPhysicalPoint ) \
......
......@@ -2731,6 +2731,11 @@ NTSTATUS WINAPI wow64_NtUserIsClipboardFormatAvailable( UINT *args )
return NtUserIsClipboardFormatAvailable( format );
}
NTSTATUS WINAPI wow64_NtUserIsMouseInPointerEnabled( UINT *args )
{
return NtUserIsMouseInPointerEnabled();
}
NTSTATUS WINAPI wow64_NtUserKillTimer( UINT *args )
{
HWND hwnd = get_handle( &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