Microsoft Sample Mirror Driver Bug

hi all

i am using Microsoft Mirror Sample Driver.
all is working fine, and i am able to capture the desktop (with minor
additions).

however, i am experiencing a runtime side-effect.
all combo-boxes in the operating system do not open normally,
rather, they open only over where the mouse is.

i commented out all the DrvXXX except for
DrvEnablePDev
DrvCompleteDev
DrvDisablePDev
DrvEnableSurface
DrvDisableSurface
DrvAssertMode

(which seem to be the minimal requirement for a Mirror Display Driver).
but even after that, the bug still persists!

after i remove the driver and re-boot,
the side-effect goes away.

has anyone else ever experienced this side effect?
can some one help me?

assaf

hi assaf,

I am also trying to do the same thing that is to capture the desktop using
mirror driver but not able to do that. can u please help me in this regard
i.e how can we capture the desktop with minor changes in the mirror driver
sample.

i was searching some mailing lists and saw that a couple of people had a
similar problem with combo boxes using mirror driver. i’ll try to find them
again and let you know.

thanx in advance.

MUDEEM

From: “assaf”
>Reply-To: “Windows System Software Devs Interest List”
>
>To: “Windows System Software Devs Interest List”
>Subject: [ntdev] Microsoft Sample Mirror Driver Bug
>Date: Sun, 15 Aug 2004 20:52:40 +0200
>
>hi all
>
>i am using Microsoft Mirror Sample Driver.
>all is working fine, and i am able to capture the desktop (with minor
>additions).
>
>however, i am experiencing a runtime side-effect.
>all combo-boxes in the operating system do not open normally,
>rather, they open only over where the mouse is.
>
>i commented out all the DrvXXX except for
>DrvEnablePDev
>DrvCompleteDev
>DrvDisablePDev
>DrvEnableSurface
>DrvDisableSurface
>DrvAssertMode
>
>(which seem to be the minimal requirement for a Mirror Display Driver).
>but even after that, the bug still persists!
>
>
>after i remove the driver and re-boot,
>the side-effect goes away.
>
>
>has anyone else ever experienced this side effect?
>can some one help me?
>
>
>assaf
>
>
>—
>Questions? First check the Kernel Driver FAQ at
>http://www.osronline.com/article.cfm?id=256
>
>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>To unsubscribe send a blank email to xxxxx@lists.osr.com

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
http://join.msn.com/?page=features/virus

OK, I replied to this earlier this morning, but it doesn’t seem to have
gone through, so I’m sending it again.

I ran into a problem similar to this one, and found that the problem was
due to the DDI calls returning “FALSE” (which is what the sample mirror
driver does). Try changing your calls to return TRUE or an equally sane
value.

Hope this helps…

sean

mudeem iqbal wrote:

hi assaf,

I am also trying to do the same thing that is to capture the desktop
using mirror driver but not able to do that. can u please help me in
this regard i.e how can we capture the desktop with minor changes in the
mirror driver sample.

i was searching some mailing lists and saw that a couple of people had a
similar problem with combo boxes using mirror driver. i’ll try to find
them again and let you know.

thanx in advance.

MUDEEM

> From: “assaf”
>> Reply-To: “Windows System Software Devs Interest List”
>>
>> To: “Windows System Software Devs Interest List”
>> Subject: [ntdev] Microsoft Sample Mirror Driver Bug
>> Date: Sun, 15 Aug 2004 20:52:40 +0200
>>
>> hi all
>>
>> i am using Microsoft Mirror Sample Driver.
>> all is working fine, and i am able to capture the desktop (with minor
>> additions).
>>
>> however, i am experiencing a runtime side-effect.
>> all combo-boxes in the operating system do not open normally,
>> rather, they open only over where the mouse is.
>>
>> i commented out all the DrvXXX except for
>> DrvEnablePDev
>> DrvCompleteDev
>> DrvDisablePDev
>> DrvEnableSurface
>> DrvDisableSurface
>> DrvAssertMode
>>
>> (which seem to be the minimal requirement for a Mirror Display Driver).
>> but even after that, the bug still persists!
>>
>>
>> after i remove the driver and re-boot,
>> the side-effect goes away.
>>
>>
>> has anyone else ever experienced this side effect?
>> can some one help me?
>>
>>
>> assaf
>>
>>
>> —
>> Questions? First check the Kernel Driver FAQ at
>> http://www.osronline.com/article.cfm?id=256
>>
>> You are currently subscribed to ntdev as: xxxxx@hotmail.com
>> To unsubscribe send a blank email to xxxxx@lists.osr.com
>
>
> _________________________________________________________________
> MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> http://join.msn.com/?page=features/virus
>
>

