I have the processes list from Process.GetProcessesByName()
and the objects list from UCOMIRunningObjectTable.EnumRunning()
.
How to match process to COM object hosted by that process?
For example I have 10 notepad.exe
sessions and I want to find which session does not have any file opened and send a command to open a file. I use another app which exposes an API, this is just an example.