>From a executable I create a process with CreateProcess API. The process is created successful. The problem is the following: the first process loses the focus. How I obtain the focus ? The focus must be in the first executable.
See if
SetForegroundWindow API #12720 can help to regain focus.
--sb--