hi sean

we removed all the DrvXXX functions but the essentials:
DrvEnablePDEV
DrvCompletePDEV
DrvDisablePDEV
DrvEnableSurface
DrvDisableSurface
DrvAssertMode

but still we get the combo-box bad behaviour.
in the above functions, where do we need to return TRUE?
there does not seem to be a return FALSE!

thanks

assaf

----- Original Message -----
From: “Sean Bullington”
To: “Windows System Software Devs Interest List”
Cc:
Sent: Wednesday, August 18, 2004 12:29 AM
Subject: Re:[ntdev] Microsoft Sample Mirror Driver Bug

> OK, I replied to this earlier this morning, but it doesn’t seem to have
> gone through, so I’m sending it again.
>
> I ran into a problem similar to this one, and found that the problem was
> due to the DDI calls returning “FALSE” (which is what the sample mirror
> driver does). Try changing your calls to return TRUE or an equally sane
> value.
>
> Hope this helps…
>
> sean
>
> mudeem iqbal wrote:
>
> > hi assaf,
> >
> > I am also trying to do the same thing that is to capture the desktop
> > using mirror driver but not able to do that. can u please help me in
> > this regard i.e how can we capture the desktop with minor changes in the
> > mirror driver sample.
> >
> > i was searching some mailing lists and saw that a couple of people had a
> > similar problem with combo boxes using mirror driver. i’ll try to find
> > them again and let you know.
> >
> > thanx in advance.
> >
> > MUDEEM
> >
> >
> >> From: “assaf”
> >> Reply-To: “Windows System Software Devs Interest List”
> >>
> >> To: “Windows System Software Devs Interest List”
> >> Subject: [ntdev] Microsoft Sample Mirror Driver Bug
> >> Date: Sun, 15 Aug 2004 20:52:40 +0200
> >>
> >> hi all
> >>
> >> i am using Microsoft Mirror Sample Driver.
> >> all is working fine, and i am able to capture the desktop (with minor
> >> additions).
> >>
> >> however, i am experiencing a runtime side-effect.
> >> all combo-boxes in the operating system do not open normally,
> >> rather, they open only over where the mouse is.
> >>
> >> i commented out all the DrvXXX except for
> >> DrvEnablePDev
> >> DrvCompleteDev
> >> DrvDisablePDev
> >> DrvEnableSurface
> >> DrvDisableSurface
> >> DrvAssertMode
> >>
> >> (which seem to be the minimal requirement for a Mirror Display Driver).
> >> but even after that, the bug still persists!
> >>
> >>
> >> after i remove the driver and re-boot,
> >> the side-effect goes away.
> >>
> >>
> >> has anyone else ever experienced this side effect?
> >> can some one help me?
> >>
> >>
> >> assaf
> >>
> >>
> >> —
> >> Questions? First check the Kernel Driver FAQ at
> >> http://www.osronline.com/article.cfm?id=256
> >>
> >> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> >> To unsubscribe send a blank email to xxxxx@lists.osr.com
> >
> >
> > _________________________________________________________________
> > MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
> > http://join.msn.com/?page=features/virus
> >
> >
>
>
> —
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@hotmail.com
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

