Bringing a window to foreground from a background process
问题 My situation: A browser displays a webpage served by a locally running webserver. When the user clicks a button on the page, I would like to jump to another, possibly already running, application. Working on Windows, I thought about processing the button-click in my locally running webserver and just look for the respective HWND to call SetForegroundWindow on it. However, as it stands, the locally running webserver is not sufficiently privileged to SetForegroundWindow. Those restrictions make