Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

GDI Count with _ProcessListProperties

$
0
0
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.

[ autoit ]      
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.

[ autoit ]      
$GR_GDIOBJECTS = 0 $PID = WinGetProcess("Microsoft Outlook") consolewrite(@crlf &  "PID: " & $PID & @crlf & "GDI Object: " & _WinAPI_GetGuiResources($GR_GDIOBJECTS,6984) & @crlf & @CRLF)

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>