请各位大哥给个大约的代码,谢谢。
解决方案 »
- 求教一个函数,我记不清楚了
- 高分请问各位高手,在ActiveX控件里能否用其它的ActiveX控件
- 求教:udp 数据包(十几Mbps), 发送一段时间后,sendto会阻塞一段时间,然后又恢复正常
- vc软件工程师 工资3000元,是不是太低了
- 潜心研究PDF进来吧 来领承诺的500分~来者有分
- ********固定大小的数组转动态数组运算*********300分
- CSplitterWnd中隐藏分割条的问题
- 如何文件搜索并存入到数据库中去
- 如何判断程序当前的状态
- ●关于GetDlgItem和控件变量的一个问题●
- 急需解决:如何给对话框,或者FormView加上一个分隔条?高手指点呀!!!!!
- 用那个函数可以获得IE的版本?
{
STARTUPINFO si;
PROCESS_INFORMATION pi; ZeroMemory( &si, sizeof(si) );
si.cb = sizeof(si);
ZeroMemory( &pi, sizeof(pi) ); // Start the child process.
if( !CreateProcess( NULL, // No module name (use command line).
"MyChildProcess", // 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.
)
{
ErrorExit( "CreateProcess failed." );
} // Wait until child process exits.
WaitForSingleObject( pi.hProcess, INFINITE ); // Close process and thread handles.
CloseHandle( pi.hProcess );
CloseHandle( pi.hThread );
}
The TerminateProcess function is used to unconditionally make a process to exit.