user32: Implement GetRawInputDeviceInfoA().

This commit is contained in:
Henri Verbeet 2012-10-21 20:20:40 +02:00 committed by Alexandre Julliard
parent c490fb37cf
commit 690df8198d
1 changed files with 9 additions and 3 deletions

View File

@ -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;
}