When terminating processes (which happens when windows cannot be closed via WinClose) we need to terminate the process, which may have too wide a blast radius. E.g. for calculator.exe, which does have its own PID, the current code finds the PID of "Application Frame Host", which also runs other things like e.g. Solitaire. See code comment on Terminate() for details.
When terminating processes (which happens when windows cannot be closed via WinClose) we need to terminate the process, which may have too wide a blast radius. E.g. for calculator.exe, which does have its own PID, the current code finds the PID of "Application Frame Host", which also runs other things like e.g. Solitaire. See code comment on Terminate() for details.