Stub for GetRawInputDeviceList

Michał Majchrowicz mmajchrowicz at gmail.com
Mon Jan 8 09:40:37 CST 2007


Skipped content of type multipart/alternative-------------- next part --------------
From 8da6e2c5f9c609be06b6d5c8b504245c3fed545a Mon Sep 17 00:00:00 2001
From: root <root at 435_GENTOO.TYGRYS>
Date: Mon, 8 Jan 2007 16:12:16 +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.
Author of original patch is: L. Rahyen <research at science.su> 
---
 dlls/user32/input.c |   16 ++++++++++++++++
 include/winuser.h   |    5 +++++
 2 files changed, 21 insertions(+), 0 deletions(-)

diff --git a/dlls/user32/input.c b/dlls/user32/input.c
index 2c3d38c..7d53870 100644
--- a/dlls/user32/input.c
+++ b/dlls/user32/input.c
@@ -340,6 +340,21 @@ BOOL WINAPI GetLastInputInfo(PLASTINPUTINFO plii)
 }
 
 
+/******************************************************************
+*		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 +1000,4 @@ TrackMouseEvent (TRACKMOUSEEVENT *ptme)
 
     return TRUE;
 }
+
diff --git a/include/winuser.h b/include/winuser.h
index 7533312..a2d62e8 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