I am using CreateProcess(..) function for ftp process.It is working fine.But I want to know whether the file is transferred successfully or not. Presently CreateProcess(..) returning true eventhough network is breakdown in the middle. I will be greateful if any body suggest good idea to solve this problem.
That is because the return value of CreateProcess indicates if the process was created, not what the return value of the process was. It can't give the return value of the process because CreateProcess returns before the created process finishes executing.
To get the return value of a process you have to wait for it to finish and then call GetExitCodeProcess using the process handle.
However I do not think this will help you because I believe ftp always returns 0.