Video mirror driver

Hi, I programmed a video mirror driver. Everything works fine. It can capture all the screen changes. But there is a problem. Once my mirror driver attaches to the desktop, then all the desktop icons become solid rather than transparancy. I mean shadows for all icon labels. And this problem happened only when I set a background for the desktop. If I detach the mirror driver from the desktop, then all the icons become normal. What wrong? Any idea?

Thanks.

Michael

The Desktop is using Device Bitmaps. You should make sure you are handling
the Surfaces when you have Device Bitmaps. You should step thru the code.

William Michael Jones “Mike”

“Michael Zhu” wrote in message news:xxxxx@ntdev…
> Hi, I programmed a video mirror driver. Everything works fine. It can
> capture all the screen changes. But there is a problem. Once my mirror
> driver attaches to the desktop, then all the desktop icons become solid
> rather than transparancy. I mean shadows for all icon labels. And this
> problem happened only when I set a background for the desktop. If I detach
> the mirror driver from the desktop, then all the icons become normal. What
> wrong? Any idea?
>
> Thanks.
>
> Michael
>
>

Hi, William, what is your meaning? I am pretty sure that my mirror driver works fine except this problem. And this problem happens only when there is a background (wallpaper) for the desktop. If I remove the wallpaper, this problem disappears. Could you please say something more clearly? Thanks.

Michael

----- Original Message ----
From: William Michael Jones
To: Windows System Software Devs Interest List
Sent: Monday, May 15, 2006 4:12:39 PM
Subject: Re:[ntdev] Video mirror driver

The Desktop is using Device Bitmaps. You should make sure you are handling
the Surfaces when you have Device Bitmaps. You should step thru the code.

William Michael Jones “Mike”

“Michael Zhu” wrote in message news:xxxxx@ntdev…
> Hi, I programmed a video mirror driver. Everything works fine. It can
> capture all the screen changes. But there is a problem. Once my mirror
> driver attaches to the desktop, then all the desktop icons become solid
> rather than transparancy. I mean shadows for all icon labels. And this
> problem happened only when I set a background for the desktop. If I detach
> the mirror driver from the desktop, then all the icons become normal. What
> wrong? Any idea?
>
> Thanks.
>
> Michael
>
>


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Is this associated with hardware acceleration? I found that once my mirror driver is loaded (attaches to the desktop) the physical display adapter’s hardware acceleration is disabled. DirectX is also disabled. Is this a feature of mirror driver? Or M$ did something internally?

Thanks.

Michael

----- Original Message ----
From: Michael Zhu
To: Windows System Software Devs Interest List
Sent: Monday, May 15, 2006 4:37:23 PM
Subject: Re: [ntdev] Video mirror driver

Hi, William, what is your meaning? I am pretty sure that my mirror driver works fine except this problem. And this problem happens only when there is a background (wallpaper) for the desktop. If I remove the wallpaper, this problem disappears. Could you please say something more clearly? Thanks.

Michael

----- Original Message ----
From: William Michael Jones
To: Windows System Software Devs Interest List
Sent: Monday, May 15, 2006 4:12:39 PM
Subject: Re:[ntdev] Video mirror driver

The Desktop is using Device Bitmaps. You should make sure you are handling
the Surfaces when you have Device Bitmaps. You should step thru the code.

William Michael Jones “Mike”

“Michael Zhu” wrote in message news:xxxxx@ntdev…
> Hi, I programmed a video mirror driver. Everything works fine. It can
> capture all the screen changes. But there is a problem. Once my mirror
> driver attaches to the desktop, then all the desktop icons become solid
> rather than transparancy. I mean shadows for all icon labels. And this
> problem happened only when I set a background for the desktop. If I detach
> the mirror driver from the desktop, then all the icons become normal. What
> wrong? Any idea?
>
> Thanks.
>
> Michael
>
>


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

Hi
I had a similar problem of loosing transparency on desktop icons. But when I
changed the following function in my app from
ChangeDisplaySettingsEx(deviceName,
&devmode,
NULL,
CDS_UPDATEREGISTRY,
NULL
);
to
ChangeDisplaySettingsEx(deviceName,
&devmode,
NULL,
( CDS_UPDATEREGISTRY | CDS_NORESET ),
NULL
);
the problem vanished away. But i think this does not bring the mirrored
settings in effect. So i am still not convinced by this workaround.

