How to bring window on top of the process created through CreateProcess
问题 I am launching a process from my application using CreateProcess API and I want to bring the window of the new process to top. Is there a way to do it? Do we have any flag or something like that with CreateProcess? 回答1: You can try to use the STARTUPINFO structure which is passed in with CreateProcess and set SW_SHOW. I'm not sure this will help bring the focus to the top though. If that doesn't work then try the following. First off, do not use FindWindow(), it is unnecessarily unreliable