I have a point in screen coordinates and I need to find which window it “falls” onto. I.e. find the window (hWND) that is foremost of all windows containing the point. Pinvoke and WinApi is fine…
PS. I actually need to detect, which window is my mouse cursor currently “over”, to put it another way.
Use
WindowFromPoint.