Any feedback on my approach would be duly appreciated.

Thanks,
Avinash
“Michael Zhu” wrote in message news:xxxxx@ntdev…
> Hi, I programmed a video mirror driver. Everything works fine. It can
> capture all the screen changes. But there is a problem. Once my mirror
> driver attaches to the desktop, then all the desktop icons become solid
> rather than transparancy. I mean shadows for all icon labels. And this
> problem happened only when I set a background for the desktop. If I detach
> the mirror driver from the desktop, then all the icons become normal. What
> wrong? Any idea?
>
> Thanks.
>
> Michael
>
>

Hi, Avinash, this won’t work for me. Once CDS_NORESET is specified, the settings will NOT take effect.

Michael

----- Original Message ----
From: Avinash Jha
To: Windows System Software Devs Interest List
Sent: Friday, May 19, 2006 1:07:00 AM
Subject: Re:[ntdev] Video mirror driver

Hi
I had a similar problem of loosing transparency on desktop icons. But when I
changed the following function in my app from
ChangeDisplaySettingsEx(deviceName,
&devmode,
NULL,
CDS_UPDATEREGISTRY,
NULL
);
to
ChangeDisplaySettingsEx(deviceName,
&devmode,
NULL,
( CDS_UPDATEREGISTRY | CDS_NORESET ),
NULL
);
the problem vanished away. But i think this does not bring the mirrored
settings in effect. So i am still not convinced by this workaround.

Any feedback on my approach would be duly appreciated.

Thanks,
Avinash
“Michael Zhu” wrote in message news:xxxxx@ntdev…
> Hi, I programmed a video mirror driver. Everything works fine. It can
> capture all the screen changes. But there is a problem. Once my mirror
> driver attaches to the desktop, then all the desktop icons become solid
> rather than transparancy. I mean shadows for all icon labels. And this
> problem happened only when I set a background for the desktop. If I detach
> the mirror driver from the desktop, then all the icons become normal. What
> wrong? Any idea?
>
> Thanks.
>
> Michael
>
>


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer

I tried the VNC mirror driver. And VNC mirror driver doesn’t have this problem. So there must be something wrong in my own mirror driver. Maybe I should do more things in handling background and foreground colors. Researching …

Michael

----- Original Message ----
From: Michael Zhu
To: Windows System Software Devs Interest List
Sent: Tuesday, May 23, 2006 4:07:47 PM
Subject: Re: [ntdev] Video mirror driver

Hi, Avinash, this won’t work for me. Once CDS_NORESET is specified, the settings will NOT take effect.

Michael

----- Original Message ----
From: Avinash Jha
To: Windows System Software Devs Interest List
Sent: Friday, May 19, 2006 1:07:00 AM
Subject: Re:[ntdev] Video mirror driver

Hi
I had a similar problem of loosing transparency on desktop icons. But when I
changed the following function in my app from
ChangeDisplaySettingsEx(deviceName,
&devmode,
NULL,
CDS_UPDATEREGISTRY,
NULL
);
to
ChangeDisplaySettingsEx(deviceName,
&devmode,
NULL,
( CDS_UPDATEREGISTRY | CDS_NORESET ),
NULL
);
the problem vanished away. But i think this does not bring the mirrored
settings in effect. So i am still not convinced by this workaround.

Any feedback on my approach would be duly appreciated.

Thanks,
Avinash
“Michael Zhu” wrote in message news:xxxxx@ntdev…
> Hi, I programmed a video mirror driver. Everything works fine. It can
> capture all the screen changes. But there is a problem. Once my mirror
> driver attaches to the desktop, then all the desktop icons become solid
> rather than transparancy. I mean shadows for all icon labels. And this
> problem happened only when I set a background for the desktop. If I detach
> the mirror driver from the desktop, then all the icons become normal. What
> wrong? Any idea?
>
> Thanks.
>
> Michael
>
>


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer


Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256

To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer