Add RegisterRawInputDevices stub implementation (try2)
Kovács András
andras at csevego.net
Mon Feb 19 03:15:17 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 9508dd0391df416bbcd0456ccaeabfc32b730e2c Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Mon, 19 Feb 2007 10:11:07 +0100
Subject: [PATCH] Add RegisterRawInputDevices stub implementation
---
dlls/user32/defwnd.c | 36 ++++++++++++++++++++++++++++++++++++
dlls/user32/user32.spec | 2 +-
2 files changed, 37 insertions(+), 1 deletions(-)
diff --git a/dlls/user32/defwnd.c b/dlls/user32/defwnd.c
index fda2dc9..38e6658 100644
--- a/dlls/user32/defwnd.c
+++ b/dlls/user32/defwnd.c
@@ -1011,3 +1011,39 @@ LRESULT WINAPI DefWindowProcW(
SPY_ExitMessage( SPY_RESULT_DEFWND, hwnd, msg, result, wParam, lParam );
return result;
}
+
+/***********************************************************************
+ * RegisterRawInputDevices (USER32.@)
+ *
+ * The RegisterRawInputDevices function registers the devices that
+ * supply the raw input data.
+ *
+ * PARAMETERS
+ * pRawInputDevices
+ * [in] Pointer to an array of RAWINPUTDEVICE structures that
+ * represent the devices that supply the raw input.
+ * uiNumDevices
+ * [in] Number of RAWINPUTDEVICE structures pointed to by
+ * by pRawInputDevices.
+ * cbSize
+ * [in] Size, in bytes, of a RAWINPUTDEVICE structure.
+ *
+ * RETURNS
+ * TRUE if the function succeeds; otherwise, FALSE.
+ *
+ * FROM MSDN: http://msdn2.microsoft.com/en-us/library/ms645600.aspx
+*/
+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 = pRawInputDevices + cbSize;
+ }
+ 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