[PATCH] user32: add stub for RegisterPointerDeviceNotifications

Louis Lenders xerox.xerox2000x at gmail.com
Mon Jun 4 08:51:26 CDT 2018


See https://bugs.winehq.org/show_bug.cgi?id=45284 

Signed-off-by: Louis Lenders <xerox.xerox2000x at gmail.com>
---
 dlls/user32/misc.c      | 9 +++++++++
 dlls/user32/user32.spec | 1 +
 include/winuser.h       | 1 +
 3 files changed, 11 insertions(+)

diff --git a/dlls/user32/misc.c b/dlls/user32/misc.c
index 895ccce312..be4b71a4bc 100644
--- a/dlls/user32/misc.c
+++ b/dlls/user32/misc.c
@@ -837,6 +837,15 @@ LONG WINAPI GetDisplayConfigBufferSizes(UINT32 flags, UINT32 *num_path_info, UIN
     return ERROR_NOT_SUPPORTED;
 }
 
+/**********************************************************************
+ * RegisterPointerDeviceNotifications [USER32.@]
+ */
+BOOL WINAPI RegisterPointerDeviceNotifications(HWND hwnd, BOOL notifyrange)
+{
+    FIXME("(%p %d): stub\n", hwnd, notifyrange);
+    return FALSE;
+}
+
 static const WCHAR imeW[] = {'I','M','E',0};
 const struct builtin_class_descr IME_builtin_class =
 {
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index eb71e3b00b..2e5b203a85 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -598,6 +598,7 @@
 @ stdcall RegisterLogonProcess(long long)
 # @ stub RegisterMessagePumpHook
 @ stub RegisterNetworkCapabilities
+@ stdcall RegisterPointerDeviceNotifications(long long)
 @ stdcall RegisterPowerSettingNotification(long ptr long)
 @ stdcall RegisterRawInputDevices(ptr long long)
 @ stdcall RegisterServicesProcess(long)
diff --git a/include/winuser.h b/include/winuser.h
index 8e9e91bf65..648efbe0e2 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -4004,6 +4004,7 @@ WINUSERAPI HDEVNOTIFY  WINAPI RegisterDeviceNotificationA(HANDLE,LPVOID,DWORD);
 WINUSERAPI HDEVNOTIFY  WINAPI RegisterDeviceNotificationW(HANDLE,LPVOID,DWORD);
 #define                       RegisterDeviceNotification WINELIB_NAME_AW(RegisterDeviceNotification)
 WINUSERAPI BOOL        WINAPI RegisterHotKey(HWND,INT,UINT,UINT);
+WINUSERAPI BOOL        WINAPI RegisterPointerDeviceNotifications(HWND,BOOL);
 WINUSERAPI HPOWERNOTIFY WINAPI RegisterPowerSettingNotification(HANDLE,LPCGUID,DWORD);
 WINUSERAPI BOOL        WINAPI RegisterRawInputDevices(PRAWINPUTDEVICE,UINT,UINT);
 WINUSERAPI BOOL        WINAPI RegisterShellHookWindow(HWND);
-- 
2.17.0




More information about the wine-devel mailing list