Stub for GetRawInputDeviceList

Michał Majchrowicz mmajchrowicz at gmail.com
Mon Jan 8 08:35:45 CST 2007


Skipped content of type multipart/alternative-------------- next part --------------
From 315c91da58246a59a2f1803c398f69973f1a102a Mon Sep 17 00:00:00 2001
From: root <root at 435_GENTOO.TYGRYS>
Date: Mon, 8 Jan 2007 15:21:05 +0100
Subject: =?utf-8?q?Author:_Micha=C5=82_Majchrowicz?=
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Email: mmajchrowicz at gmail.com
A modification of patch found on wine mailing list It checks whether
the pRawInputDeviceList is NULL. According to msdn it can be null and
the number of devices should be returned in puiNumDevices. This is just
a stub but I am working on real implementation.
---
 dlls/user32/input.c |   16 ++++++++++++++--
 include/winuser.h   |    5 +++++
 2 files changed, 19 insertions(+), 2 deletions(-)

diff --git a/dlls/user32/input.c b/dlls/user32/input.c
index 2c3d38c..7d1fd87 100644
--- a/dlls/user32/input.c
+++ b/dlls/user32/input.c
@@ -338,8 +338,19 @@ BOOL WINAPI GetLastInputInfo(PLASTINPUTINFO plii)
     SERVER_END_REQ;
     return ret;
 }
-
-
+/******************************************************************
+*		GetRawInputDeviceList (USER32.@)
+* Enumerates the raw input devices attached to the system.
+*
+*/ 
+UINT WINAPI GetRawInputDeviceList(PRAWINPUTDEVICELIST pRawInputDeviceList, PUINT puiNumDevices, UINT cbSize)
+{
+    FIXME("(%p, %p, %u) stub\n", pRawInputDeviceList, puiNumDevices, cbSize);
+	if(pRawInputDeviceList)
+    	memset(pRawInputDeviceList, 0, sizeof *pRawInputDeviceList);
+    *puiNumDevices = 0;
+    return 0;
+}
 /**********************************************************************
  *		AttachThreadInput (USER32.@)
  *
@@ -985,3 +996,4 @@ TrackMouseEvent (TRACKMOUSEEVENT *ptme)
 
     return TRUE;
 }
+
diff --git a/include/winuser.h b/include/winuser.h
index 7533312..9b2187a 100644
--- a/include/winuser.h
+++ b/include/winuser.h
@@ -443,6 +443,11 @@ typedef struct tagINPUT
     } DUMMYUNIONNAME;
 } INPUT, *PINPUT, *LPINPUT;
 
+typedef struct tagRAWINPUTDEVICELIST
+{
+    HANDLE hDevice;
+	DWORD dwType;
+} RAWINPUTDEVICELIST, *PRAWINPUTDEVICELIST;
 
 typedef struct tagGUITHREADINFO
 {
-- 
1.4.4.3


More information about the wine-patches mailing list