lucy said:
Hi Brian,
thank you very much for your help. I am in need of this field ULONG
ulPhysicalPixelCharacteristics;
from the GDIINFO desperately...
I did not see this from GetDeviceCaps... do you have a way to get it?
There is a kernel debugger extension DLL for display drivers called GDIKDX.DLL,
and it has the ability to display just about anything you would like to know
regarding display and print drivers, including their data structures.
Unfortunately, the extension isn't supported after Win2K. >:-{
On the bright side, using that extension (specifically, the !dpdev command), you
can look at the global list of PDEVs, and the GDIINFO structure in them.
Unfortunately, the extension DLL doesn't display the
ulPhysicalPixelCharacteristics, but that's OK, you can find it using the
debugger. There is a global linked list of PDEVs starting at Win32K!gppdevlist.
With a little bit of effort, you should be able to find the offset of the
GDIINFO structure within the PDEV structure.
If this is too much of a hack for you, then you'll have to write what I call an
"intermediate display driver" (some people may refer to this as a filter driver,
but since I wrote the very first one, I get to name it). This is a display
driver that sits between GDI and the real display driver, allowing you to see
everything being sent to and from the display driver.
-Brian
Brian Catlin, Sannas Consulting 310-944-9492
Windows Network, Video, WDM Device Driver Training & Consulting
See
WWW.AZIUS.COM.bad for courses and scheduling
REMOVE .BAD FROM EMAIL AND WEB ADDRESS