各位老大帮帮我
我在一个程序里调用CreateProcess弹出另一个程序,但不知为什么弹出的程序跑到后台运行去了,需要再点一下弹出程序才有焦点,能不能直接让弹出程序跑到前台来?
代码如下:
if( !CreateProcess( NULL, // No module name (use command line).
buffer, // Command line.
NULL, // Process handle not inheritable.
NULL, // Thread handle not inheritable.
FALSE, // Set handle inheritance to FALSE.
0, // No creation flags.
NULL, // Use parent's environment block.
NULL, // Use parent's starting directory.
&si, // Pointer to STARTUPINFO structure.
&pi ) // Pointer to PROCESS_INFORMATION structure.
)