mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[MOUCLASS] Activate and deactivate the device interface for mouse devices
This commit is contained in:
@@ -840,6 +840,7 @@ ClassPnp(
|
||||
}
|
||||
else
|
||||
DeviceExtension->FileHandle = NULL;
|
||||
IoSetDeviceInterfaceState(&DeviceExtension->InterfaceName, TRUE);
|
||||
Irp->IoStatus.Status = Status;
|
||||
IoCompleteRequest(Irp, IO_NO_INCREMENT);
|
||||
return Status;
|
||||
@@ -854,6 +855,7 @@ ClassPnp(
|
||||
break;
|
||||
|
||||
case IRP_MN_REMOVE_DEVICE:
|
||||
IoSetDeviceInterfaceState(&DeviceExtension->InterfaceName, FALSE);
|
||||
if (DeviceExtension->FileHandle)
|
||||
{
|
||||
ZwClose(DeviceExtension->FileHandle);
|
||||
|
Reference in New Issue
Block a user