Add RegisterRawInputDevices stub implementation

Kovács András andras at csevego.net
Tue Feb 13 14:53:56 CST 2007


Add a stub implementation for RegisterRawInputDevices. This is needed for 
Rayman Raving Rabbids to start.
It applies after my previous patch.
-- 
------------------
andras
NetClub
Lamarr
csevego.net
andras at csevego.net
------------------
-------------- next part --------------
From 55eb8800c6a54eef6b68694b24f6e09dc1af63bc Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Tue, 13 Feb 2007 21:04:13 +0100
Subject: [PATCH] Add RegisterRawInputDevices stub implementation

---
 dlls/user32/defwnd.c    |   18 ++++++++++++++++++
 dlls/user32/user32.spec |    2 +-
 2 files changed, 19 insertions(+), 1 deletions(-)

diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index fda2dc9..fc5f178 100644
--- a/dlls/user32/defwnd.c
+++ b/dlls/user32/defwnd.c
@@ -1011,3 +1011,21 @@ LRESULT WINAPI DefWindowProcW(
     SPY_ExitMessage( SPY_RESULT_DEFWND, hwnd, msg, result, wParam, lParam );
     return result;
 }
+
+BOOL WINAPI RegisterRawInputDevices(PRAWINPUTDEVICE pRawInputDevices, UINT uiNumDevices, UINT cbSize)
+{
+int i;
+
+FIXME("RegisterRawInputDevices(pRawInputDevices=%p, uiNumDevices=%d, cbSize=%d) stub!\n", pRawInputDevices, uiNumDevices, cbSize);
+
+for (i = 0; i <= (uiNumDevices-1); i++) {
+    FIXME("Device=%d\n", i);;
+    FIXME("usUsagePage=0x%d\n", pRawInputDevices->usUsagePage);
+    FIXME("usUsage=0x%d\n", pRawInputDevices->usUsage);
+    FIXME("dwFlags=%xd\n", pRawInputDevices->dwFlags);
+    FIXME("HWND=%p\n", pRawInputDevices->hwndTarget);
+    if (i != (uiNumDevices-1)) pRawInputDevices++;
+}
+
+return TRUE;
+}
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index dcb1e6b..6e6e7f4 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -562,7 +562,7 @@
 @ stdcall RegisterLogonProcess(long long)
 # @ stub RegisterMessagePumpHook
 @ stub RegisterNetworkCapabilities
-# @ stub RegisterRawInputDevices
+@ stdcall RegisterRawInputDevices (ptr long long)
 @ stub RegisterServicesProcess
 @ stdcall RegisterShellHookWindow (long)
 @ stdcall RegisterSystemThread(long long)
-- 
1.4.4.4



More information about the wine-patches mailing list