GDI usage

6 views
Skip to first unread message

vipin

unread,
Apr 24, 2003, 8:40:21 AM4/24/03
to

All,
Is there a utility which shows the GDI usage for
windows2000? In msdn there is a utility for 9x called
gdiusage.exe?
Is there anything similar for windows 2000?

thank you
vipin

Mike D Sutton

unread,
Apr 24, 2003, 10:14:59 AM4/24/03
to
Hi vipin,

> Is there a utility which shows the GDI usage for
> windows2000? In msdn there is a utility for 9x called
> gdiusage.exe?
> Is there anything similar for windows 2000?

There's various examples in Feng Yuan's book (I'm sure you know the URL!)
Hope this helps,

Mike


-- EDais --

- Microsoft Visual Basic MVP -
WWW: Http://www20.brinkster.com/EDais/
Work E-Mail: ED...@btclick.com
Other E-Mail: Mike....@btclick.com


vipin

unread,
Apr 25, 2003, 1:24:43 AM4/25/03
to
Hello,
I downloaded gdiobj.zip and ran it,but I its not
displaying rightly.From the task manager, the number of
gdi objects is shown as 82 for my process but when I look
from feng's tool, it shows the gdi objects for the process
as 14.My intention was to see the breakdown of the gdi
objects among various categories(brushes,palettes and so
on) and yes, feng's tool shows the breakdown but
incorrectly. I am running win2k,sp3.

thank you
vipin

>.
>

Mike D Sutton

unread,
Apr 25, 2003, 4:36:32 AM4/25/03
to
> I downloaded gdiobj.zip and ran it,but I its not
> displaying rightly.From the task manager, the number of
> gdi objects is shown as 82 for my process but when I look
> from feng's tool, it shows the gdi objects for the process
> as 14.My intention was to see the breakdown of the gdi
> objects among various categories(brushes,palettes and so
> on) and yes, feng's tool shows the breakdown but
> incorrectly. I am running win2k,sp3.

Hmm interesting. I've had a quick look round and found a few things that
may be of assistance:
http://www.simtel.net/pub/pd/58663.html
http://worldwidemart.com/mattw/software/Windows3.X/util/ (Search for GDI)
http://www.aclass.com/SOFT/bench.html (Search for GDI)
http://66.216.14.66/Oldies/indexoldies.html (You get the idea by now ;)
http://www.compuware.com/products/devpartner/bounds/

vipin

unread,
Apr 25, 2003, 5:34:57 AM4/25/03
to
Mike,

Thank you for the sites :)
I saw some of the sites you mentioned,the downloads are
big and I have no time to evaluate the debug tool by
itself :(

I think this tool on NT series works by patching gdi calls
in the import address table of the modules in the running
process after injecting into it on win2k and on 9x makes
a GetObject(...) call from 0 to fffff... since it is a
global handle table their and not per-process.

I have no time to write a utility for this but I have a
trojan gdi32.dll handy which internally loads the system
gdi32.dll and so I get the gdi calls.let me try that and
if that also doesn't work,let me move my eyes on the
code,trying to match allocation and deallocation calls.
thank you

vipin

>.
>

Reply all
Reply to author
Forward
0 new messages