From 8b53ed1d9b45649469d6662c27520088091910ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Herv=C3=A9=20Poussineau?= Date: Tue, 17 Mar 2020 23:50:39 +0100 Subject: [PATCH] [ISAPNP] Implement IRP_MN_QUERY_PNP_DEVICE_STATE for ReadDataPort --- drivers/bus/isapnp/pdo.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/drivers/bus/isapnp/pdo.c b/drivers/bus/isapnp/pdo.c index f0481119758..a75b4d32ed7 100644 --- a/drivers/bus/isapnp/pdo.c +++ b/drivers/bus/isapnp/pdo.c @@ -75,6 +75,17 @@ IsaPdoQueryCapabilities( return STATUS_SUCCESS; } +NTSTATUS +NTAPI +IsaPdoQueryPnpDeviceState( + IN PISAPNP_PDO_EXTENSION PdoExt, + IN PIRP Irp, + IN PIO_STACK_LOCATION IrpSp) +{ + Irp->IoStatus.Information |= PNP_DEVICE_NOT_DISABLEABLE; + return STATUS_SUCCESS; +} + NTSTATUS NTAPI IsaPdoQueryId( @@ -298,6 +309,11 @@ IsaPdoPnp( Status = IsaPdoQueryCapabilities(PdoExt, Irp, IrpSp); break; + case IRP_MN_QUERY_PNP_DEVICE_STATE: + if (PdoExt->Common.Self == PdoExt->FdoExt->DataPortPdo) + Status = IsaPdoQueryPnpDeviceState(PdoExt, Irp, IrpSp); + break; + case IRP_MN_QUERY_RESOURCES: if (PdoExt->Common.Self == PdoExt->FdoExt->DataPortPdo) Status = IsaPdoQueryResources(PdoExt, Irp, IrpSp);