Re: Windows 7 WDK Mirror Driver Question

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Dear Tim,

Thanks for your response, and you are right. C/C++ can't do any more magic
then Delphi they both access the same api's, only differnce is that Delphi
can only compile (PE) .exe or Dll. No driver writing in delphi.

I'm aware of the struggle and the part that it is not documented.
And although it's going to be very hard.
I would still like to gain this knowledge

I hope someone can explain the key asspects, of doing the drawing yourself.
And pointing me in the right direction.

I know google is my best friend but like you said, it is rarely documented.


All help is greatly appreciated,
Jonathan Lourens

"Tim Roberts" wrote:

J. Lourens <J. Lourens@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I'm quite new to C/C++ let alone driver writing.

Then you have made a poor choice. Display drivers are among the more
complicated of Windows drivers, difficult to write, difficult to debug, and
the mirror drivers are a poorly documented subclass.

I've writtin some apps in Delphi, but when it comes to
screen capturing then delphi just doesn't cut it.

What does that mean? C can't do any magic beyond what Delphi can do. They
both have access to the same APIs.

-t This starts a DrvBitBlt ( but I don't know what this does )

Google is your friend. You will NEED to know that to write a mirror
driver.

Could someone please tell me what steps I have to take,
to modify the sample mirror driver.
To make one whole screen capture and start tracking updates from there.

You don't do screen captures in a mirror driver. The mirror driver does
not have access to the primary display surface. Instead, it is expected to
do its own drawing, and maintain its own copy of the desktop in a bitmap.

The goal is remote administration, but I don't know if this is the right way
to do it.

This problem has already been solved innumerable times. Have you looked at
VNC and its variants (like www.uvnc.com)? You would be much better served
by finding a way to modify one of those, instead of starting over from
scratch. Many people have struggled for months and months to get a mirror
driver to do what you describe.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.

.



Relevant Pages

  • Re: Printing a bitmap on a Epson POS printer
    ... describes your .bmp This assumes you have the correct graphics driver for ... multiples so dont worry about that (unless you have a high speed matrix ... If you want to send a bitmap direct you'll almost certainly need ... actual print procedure from delphi is easy enough. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Registry hook/monitor component?
    ... A driver is a good way to hook registry. ... > I dont think you can find Delphi code for that. ... actually quite good for low level stuff, ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Windows 7 WDK Mirror Driver Question
    ... an article from Toby Opferman with complete source. ... the driver and the application. ... I've done all the drawing operations and tried the shared file. ... then Delphi they both access the same api's, ...
    (microsoft.public.development.device.drivers)
  • Re: Informix components or dbExpress driver
    ... Also, last time i have fixed few issues in driver, so ... NCOCI8 - Freeware Delphi to ORACLE direct access ... >> Dmitry Arefiev, gs-soft Company, community.gs-soft.com ... >> NCOCI8 - Freeware Delphi to ORACLE direct access ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: Mirror Display Driver - how to change mode dynamically
    ... the mirror driver wants to write to its surface in this case was this ... EngCopyBits(psoDst, psoSrc, pco, pxlo, prclDst, pptlSrc); ... might create a new instance of your driver before it deletes the original ...
    (microsoft.public.development.device.drivers)