hidclass.sys: Stub to handle IRP_MJ_WRITE on HID devices.
Signed-off-by: Aric Stewart <aric@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
35938ed8be
commit
a89aa77653
|
@ -571,6 +571,21 @@ NTSTATUS WINAPI HID_Device_read(DEVICE_OBJECT *device, IRP *irp)
|
|||
return rc;
|
||||
}
|
||||
|
||||
NTSTATUS WINAPI HID_Device_write(DEVICE_OBJECT *device, IRP *irp)
|
||||
{
|
||||
IO_STACK_LOCATION *irpsp = IoGetCurrentIrpStackLocation( irp );
|
||||
|
||||
irp->IoStatus.Information = 0;
|
||||
|
||||
TRACE("Buffer length %i\n", irpsp->Parameters.Write.Length);
|
||||
|
||||
FIXME("device %p\n", device);
|
||||
|
||||
irp->IoStatus.u.Status = STATUS_SUCCESS;
|
||||
IoCompleteRequest( irp, IO_NO_INCREMENT );
|
||||
return STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
NTSTATUS WINAPI HID_Device_create(DEVICE_OBJECT *device, IRP *irp)
|
||||
{
|
||||
BASE_DEVICE_EXTENSION *ext = device->DeviceExtension;
|
||||
|
|
|
@ -86,6 +86,7 @@ void HID_StartDeviceThread(DEVICE_OBJECT *device) DECLSPEC_HIDDEN;
|
|||
|
||||
NTSTATUS WINAPI HID_Device_ioctl(DEVICE_OBJECT *device, IRP *irp) DECLSPEC_HIDDEN;
|
||||
NTSTATUS WINAPI HID_Device_read(DEVICE_OBJECT *device, IRP *irp) DECLSPEC_HIDDEN;
|
||||
NTSTATUS WINAPI HID_Device_write(DEVICE_OBJECT *device, IRP *irp) DECLSPEC_HIDDEN;
|
||||
NTSTATUS WINAPI HID_Device_create(DEVICE_OBJECT *device, IRP *irp) DECLSPEC_HIDDEN;
|
||||
NTSTATUS WINAPI HID_Device_close(DEVICE_OBJECT *device, IRP *irp) DECLSPEC_HIDDEN;
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@ NTSTATUS WINAPI HidRegisterMinidriver(HID_MINIDRIVER_REGISTRATION *registration)
|
|||
|
||||
registration->DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = HID_Device_ioctl;
|
||||
registration->DriverObject->MajorFunction[IRP_MJ_READ] = HID_Device_read;
|
||||
registration->DriverObject->MajorFunction[IRP_MJ_WRITE] = HID_Device_write;
|
||||
registration->DriverObject->MajorFunction[IRP_MJ_CREATE] = HID_Device_create;
|
||||
registration->DriverObject->MajorFunction[IRP_MJ_CLOSE] = HID_Device_close;
|
||||
|
||||
|
|
Loading…
Reference in New Issue