On Windows, is it possible to get some sort of handle or details of a window displayed inside a RDP session?
Say you are logged on Machine A, then on there you open a RDP session connecting to Machine B. Is there some code I can run on A that will return the current active window on B?
I'm thinking of something equivalent to Win32.GetForegroundWindow(), but that will work "through RDP", so to speak, so it won't return a handle to the main RDP window, but to the active window inside that one.
To be honest, I don't really need a handle, I could probably do with just the window details (position, size etc).