Hi.
I’m developing Mirror Display Driver and have next problem.
My Mirror Display driver starts after restart. And I want to do that it won’t enable on every windows start.
I read docs and there said that
“To disable the attachment, set ‘Attach.ToDesktop’ to 0x0. Otherwise your driver will
invoked again at boot up time. There are also other Default.Settings values saved under
this key, use ChangeDisplaySettings() with dwFlags=CDS_UPDATEREGISTRY to properly save
them.”
I did all this stuff and driver still starts on startup. And if you compile app sample from src\video\displays\mirror\app and execute ,it will be same situation.
I tried to add ChangeDisplaySettingsEx with CDS_UPDATEREGISTRY parameter after setting Attach.ToDesktop to 0x0 but it isn’t helped too.
I opened registry and looked out for Attach.ToDesktop value and it looks to be valid (0x0).
So I don’t know what way I need to look. I test all I can.
Could anyone can answer to my question, please?
I found that if I change here HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Control\VIDEO{5301C80D-8FAF-472D-B0C4-0A30D4F5540F}\0000
Attach.ToDesktop to 0x0 then my driver not loading on startup.
But I can’t understand why it’s not working in
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Hardware Profiles\Current\System\CurrentControlSet\Services\mirror
Could, anyone can say does after launching this sample src\video\displays\mirror\app mirror driver loads? Yes or no?