Assaf,
If you are managing your own surface (which the sample does because
of its call to EngCreateDeviceSurface), you have to still support at
least DrvCopyBits, DrvStrokePath, and DrvTextOut. I’m not sure how GDI
will treat your driver if you don’t support these calls when managing
your own surface (I’m assuming GDI will fail the call since the function
pointer isn’t available, just as if the driver did support the call but
returned FALSE… big assumption, but it sounds reasonable :slight_smile:

Have you tried just using the sample mirror driver, switching the
returns from DrvCopyBits, DrvBitBlt, DrvTextOut and DrvStrokePath to
TRUE, recompiling the sample and running the new binary to see if you
still have the same problem?

Again, there’s no guarantee that this will fix your problem, but it’s a
pretty quick thing to try…

sean

assaf wrote:

hi sean

we removed all the DrvXXX functions but the essentials:
DrvEnablePDEV
DrvCompletePDEV
DrvDisablePDEV
DrvEnableSurface
DrvDisableSurface
DrvAssertMode

but still we get the combo-box bad behaviour.
in the above functions, where do we need to return TRUE?
there does not seem to be a return FALSE!

thanks

assaf

----- Original Message -----
From: “Sean Bullington”
> To: “Windows System Software Devs Interest List”
> Cc:
> Sent: Wednesday, August 18, 2004 12:29 AM
> Subject: Re:[ntdev] Microsoft Sample Mirror Driver Bug
>
>
>
>>OK, I replied to this earlier this morning, but it doesn’t seem to have
>>gone through, so I’m sending it again.
>>
>>I ran into a problem similar to this one, and found that the problem was
>>due to the DDI calls returning “FALSE” (which is what the sample mirror
>>driver does). Try changing your calls to return TRUE or an equally sane
>>value.
>>
>>Hope this helps…
>>
>>sean
>>
>>mudeem iqbal wrote:
>>
>>
>>>hi assaf,
>>>
>>>I am also trying to do the same thing that is to capture the desktop
>>>using mirror driver but not able to do that. can u please help me in
>>>this regard i.e how can we capture the desktop with minor changes in the
>>>mirror driver sample.
>>>
>>>i was searching some mailing lists and saw that a couple of people had a
>>>similar problem with combo boxes using mirror driver. i’ll try to find
>>>them again and let you know.
>>>
>>>thanx in advance.
>>>
>>>MUDEEM
>>>
>>>
>>>
>>>>From: “assaf”
>>>>Reply-To: “Windows System Software Devs Interest List”
>>>>
>>>>To: “Windows System Software Devs Interest List”
>>>>Subject: [ntdev] Microsoft Sample Mirror Driver Bug
>>>>Date: Sun, 15 Aug 2004 20:52:40 +0200
>>>>
>>>>hi all
>>>>
>>>>i am using Microsoft Mirror Sample Driver.
>>>>all is working fine, and i am able to capture the desktop (with minor
>>>>additions).
>>>>
>>>>however, i am experiencing a runtime side-effect.
>>>>all combo-boxes in the operating system do not open normally,
>>>>rather, they open only over where the mouse is.
>>>>
>>>>i commented out all the DrvXXX except for
>>>>DrvEnablePDev
>>>>DrvCompleteDev
>>>>DrvDisablePDev
>>>>DrvEnableSurface
>>>>DrvDisableSurface
>>>>DrvAssertMode
>>>>
>>>>(which seem to be the minimal requirement for a Mirror Display Driver).
>>>>but even after that, the bug still persists!
>>>>
>>>>
>>>>after i remove the driver and re-boot,
>>>>the side-effect goes away.
>>>>
>>>>
>>>>has anyone else ever experienced this side effect?
>>>>can some one help me?
>>>>
>>>>
>>>>assaf
>>>>
>>>>
>>>>—
>>>>Questions? First check the Kernel Driver FAQ at
>>>>http://www.osronline.com/article.cfm?id=256
>>>>
>>>>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>>>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>>
>>>
>>> _________________________________________________________________
>>>MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.
>>>http://join.msn.com/?page=features/virus
>>>
>>>
>>
>>
>>—
>>Questions? First check the Kernel Driver FAQ at
>
> http://www.osronline.com/article.cfm?id=256
>
>>You are currently subscribed to ntdev as: xxxxx@hotmail.com
>>To unsubscribe send a blank email to xxxxx@lists.osr.com
>>
>
>