Sign in to follow this  
Followers 0
ricky

Value of GDI objects

6 posts in this topic

#1 ·  Posted (edited)

Hello,

I have one software with a maybe a problem with the value of GDI and private bytes. Can I with autoit capture this 2 values? See one example in the picture.

post-39014-12863540311657_thumb.png

Thaks in advance

Best Regards

Edited by ricky03

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

found this, no idea how to create of function out of it though.

http://msdn.microsoft.com/en-us/library/ms683192%28VS.85%29.aspx

DWORD gdiCount = GetGuiResources(hProcess, GR_GDIOBJECTS);

Found it!

#include <WinAPI.au3>

Global Const $GR_GDIOBJECTS = 0

MsgBox(0, "", "Number of GDI Objects for current process: " & _WinAPI_GetGuiResources($GR_GDIOBJECTS))
Edited by AlmarM

Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

For the privateBytes, I found it in the examples with this : CompInfo.au3

AlmarM : Thanks,and for a specific exe? for example calc.exe?

Share this post


Link to post
Share on other sites

For the privateBytes, I found it in the examples with this : CompInfo.au3

AlmarM : Thanks,and for a specific exe? for example calc.exe?

$PID = WinGetProcess("title of process goes here")
_WinAPI_GetGuiResources($GR_GDIOBJECTS, $PID)

Something like that.


Minesweeper

A minesweeper game created in autoit, source available.

_Mouse_UDF

An UDF for registering functions to mouse events, made in pure autoit.

2D Hitbox Editor

A 2D hitbox editor for quick creation of 2D sphere and rectangle hitboxes.

Share this post


Link to post
Share on other sites

Thanks, I will try...

Share this post


Link to post
Share on other sites

The value of GDI objects fits neatly into the supply and demand model of classic economics. Demand for these items is high, however, the demand is far outpaced by the infinite supply of GDI objects. This means that the cost for these objects approaches zero at an infinite rate.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0