Stub for all raw input functions
Kovács András
andras at csevego.net
Fri Mar 30 00:40:25 CDT 2007
Stub for all input functions.
Applies to current git.
--
----------------------------
Kovács András (andras)
NetClub Vezető Rendszergazda
Lamarr
csevego.net
andras at csevego.net
----------------------------
-------------- next part --------------
From 2b61bf0c433e440903f48e3c5173e8181c46acb4 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Andr=C3=A1s_Kov=C3=A1cs?= <andras at debian.sth.sze.hu>
Date: Fri, 30 Mar 2007 07:36:55 +0200
Subject: [PATCH] Stub for all raw input functions
---
dlls/user32/Makefile.in | 1 +
dlls/user32/rawinput.c | 95 +++++++++++++++++++++++++++++++++++++++++++++++
dlls/user32/user32.spec | 16 ++++----
3 files changed, 104 insertions(+), 8 deletions(-)
diff --git a/dlls/user32/Makefile.in b/dlls/user32/Makefile.in
index a8208db..7bd5185 100644
--- a/dlls/user32/Makefile.in
+++ b/dlls/user32/Makefile.in
@@ -50,6 +50,7 @@ C_SRCS = \
nonclient.c \
painting.c \
property.c \
+ rawinput.c \
resource.c \
scroll.c \
spy.c \
diff --git a/dlls/user32/rawinput.c b/dlls/user32/rawinput.c
new file mode 100644
index 0000000..fc0fe9d
--- /dev/null
+++ b/dlls/user32/rawinput.c
@@ -0,0 +1,95 @@
+/*
+ * RAW Input
+ *
+ * Copyright 2007 Andras Kovacs
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
+ */
+
+
+#include "config.h"
+#include "wine/port.h"
+
+#include <stdarg.h>
+#include <string.h>
+
+#include "windef.h"
+#include "winbase.h"
+#include "wingdi.h"
+#include "wownt32.h"
+#include "wine/unicode.h"
+#include "wine/winuser16.h"
+#include "wine/server.h"
+#include "wine/exception.h"
+#include "wine/debug.h"
+
+WINE_DEFAULT_DEBUG_CHANNEL(win);
+
+LRESULT WINAPI DefRawInputProc( PRAWINPUT *paRawInput, INT nInput, UINT cbSizeHeader )
+{
+ FIXME("(paRawInput=%p, nInput=%d, cbSizeHeader=%d) stub!\n", *paRawInput, nInput, cbSizeHeader);
+
+ return S_OK;
+}
+
+BOOL WINAPI RegisterRawInputDevices( PRAWINPUTDEVICE pRawInputDevices, UINT uiNumDevices, UINT cbSize )
+{
+ FIXME("(pRawInputDevices=%p, uiNumDevices=%d, cbSize=%d) stub!\n", pRawInputDevices, uiNumDevices, cbSize);
+
+ return TRUE;
+}
+
+UINT WINAPI GetRegisteredRawInputDevices( PRAWINPUTDEVICE pRawInputDevices, PUINT puiNumDevices, UINT cbSize )
+{
+ FIXME("(pRawInputDevices=%p, puiNumDevices=%p, cbSize=%d) stub!\n", pRawInputDevices, puiNumDevices, cbSize);
+
+ return 0;
+}
+
+INT WINAPI GetRawInputData( HRAWINPUT hRawInput, UINT uiCommand, LPVOID pData, PUINT pcbSize, UINT cbSizeHeader )
+{
+ FIXME("(hRawInput=%p, uiCommand=%d, pData=%p, pcbSize=%p, cbSizeHeader=%d) stub!\n",
+ hRawInput, uiCommand, pData, pcbSize, cbSizeHeader);
+
+ return 0;
+}
+
+UINT WINAPI GetRawInputBuffer( PRAWINPUT pData, PUINT pcbSize, UINT cbSizeHeader )
+{
+ FIXME("(pData=%p, pcbSize=%p, cbSizeHeader=%d) stub!\n", pData, pcbSize, cbSizeHeader);
+
+ return 0;
+}
+
+UINT WINAPI GetRawInputDeviceInfoA( HANDLE hDevice, UINT uiCommand, LPVOID pData, PUINT pcbSize )
+{
+ FIXME("(hDevice=%p, uiCommand=%d, pData=%p, pcbSize=%p) stub!\n", hDevice, uiCommand, pData, pcbSize);
+
+ return 0;
+}
+
+UINT WINAPI GetRawInputDeviceInfoW( HANDLE hDevice, UINT uiCommand, LPVOID pData, PUINT pcbSize )
+{
+ FIXME("(hDevice=%p, uiCommand=%d, pData=%p, pcbSize=%p) stub!\n", hDevice, uiCommand, pData, pcbSize);
+
+ return 0;
+}
+
+UINT WINAPI GetRawInputDeviceList( PRAWINPUTDEVICELIST pRawInputDeviceList, PUINT puiNumDevices, UINT cbSize )
+{
+ FIXME("(pRawInputDeviceList=%p, puiNumDevices=%p, cbSize=%d) stub!\n", pRawInputDeviceList, puiNumDevices, cbSize);
+
+ return 0;
+}
diff --git a/dlls/user32/user32.spec b/dlls/user32/user32.spec
index dcb1e6b..4acebe3 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -143,7 +143,7 @@
@ stdcall DefFrameProcW(long long long long long)
@ stdcall DefMDIChildProcA(long long long long)
@ stdcall DefMDIChildProcW(long long long long)
-# @ stub DefRawInputProc
+@ stdcall DefRawInputProc (ptr long long)
@ stdcall DefWindowProcA(long long long long)
@ stdcall DefWindowProcW(long long long long)
@ stdcall DeferWindowPos(long long long long long long long long)
@@ -341,13 +341,13 @@
@ stdcall GetPropA(long str)
@ stdcall GetPropW(long wstr)
@ stdcall GetQueueStatus(long)
-# @ stub GetRawInputBuffer
-# @ stub GetRawInputData
-# @ stub GetRawInputDeviceInfoA
-# @ stub GetRawInputDeviceInfoW
-# @ stub GetRawInputDeviceList
+@ stdcall GetRawInputBuffer (ptr ptr long)
+@ stdcall GetRawInputData (ptr long ptr ptr long)
+@ stdcall GetRawInputDeviceInfoA (ptr long ptr ptr)
+@ stdcall GetRawInputDeviceInfoW (ptr long ptr ptr)
+@ stdcall GetRawInputDeviceList (ptr ptr long)
# @ stub GetReasonTitleFromReasonCode
-# @ stub GetRegisteredRawInputDevices
+@ stdcall GetRegisteredRawInputDevices (ptr ptr long)
@ stdcall GetScrollBarInfo(long long ptr)
@ stdcall GetScrollInfo(long long ptr)
@ stdcall GetScrollPos(long long)
@@ -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