hid: Implement HidD_GetSerialNumberString.

Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Aric Stewart 2015-10-29 14:23:06 -05:00 committed by Alexandre Julliard
parent 4e4f0f295b
commit af3406ec61
2 changed files with 7 additions and 1 deletions

View File

@ -12,7 +12,7 @@
@ stub HidD_GetPhysicalDescriptor
@ stdcall HidD_GetPreparsedData(ptr ptr)
@ stdcall HidD_GetProductString(long ptr long)
@ stub HidD_GetSerialNumberString
@ stdcall HidD_GetSerialNumberString(long ptr long)
@ stub HidD_Hello
@ stub HidD_SetConfiguration
@ stdcall HidD_SetFeature(long ptr long)

View File

@ -99,6 +99,12 @@ BOOLEAN WINAPI HidD_GetProductString(HANDLE HidDeviceObject, PVOID Buffer, ULONG
return DeviceIoControl(HidDeviceObject, IOCTL_HID_GET_PRODUCT_STRING, NULL, 0, Buffer, BufferLength, NULL, NULL);
}
BOOLEAN WINAPI HidD_GetSerialNumberString(HANDLE HidDeviceObject, PVOID Buffer, ULONG BufferLength)
{
TRACE("(%p %p %u)\n", HidDeviceObject, Buffer, BufferLength);
return DeviceIoControl(HidDeviceObject, IOCTL_HID_GET_SERIALNUMBER_STRING, NULL, 0, Buffer, BufferLength, NULL, NULL);
}
BOOLEAN WINAPI HidD_GetPreparsedData(HANDLE HidDeviceObject, PHIDP_PREPARSED_DATA *PreparsedData)
{
HID_COLLECTION_INFORMATION info;