I have the following problem with retrieving the window handle from a specific window (title and class name are known):
There are two identical windows with different handles under two different processes, but FindWindow()
can find the handle only from the newest window spawned, never from the first one.
What can be used instead? Can EnumWindows()
be used to retrieve a list of windows with the same characteristics?