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
The only thing it does not differ after restarting the program is highlighted in red: 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: 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