Henri Verbeet : user32: Implement GetRawInputDeviceInfoA().

Alexandre Julliard julliard at winehq.org
Mon Oct 22 13:42:44 CDT 2012


Module: wine
Branch: master
Commit: 690df8198deaf62bfc2441bf75c33970ea9b06b1
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=690df8198deaf62bfc2441bf75c33970ea9b06b1

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Sun Oct 21 20:20:40 2012 +0200

user32: Implement GetRawInputDeviceInfoA().

---

 dlls/user32/input.c |   12 +++++++++---
 1 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/dlls/user32/input.c b/dlls/user32/input.c
index 9fdc124..b21c674 100644
--- a/dlls/user32/input.c
+++ b/dlls/user32/input.c
@@ -606,11 +606,17 @@ UINT WINAPI DECLSPEC_HOTPATCH GetRawInputBuffer(PRAWINPUT pData, PUINT pcbSize,
 /******************************************************************
 *		GetRawInputDeviceInfoA (USER32.@)
 */
-UINT WINAPI GetRawInputDeviceInfoA(HANDLE hDevice, UINT uiCommand, LPVOID pData, PUINT pcbSize)
+UINT WINAPI GetRawInputDeviceInfoA(HANDLE device, UINT command, void *data, UINT *data_size)
 {
-    FIXME("(hDevice=%p, uiCommand=%d, pData=%p, pcbSize=%p) stub!\n", hDevice, uiCommand, pData, pcbSize);
+    UINT ret;
 
-    return 0;
+    TRACE("device %p, command %u, data %p, data_size %p.\n", device, command, data, data_size);
+
+    ret = GetRawInputDeviceInfoW(device, command, data, data_size);
+    if (command == RIDI_DEVICENAME && ret && ret != ~0U)
+        ret = WideCharToMultiByte(CP_ACP, 0, data, -1, data, *data_size, NULL, NULL);
+
+    return ret;
 }
 
 




More information about the wine-cvs mailing list