Take a look at this image:
This is how I got the handle of a window enclosed in a black box.
Process[] processes = Process.GetProcessesByName("TopazChat"); foreach (Process p in processes) { MessageBox.Show(p.MainWindowHandle.ToString()); List<IntPtr> test = GetChildWindows(p.MainWindowHandle); foreach (IntPtr IGotIt in test) { MessageBox.Show("I got the child windows"); } }
My question is: how do I get a window handle that has been closed by a red field? and is there something wrong with my approach?
any suggestions? I just use this approach because it is the only one that I know of.
source share