Commit b68d2aad authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

hidclass.sys: Expose an ioctl to retrieve the raw input handle.

parent 64efaf26
...@@ -655,6 +655,18 @@ NTSTATUS WINAPI pdo_ioctl(DEVICE_OBJECT *device, IRP *irp) ...@@ -655,6 +655,18 @@ NTSTATUS WINAPI pdo_ioctl(DEVICE_OBJECT *device, IRP *irp)
case IOCTL_HID_SET_OUTPUT_REPORT: case IOCTL_HID_SET_OUTPUT_REPORT:
status = hid_device_xfer_report( ext, code, irp ); status = hid_device_xfer_report( ext, code, irp );
break; break;
case IOCTL_HID_GET_WINE_RAWINPUT_HANDLE:
if (irpsp->Parameters.DeviceIoControl.OutputBufferLength < sizeof(ULONG))
status = STATUS_BUFFER_OVERFLOW;
else
{
*(ULONG *)irp->AssociatedIrp.SystemBuffer = ext->u.pdo.rawinput_handle;
irp->IoStatus.Information = sizeof(ULONG);
status = STATUS_SUCCESS;
}
break;
default: default:
{ {
ULONG code = irpsp->Parameters.DeviceIoControl.IoControlCode; ULONG code = irpsp->Parameters.DeviceIoControl.IoControlCode;
......
...@@ -227,4 +227,6 @@ struct hid_preparsed_data ...@@ -227,4 +227,6 @@ struct hid_preparsed_data
#define PID_USAGE_CREATE_NEW_EFFECT_REPORT ((USAGE) 0xab) #define PID_USAGE_CREATE_NEW_EFFECT_REPORT ((USAGE) 0xab)
#define PID_USAGE_RAM_POOL_AVAILABLE ((USAGE) 0xac) #define PID_USAGE_RAM_POOL_AVAILABLE ((USAGE) 0xac)
#define IOCTL_HID_GET_WINE_RAWINPUT_HANDLE HID_BUFFER_CTL_CODE(300)
#endif /* __WINE_PARSE_H */ #endif /* __WINE_PARSE_H */
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