mirror of
https://github.com/reactos/reactos.git
synced 2025-07-23 01:23:45 +00:00
[KBDHID][MOUHID]
- Properly stub DispatchPower - Implement DispatchSystemControl svn path=/trunk/; revision=58992
This commit is contained in:
parent
309a347ed1
commit
22de130758
2 changed files with 226 additions and 190 deletions
|
@ -561,8 +561,25 @@ KbdHid_Power(
|
||||||
IN PDEVICE_OBJECT DeviceObject,
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED
|
PKBDHID_DEVICE_EXTENSION DeviceExtension;
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
|
||||||
|
DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
PoStartNextPowerIrp(Irp);
|
||||||
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
|
return PoCallDriver(DeviceExtension->NextDeviceObject, Irp);
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
KbdHid_SystemControl(
|
||||||
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
IN PIRP Irp)
|
||||||
|
{
|
||||||
|
PKBDHID_DEVICE_EXTENSION DeviceExtension;
|
||||||
|
|
||||||
|
DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
|
return IoCallDriver(DeviceExtension->NextDeviceObject, Irp);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -980,6 +997,7 @@ DriverEntry(
|
||||||
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = KbdHid_InternalDeviceControl;
|
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = KbdHid_InternalDeviceControl;
|
||||||
DriverObject->MajorFunction[IRP_MJ_POWER] = KbdHid_Power;
|
DriverObject->MajorFunction[IRP_MJ_POWER] = KbdHid_Power;
|
||||||
DriverObject->MajorFunction[IRP_MJ_PNP] = KbdHid_Pnp;
|
DriverObject->MajorFunction[IRP_MJ_PNP] = KbdHid_Pnp;
|
||||||
|
DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = KbdHid_SystemControl;
|
||||||
DriverObject->DriverUnload = KbdHid_Unload;
|
DriverObject->DriverUnload = KbdHid_Unload;
|
||||||
DriverObject->DriverExtension->AddDevice = KbdHid_AddDevice;
|
DriverObject->DriverExtension->AddDevice = KbdHid_AddDevice;
|
||||||
|
|
||||||
|
|
|
@ -636,8 +636,25 @@ MouHid_Power(
|
||||||
IN PDEVICE_OBJECT DeviceObject,
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
IN PIRP Irp)
|
IN PIRP Irp)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED
|
PMOUHID_DEVICE_EXTENSION DeviceExtension;
|
||||||
return STATUS_NOT_IMPLEMENTED;
|
|
||||||
|
DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
PoStartNextPowerIrp(Irp);
|
||||||
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
|
return PoCallDriver(DeviceExtension->NextDeviceObject, Irp);
|
||||||
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
NTAPI
|
||||||
|
MouHid_SystemControl(
|
||||||
|
IN PDEVICE_OBJECT DeviceObject,
|
||||||
|
IN PIRP Irp)
|
||||||
|
{
|
||||||
|
PMOUHID_DEVICE_EXTENSION DeviceExtension;
|
||||||
|
|
||||||
|
DeviceExtension = DeviceObject->DeviceExtension;
|
||||||
|
IoSkipCurrentIrpStackLocation(Irp);
|
||||||
|
return IoCallDriver(DeviceExtension->NextDeviceObject, Irp);
|
||||||
}
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
|
@ -1116,6 +1133,7 @@ DriverEntry(
|
||||||
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = MouHid_InternalDeviceControl;
|
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = MouHid_InternalDeviceControl;
|
||||||
DriverObject->MajorFunction[IRP_MJ_POWER] = MouHid_Power;
|
DriverObject->MajorFunction[IRP_MJ_POWER] = MouHid_Power;
|
||||||
DriverObject->MajorFunction[IRP_MJ_PNP] = MouHid_Pnp;
|
DriverObject->MajorFunction[IRP_MJ_PNP] = MouHid_Pnp;
|
||||||
|
DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = MouHid_SystemControl;
|
||||||
DriverObject->DriverUnload = MouHid_Unload;
|
DriverObject->DriverUnload = MouHid_Unload;
|
||||||
DriverObject->DriverExtension->AddDevice = MouHid_AddDevice;
|
DriverObject->DriverExtension->AddDevice = MouHid_AddDevice;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue