Hello,
I'm stuck with the process model of IE8, where a GetWindowThreadProcessId() for my MFC embedded window will give me a child IE PID, as the GetWindowThreadProcessId() for my container page will give me the root IE PID.
Which is bad, as I want to filter my container out, while enumerating windows.
So I'm looking for a way to get the PID of the parent of a given process, so as to get, from my MFC app, the root IE PID.
Sysinternals' ProcessExplorer knows how to do that, displaying processes in treeview, so I'm sure there's a way to achieve that.