[ISAPNP] Implement IRP_MN_QUERY_PNP_DEVICE_STATE for ReadDataPort

This commit is contained in:
Hervé Poussineau 2020-03-17 23:50:39 +01:00
parent 5b9929a076
commit 8b53ed1d9b

View file

@ -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);