Just like the EnumChildWindows API, was wondering if the opposite is possible.. i.e., if there is an technique or API to enumerate all the Parent windows of an child window, and ultimately arrive at the main application window.
My issue is that I have more than 1 different applications having the same child window (identifiable by its window class and caption). I want to detect which application specific child window is active at a time, or if both are active would like to work with any one?
For example I have 2 apps running called “XYZ” and “ABC”, and both having a child window/dialog having same reg. class and caption say – “Configuration”. Now I would like to get the window details of the “Configuration” dialog from say the “XYZ” application?
Hope I was able to present the problem details properly.
Thanks,
GetAncestorfunction.