Commit eac15cae authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

hid: Implement HidD_GetInputReport.

parent 5b790bde
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
@ stdcall HidD_GetFeature(long ptr long) @ stdcall HidD_GetFeature(long ptr long)
@ stdcall HidD_GetHidGuid(ptr) @ stdcall HidD_GetHidGuid(ptr)
@ stub HidD_GetIndexedString @ stub HidD_GetIndexedString
@ stub HidD_GetInputReport @ stdcall HidD_GetInputReport(long ptr long)
@ stdcall HidD_GetManufacturerString(long ptr long) @ stdcall HidD_GetManufacturerString(long ptr long)
@ stub HidD_GetMsGenreDescriptor @ stub HidD_GetMsGenreDescriptor
@ stub HidD_GetNumInputBuffers @ stub HidD_GetNumInputBuffers
......
...@@ -57,6 +57,12 @@ void WINAPI HidD_GetHidGuid(LPGUID guid) ...@@ -57,6 +57,12 @@ void WINAPI HidD_GetHidGuid(LPGUID guid)
*guid = GUID_DEVINTERFACE_HID; *guid = GUID_DEVINTERFACE_HID;
} }
BOOLEAN WINAPI HidD_GetInputReport(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG ReportBufferLength)
{
TRACE("(%p %p %u) \n", HidDeviceObject, ReportBuffer, ReportBufferLength);
return DeviceIoControl(HidDeviceObject, IOCTL_HID_GET_INPUT_REPORT, NULL, 0, ReportBuffer, ReportBufferLength, NULL, NULL);
}
BOOLEAN WINAPI HidD_GetManufacturerString(HANDLE HidDeviceObject, PVOID Buffer, ULONG BufferLength) BOOLEAN WINAPI HidD_GetManufacturerString(HANDLE HidDeviceObject, PVOID Buffer, ULONG BufferLength)
{ {
TRACE("(%p %p %u) \n", HidDeviceObject, Buffer, BufferLength); TRACE("(%p %p %u) \n", HidDeviceObject, Buffer, BufferLength);
......
...@@ -29,6 +29,7 @@ typedef LONG NTSTATUS; ...@@ -29,6 +29,7 @@ typedef LONG NTSTATUS;
BOOLEAN WINAPI HidD_GetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG ReportBufferLength); BOOLEAN WINAPI HidD_GetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG ReportBufferLength);
void WINAPI HidD_GetHidGuid(LPGUID guid); void WINAPI HidD_GetHidGuid(LPGUID guid);
BOOLEAN WINAPI HidD_GetInputReport(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG ReportBufferLength);
BOOLEAN WINAPI HidD_GetManufacturerString(HANDLE HidDeviceObject, PVOID Buffer, ULONG BufferLength); BOOLEAN WINAPI HidD_GetManufacturerString(HANDLE HidDeviceObject, PVOID Buffer, ULONG BufferLength);
BOOLEAN WINAPI HidD_GetProductString(HANDLE HidDeviceObject, PVOID Buffer, ULONG BufferLength); BOOLEAN WINAPI HidD_GetProductString(HANDLE HidDeviceObject, PVOID Buffer, ULONG BufferLength);
BOOLEAN WINAPI HidD_SetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG ReportBufferLength); BOOLEAN WINAPI HidD_SetFeature(HANDLE HidDeviceObject, PVOID ReportBuffer, ULONG ReportBufferLength);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment