How to get list or enumerate all handles of unmanaged windows with same class and name
问题 Using pinvoke I can find Handle of a window with particular class & name easily: [DllImport("user32.dll")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); IntPtr hWnd = FindWindow("Foo Class", "Foo Window"); The above code works perfect if there is only 0 or 1 matching windows. However the unmanaged application I am working with spans multiple windows. Calling FindWindow multiple times returns the same Window Handle each time. What do I need to do to get ALL