I have multiple remote desktop sessions (RDP) to other servers running on my desktop. Occasionally, one will get booted either due to network problems or the RDP session being launched somewhere else that causes me to get booted.
Is there a way for me to detect that I have lost an RDP window programmatically? Is there a window handle I can query? I don't think the title of the window changes unfortunately.