COPY_FILE_RESTARTABLE behavior

M

Mike

In an effort to understand the security and correctness
implications of using the COPY_FILE_RESTARTABLE flag in
CopyFileEx, I'd like to know the following:

If a file is partially copied, the source gets modified,
and then CopyFileEx (COPY_FILE_RESTARTABLE) is called
again, will it detect that the file source is different
and restart at the beginning?

If a file is partially written prior to a failure, and not
successfully completed, what is the state of the
destination file? Is there a partial file there? If there
was a previous file with that name, will it be deleted?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top