Hello,
today I got one very weird question and I was wondering how to answer it, so I thought it was the case to ask some real experts, since I basically know the bare minimum for PnP devices.
Basically, I was asked if it is possible to have a monitor showing in Device Manager even if it is physically disconnected and have no experience with that.
The case in point is that there is an application running which spans multiple displays and when one goes off, it must keep working without getting from Windows any message to move/change layout. It's probably something that has to do with user-level software, but that part is basically a black box to me.
To my surprise, I learned that when you setup EDID emulation on AMD drivers, they become "Generic PnP Monitors" and are actually forever showing, even if I disconnect or disable them.
I have no clue to how they do, though, because my PnP knowledge is limited by practical use.
As far as I know, IRP_MN_SURPRISE_REMOVAL is issued by the PNP Manager when the device is detected as not present anymore, that must be always handled with a STATUS_SUCCESS and after it it looks like it's too late to have it still active and showing, so I was thinking to make a class lower filter driver which simply lies to the bus manager for device relations.
But since everything looks pretty weird to me, I think it's a good idea to ask the community if that's legit and/or if there's a better plan.
What do you think? Is this a stupid question?