I'm writing a mirror driver that is able to capture the display of the
screen, and send the images to the remote machine through network, and
then project them onto the remote screen. just like what netmeeting
does. most of display were projected onto the remote screen correctly.
But some images weren't. Especially, when I played a video, the clip
was projected onto the remote monitor, but colors were change. Let me
explain briefly what I have done here. for example, in DrvCopyBits
function, I grab the bitmap in the source surface, psoSrc, and send the
bitmap to remote machine. I create a DIB bitmap in remote machine, and
display it using BitBlt. Now I found that the reason why the color
looks changed in remote machine is RGB orders are different between
color format of device context of remote machine and that of the
bitmap.
I really got stuck here. Where can I find the color format of SURFOBJ
structure, such as RGB masks?
I hope what I wrote won't confuse you. Does any driver masters please
give me some suggestion?
Thanks in advance,