How can I switch to another running application in Windows 7 and C++ when I know its process id?
I only have the process id. There might be several applications with the same name so using the window title does not work. I also do not have a reliable HWND to use.
I want the application to be active, visible and ready for input just as if I switched to it using alt-tab.