Lets call the app I need to close A. The problem I have is that A starts an other application, lets call it B.
So if I close A, B is still running.
The reason why I need to also close B is because if I restart A after I closed it, it does not work properly, because a B app is already running because a previous A started it.
I only know the path to the A application.
Sysinternals Procmon can see that they have this starter-started relationship, but how can I?
I'm writing my closer app in Delphi, but I'm open to any alternative solutions.
Thanks.