Stub fro GetRawInputDeviceList

Michał Majchrowicz mmajchrowicz at gmail.com
Thu Jan 11 11:51:25 CST 2007


Skipped content of type multipart/alternative-------------- next part --------------
From 4ce06c3a4bf745bc2439b0ecffb868ba855b9274 Mon Sep 17 00:00:00 2001
From: root <root at 435_GENTOO.TYGRYS>
Date: Thu, 11 Jan 2007 18:33:58 +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 ++++++++++++++++
 dlls/user32/user32.spec |    2 +-
 include/winuser.h       |    5 +++++
 3 files changed, 22 insertions(+), 1 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/dlls/user32/user32.spec b/dlls/user32/user32.spec
index f857105..0517ebc 100644
--- a/dlls/user32/user32.spec
+++ b/dlls/user32/user32.spec
@@ -345,7 +345,7 @@
 # @ stub GetRawInputData
 # @ stub GetRawInputDeviceInfoA
 # @ stub GetRawInputDeviceInfoW
-# @ stub GetRawInputDeviceList
+@ stub GetRawInputDeviceList
 # @ stub GetReasonTitleFromReasonCode
 # @ stub GetRegisteredRawInputDevices
 @ stdcall GetScrollBarInfo(long long ptr)
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