Hi, there.
First, the “modify the display settings”. On my virtual Win XP, when the
virtual display driver is loaded, to get it work actually, I open the
“Display->Settings” dialog, then you’ll find there’re two display adapters
in the preview dialog in the center. I select the virtual driver, and check
the “Extend desktop to this display” option below, then the mapping
file(video.dat) is created by the system finally. If I don’t check that
option, nothing create and the monitor-app won’t show anything as well.
Seems the “Extend desktop to this display” option start the driver. BTW, I
haven’t test it on win 2003 and win 7.
Then, the mirror sample. As you said, I’ll review the code to confirm the "
DebugLevel " issue. Anyway I guess I’ve got to do more research on it.
Thanks for your kind advice.
Regards,
Bob
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@beckhoff.com
Sent: Thursday, August 05, 2010 9:34 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] How to capture desktop change using mirror driver
What do you mean with “modify the display settings”?
When you start the application with -w the created window is not going to
show the mirror driver’s surface. It has to do with “Tracking Window
Changes”. Take a look at this:
http://msdn.microsoft.com/en-us/library/ff570093(VS.85).aspx
The -t parameter: I have never started the application with this parameter,
but I think the corresponding DrvXxx() functions should get called.
As long as your mirror driver is loaded you should get a lot of debug
messages in any case.
May be you have to check the value of “DebugLevel”? It is “0” by default, so
all debug messages defined with a debug level >0 will not get print. Change
the value of DebugLevel (debug.c) or change the code to DISPDBG((0, …).
Regards,
Markus
NTDEV is sponsored by OSR
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer