DWORD lpExitCode;<br> GetExitCodeProcess(pi.hProcess, &lpExitCode);<br> if (lpExitCode == EXIT_SUCCESS) cout<<"a terminat cu succes!"<<endl;<br> else cout<<"nu a terminat cu success!"<<endl;<br><br>Primesc numai "nu a terminat cu succes", oricum valorile lui lpExitCode sunt mari, gen: 3600, 1244200 etc.<br>Nu inteleg care este problema.<br><p> 
<hr size=1>Want to start your own business? Learn how on <a href="http://us.rd.yahoo.com/evt=41244/*http://smallbusiness.yahoo.com/r-index">Yahoo! Small Business.</a>