Jump to content
Sign in to follow this  
xenoranger

GDI Count with _ProcessListProperties

Recommended Posts

xenoranger

Is there a way to get the GDI count associated with the _ProcessListProperties function, or should I be using a different tool?

So far, using the following keeps returning 32, regardless of what process specified.

Global Const $GR_GDIOBJECTS = 0
$PID = WinGetProcess("LooAlert.Client.Notifier.exe")
consolewrite(@crlf & @crlf & "GDI Object: " & _WinAPI_GetGuiResources(0, $PID) & @crlf & @CRLF)

Edit:

The following returns 0 when I use a valid PID. So far, I'm not getting the GDI Objects number that Windows Task Manager shows.

$GR_GDIOBJECTS = 0
$PID = WinGetProcess("Microsoft Outlook")
consolewrite(@crlf &  "PID: " & $PID & @crlf & "GDI Object: " & _WinAPI_GetGuiResources($GR_GDIOBJECTS,6984) & @crlf & @CRLF)
Edited by xenoranger

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  

×