zieren / wasted-youth-tracker

Limit kids' time on their (Windows) PC and get a summary of the window titles.
GNU General Public License v3.0
5 stars 0 forks source link

Blast radius on force close is too high #23

Open zieren opened 3 years ago

zieren commented 3 years ago

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.

zieren commented 3 years ago

This probably only affects a handful of applications, so p3.