Get Handles Device/AFD

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
bapl
Posts: 119
Joined: 17 Apr 2021, 00:24

Get Handles Device/AFD

Post by bapl » 21 Nov 2022, 16:44

How can I get the handle of this object using AHK:
image.png
image.png (11.24 KiB) Viewed 397 times
I used this https://learn.microsoft.com/en-us/sysinternals/downloads/handle
Entered the following command:

Code: Select all

objShell := ComObjCreate("WScript.Shell")
objExec := objShell.Exec(ComSpec " /c handle -a -u afd -p NameApp") ; afd is what I'm looking for. NameApp is what program I'm looking for.

strStdOut := ""
while, !objExec.StdOut.AtEndOfStream
{
 strStdOut := objExec.StdOut.ReadAll()
}

FileAppEnd,
(
%strStdOut%
), a.txt
So how can I get it?
The only thing it does not differ after restarting the program is highlighted in red:
image.png
image.png (12.9 KiB) Viewed 397 times
In Process Hacker 2, one Afd differs from the other in that it is highlighted in gray.
In one Afd I can get access to security:
image.png
image.png (22.15 KiB) Viewed 373 times
In another Afd, I can't access security.

I need to distinguish them somehow. How can this be done?The one in gray should not be closed, and the one that is colorless should be closed

bapl
Posts: 119
Joined: 17 Apr 2021, 00:24

Re: Get Handles Device/AFD

Post by bapl » 26 Nov 2022, 17:49

Up.
Help me pls :c

bapl
Posts: 119
Joined: 17 Apr 2021, 00:24

Re: Get Handles Device/AFD

Post by bapl » 18 Dec 2022, 15:26

up pls x3

Post Reply

Return to “Ask for Help (v1)”