Jump to content

GDI Count with _ProcessListProperties


Recommended Posts

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...