"For example, the parent process should use the WaitForInputIdle function before trying to find a window associated with the child process."