hid: Implement HidD_FlushQueue().

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=45878
Signed-off-by: Zebediah Figura <z.figura12@gmail.com>
Signed-off-by: Aric Stewart <aric@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2019-04-06 22:20:18 -05:00 committed by Alexandre Julliard
parent 5ae3910e93
commit 718b1bc542
3 changed files with 8 additions and 1 deletions

View File

@ -1,4 +1,4 @@
@ stub HidD_FlushQueue
@ stdcall HidD_FlushQueue(ptr)
@ stdcall HidD_FreePreparsedData(ptr)
@ stdcall HidD_GetAttributes(long ptr)
@ stub HidD_GetConfiguration

View File

@ -163,3 +163,9 @@ BOOLEAN WINAPI HidD_GetIndexedString(HANDLE file, ULONG index, void *buffer, ULO
TRACE("file %p, index %u, buffer %p, length %u.\n", file, index, buffer, length);
return sync_ioctl(file, IOCTL_HID_GET_INDEXED_STRING, &index, sizeof(index), buffer, length);
}
BOOLEAN WINAPI HidD_FlushQueue(HANDLE file)
{
TRACE("file %p.\n", file);
return sync_ioctl(file, IOCTL_HID_FLUSH_QUEUE, NULL, 0, NULL, 0);
}

View File

@ -34,6 +34,7 @@ typedef struct _HIDD_ATTRIBUTES {
USHORT VersionNumber;
} HIDD_ATTRIBUTES, *PHIDD_ATTRIBUTES;
BOOLEAN WINAPI HidD_FlushQueue(HANDLE file);
BOOLEAN WINAPI HidD_GetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG ReportBufferLength);
void WINAPI HidD_GetHidGuid(LPGUID guid);
BOOLEAN WINAPI HidD_GetIndexedString(HANDLE file, ULONG index, void *buffer, ULONG length);