mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 07:32:21 +00:00
[MOUCLASS] Activate and deactivate the device interface for mouse devices
This commit is contained in:
parent
5456e195db
commit
bfa63932ce
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue